#include #include #include static DBusGConnection *bus; int main( int argc, char **argv ) { GError *error; int ret; int j; ret = 1; bus = NULL; g_type_init(); error = NULL; bus = dbus_g_bus_get( DBUS_BUS_SYSTEM, &error ); if (bus == NULL) { g_warning( "Couldn't connect to system bus: %s", error->message ); g_error_free( error ); goto out; } for ( j = 0; j < atoi( argv[1] ); j++ ) { DBusGProxy *prop_proxy; prop_proxy = dbus_g_proxy_new_for_name( bus, "org.freedesktop.UDisks", "/org/freedesktop/UDisks/devices/sda1", "org.freedesktop.DBus.Properties" ); g_object_unref( prop_proxy ); } out: if ( bus != NULL ) dbus_g_connection_unref( bus ); return ret; }