[libvirt] [dbus PATCH 11/14] Implement NodeDeviceLookupByName method for Connect Interface

Pavel Hrdina phrdina at redhat.com
Tue Jun 19 15:03:35 UTC 2018


On Fri, Jun 15, 2018 at 07:03:47PM +0200, Katerina Koukiou wrote:
> Signed-off-by: Katerina Koukiou <kkoukiou at 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 <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180619/70f813ff/attachment-0001.sig>


More information about the libvir-list mailing list