How to get more than one args from within handle_method_call?
David Zeuthen
zeuthen at gmail.com
Tue May 10 01:03:52 PDT 2011
Hi,
On Tue, May 10, 2011 at 1:46 AM, Qingping Hou <dave2008713 at gmail.com> wrote:
> Hi all,
>
> I am learning to use gdbus bindings but get stuck at receiving args.
> Say I defined a method like this:
>
> "<method name='adduser'>"
> "<arg type='s' name='user_name' direction='in'/>"
> "<arg type='s' name='user_pass' direction='in'/>"
> "</method>"
>
> How should I write g_variant_get in order to save these two arguments
> into different variables?
Did you read the docs? Specifically
http://developer.gnome.org/gio/unstable/GDBusConnection.html#gdbus-server
http://developer.gnome.org/glib/unstable/gvariant-format-strings.html
might be helpful.
David
More information about the dbus
mailing list