aboutsummaryrefslogtreecommitdiff
path: root/libindicate/listener-private.h
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-04 10:24:51 +0100
committerTed Gould <ted@canonical.com>2009-08-04 10:24:51 +0100
commit74bc54ca930921b3975bb8d1d844903a5945f6db (patch)
tree0afb9a2371ac30fca5a9fb0021253a4a0e95b619 /libindicate/listener-private.h
parentb3d3f3de3bb73ac8cc77ed5c8bde5aeb76073af2 (diff)
parent16b15aa99180939000a112038b028600d12673f5 (diff)
downloadlibayatana-indicator-74bc54ca930921b3975bb8d1d844903a5945f6db.tar.gz
libayatana-indicator-74bc54ca930921b3975bb8d1d844903a5945f6db.tar.bz2
libayatana-indicator-74bc54ca930921b3975bb8d1d844903a5945f6db.zip
Merging in the splitout of a GTK version of the lib
Diffstat (limited to 'libindicate/listener-private.h')
-rw-r--r--libindicate/listener-private.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/libindicate/listener-private.h b/libindicate/listener-private.h
new file mode 100644
index 0000000..ea1b108
--- /dev/null
+++ b/libindicate/listener-private.h
@@ -0,0 +1,63 @@
+/*
+A library to allow applictions to provide simple indications of
+information to be displayed to users of the application through the
+interface shell.
+
+Copyright 2009 Canonical Ltd.
+
+Authors:
+ Ted Gould <ted@canonical.com>
+
+This program is free software: you can redistribute it and/or modify it
+under the terms of either or both of the following licenses:
+
+1) the GNU Lesser General Public License version 3, as published by the
+Free Software Foundation; and/or
+2) the GNU Lesser General Public License version 2.1, as published by
+the Free Software Foundation.
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranties of
+MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
+PURPOSE. See the applicable version of the GNU Lesser General Public
+License for more details.
+
+You should have received a copy of both the GNU Lesser General Public
+License version 3 and version 2.1 along with this program. If not, see
+<http://www.gnu.org/licenses/>
+*/
+
+#ifndef INDICATE_LISTENER_PRIVATE_H__
+#define INDICATE_LISTENER_PRIVATE_H__ 1
+
+struct _IndicateListenerServer {
+ gchar * name;
+ DBusGProxy * proxy;
+ DBusGConnection * connection;
+ gboolean interests[INDICATE_INTEREST_LAST];
+};
+
+struct _IndicateListenerIndicator {
+ guint id;
+};
+
+typedef struct _IndicateListenerPrivate IndicateListenerPrivate;
+struct _IndicateListenerPrivate
+{
+ DBusGConnection * session_bus;
+ DBusGConnection * system_bus;
+
+ DBusGProxy * dbus_proxy_session;
+ DBusGProxy * dbus_proxy_system;
+
+ GList * proxies_working;
+ GList * proxies_possible;
+
+ GArray * proxy_todo;
+ guint todo_idle;
+};
+
+#define INDICATE_LISTENER_GET_PRIVATE(o) \
+ (G_TYPE_INSTANCE_GET_PRIVATE ((o), INDICATE_TYPE_LISTENER, IndicateListenerPrivate))
+
+#endif /* INDICATE_LISTENER_PRIVATE_H__ */