diff options
author | Ted Gould <ted@canonical.com> | 2009-04-01 12:37:24 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-04-01 12:37:24 -0500 |
commit | f7bf54acfd41be9c753ff339e7b681ad05f87ff2 (patch) | |
tree | 8a5d5341d5e85fabb36981ac68f5436f3cfc29c6 /libindicate/listener.h | |
parent | 02501d7edadbf3d3d3b9f2ab9a560bfe0b197af3 (diff) | |
download | libayatana-indicator-f7bf54acfd41be9c753ff339e7b681ad05f87ff2.tar.gz libayatana-indicator-f7bf54acfd41be9c753ff339e7b681ad05f87ff2.tar.bz2 libayatana-indicator-f7bf54acfd41be9c753ff339e7b681ad05f87ff2.zip |
First pass at the pretty meag-change to make it so that we can detect people on the system vs. the session bus. Basically reworking a bunch of structures. Fun.
Diffstat (limited to 'libindicate/listener.h')
-rw-r--r-- | libindicate/listener.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libindicate/listener.h b/libindicate/listener.h index f931b04..c4e724d 100644 --- a/libindicate/listener.h +++ b/libindicate/listener.h @@ -54,11 +54,11 @@ G_BEGIN_DECLS #define INDICATE_LISTENER_SIGNAL_SERVER_ADDED "server-added" #define INDICATE_LISTENER_SIGNAL_SERVER_REMOVED "server-removed" -#define INDICATE_LISTENER_SERVER_DBUS_NAME(server) ((gchar *)server) -#define INDICATE_LISTENER_INDICATOR_ID(indicator) (GPOINTER_TO_UINT(indicator)) +#define INDICATE_LISTENER_SERVER_DBUS_NAME(server) (indicate_listener_server_get_dbusname(server)) +#define INDICATE_LISTENER_INDICATOR_ID(indicator) (indicate_listener_indicator_get_id(indicator)) -typedef gchar IndicateListenerServer; -typedef guint IndicateListenerIndicator; +typedef struct _IndicateListenerServer IndicateListenerServer; +typedef struct _IndicateListenerIndicator IndicateListenerIndicator; typedef struct _IndicateListener IndicateListener; struct _IndicateListener { @@ -118,7 +118,8 @@ void indicate_listener_server_get_desktop (IndicateListener * l IndicateListenerServer * server, indicate_listener_get_server_property_cb callback, gpointer data); - +const gchar * indicate_listener_server_get_dbusname (IndicateListenerServer * server); +guint indicate_listener_indicator_get_id (IndicateListenerIndicator * indicator); |