Skip to content

Instantly share code, notes, and snippets.

@pridybailo-n
pridybailo-n / gist:2f8d2f76ef6a2be6fa6c861862573c35
Last active July 19, 2018 11:48
get IPv4 configuration via connman dbus
int main()
{
ConnmanProxyService *sproxy;
GError *error;
error = NULL;
sproxy = connman_proxy_service_proxy_new_for_bus_sync(G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_NONE,
"net.connman", "/net/connman/service/ethernet_bcaec5b96673_cable", NULL, &error);
GVariant *props;