#include <gio/gio.h>

#define LOGIND_DBUS_NAME            "org.freedesktop.login1"
#define LOGIND_DBUS_PATH            "/org/freedesktop/login1"
#define LOGIND_DBUS_INTERFACE       "org.freedesktop.login1.Manager"

int main(int argc, char const *argv[])
{
    GDBusProxy *proxy;

    for (int i = 0; i < 100; i++) {
        proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
                                               0,
                                               NULL,
                                               LOGIND_DBUS_NAME,
                                               LOGIND_DBUS_PATH,
                                               LOGIND_DBUS_INTERFACE,
                                               NULL,
                                               NULL);
        g_object_unref (proxy);
    }

    return 0;
}
