mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-24 11:10:07 +01:00
* test/glib/test-service-glib.c (main): remove unused variable * glib/dbus-gidl.c (base_info_ref): fix a silly compiler warning * dbus/dbus-auth.h (enum): remove AUTHENTICATED_WITH_UNUSED_BYTES from the enum, no longer in use. * dbus/dbus-sysdeps.h: include config.h so DBUS_VA_COPY actually works right. * dbus/dbus-message.c: add various _dbus_return_val_if_fail for whether error_name passed in is a valid error name.
35 lines
679 B
C
35 lines
679 B
C
/* -*- mode: C; c-file-style: "gnu" -*- */
|
|
#include "dbus-glib.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
static GMainLoop *loop;
|
|
|
|
int
|
|
main (int argc, char **argv)
|
|
{
|
|
DBusConnection *connection;
|
|
GError *error;
|
|
|
|
g_type_init ();
|
|
|
|
loop = g_main_loop_new (NULL, FALSE);
|
|
|
|
error = NULL;
|
|
connection = dbus_bus_get_with_g_main (DBUS_BUS_ACTIVATION,
|
|
&error);
|
|
if (connection == NULL)
|
|
{
|
|
g_printerr ("Failed to open connection to bus: %s\n",
|
|
error->message);
|
|
g_error_free (error);
|
|
exit (1);
|
|
}
|
|
|
|
|
|
|
|
g_print ("Successfully completed %s\n", argv[0]);
|
|
|
|
return 0;
|
|
}
|