Re: Call AddConnection DBus
- From: rain blue <b123114 gmail com>
- To: networkmanager-list gnome org
- Subject: Re: Call AddConnection DBus
- Date: Mon, 27 Sep 2010 16:48:10 +0800
Dear,
I found this type. But it will occur error.
i will check it. Thanks everyone.
dbus_g_type_get_map("GHashTable", G_TYPE_STRING, dbus_g_type_get_map("GHashTable", G_TYPE_STRING, G_TYPE_VALUE));
/* ------------------------------------------ */
g_type_init ();
p_source_bus = dbus_g_bus_get (DBUS_BUS_SYSTEM, &p_source_error);
if (!p_source_bus)
printf ("Couldn't connect to session bus");
p_source_object = dbus_g_proxy_new_for_name (p_source_bus,
"org.freedesktop.NetworkManagerSystemSettings",
"/org/freedesktop/NetworkManagerSettings",
"org.freedesktop.NetworkManagerSettings");
if (!p_source_object)
printf ("Failed to get name owner");
if (!dbus_g_proxy_call (p_source_object, "AddConnection", &p_source_error, , s_con, G_TYPE_INVALID, G_TYPE_INVALID))
^^
What is it G_type a{sa{sv}} that i need input?
Or could not use c code to add?
Thanks
blue
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]