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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 15, 2018 at 07:03:47PM +0200, Katerina Koukiou wrote:
> Signed-off-by: Katerina Koukiou <kkoukiou@xxxxxxxxxx>
> ---
>  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@xxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature

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

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux