On Fri, Jun 15, 2018 at 07:03:47PM +0200, Katerina Koukiou wrote:
> Signed-off-by: Katerina Koukiou <kkouk...@redhat.com>
> ---
>  data/org.libvirt.Connect.xml |  6 ++++++
>  src/connect.c                | 29 +++++++++++++++++++++++++++++
>  tests/test_connect.py        | 13 +++++++++++++
>  3 files changed, 48 insertions(+)

[...]

> diff --git a/src/connect.c b/src/connect.c
> index 5e146a6..6192f47 100644
> --- a/src/connect.c
> +++ b/src/connect.c
> @@ -1098,6 +1098,34 @@ virtDBusConnectNodeDeviceCreateXML(GVariant *inArgs,
>      *outArgs = g_variant_new("(o)", path);
>  }
>  
> +static void
> +virtDBusConnectNodeDeviceLookupByName(GVariant *inArgs,
> +                                      GUnixFDList *inFDs G_GNUC_UNUSED,
> +                                      const gchar *objectPath G_GNUC_UNUSED,
> +                                      gpointer userData,
> +                                      GVariant **outArgs,
> +                                      GUnixFDList **outFDs G_GNUC_UNUSED,
> +                                      GError **error)
> +{
> +    virtDBusConnect *connect = userData;
> +    g_autoptr(virNodeDevice) dev = NULL;
> +    g_autofree gchar *path = NULL;
> +    const gchar *name;
> +
> +    g_variant_get(inArgs, "(s)", &name);

s/(s)/(&s)/

Reviewed-by: Pavel Hrdina <phrd...@redhat.com>

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to