4
Copyright 2011 Canonical Ltd.
7
Ted Gould <ted@canonical.com>
9
This program is free software: you can redistribute it and/or modify it
10
under the terms of the GNU General Public License version 3, as published
11
by the Free Software Foundation.
13
This program is distributed in the hope that it will be useful, but
14
WITHOUT ANY WARRANTY; without even the implied warranties of
15
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
16
PURPOSE. See the GNU General Public License for more details.
18
You should have received a copy of the GNU General Public License along
19
with this program. If not, see <http://www.gnu.org/licenses/>.
25
#include "shared-values.h"
28
static GMainLoop * mainloop = NULL;
31
name_lost_cb (GDBusConnection * connection, const gchar * name, gpointer user_data)
33
g_error("Unable to get name '%s'", name);
34
g_main_loop_quit(mainloop);
39
main (int argv, char * argc[])
43
HudDbus * dbus = hud_dbus_new();
45
g_bus_own_name(G_BUS_TYPE_SESSION,
47
/* Flags */ G_BUS_NAME_OWNER_FLAGS_NONE,
48
/* Bus Acquired */ NULL,
49
/* Name Acquired */ NULL,
50
/* Name Lost */ name_lost_cb,
55
mainloop = g_main_loop_new(NULL, FALSE);
56
g_main_loop_run(mainloop);
58
g_main_loop_unref(mainloop);