libpurple/dbus-server.c

branch
release-2.1.0
changeset 18093
cd3388e6b713
parent 17516
4a5036965628
parent 18072
482ad5dd2033
child 18123
360ed0af66ed
--- a/libpurple/dbus-server.c	Sat Jun 02 06:26:24 2007 +0000
+++ b/libpurple/dbus-server.c	Sat Jun 02 13:09:49 2007 +0000
@@ -65,6 +65,12 @@
 static GHashTable *map_id_type;
 
 static gchar *init_error;
+static int dbus_request_name_reply = DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER;
+
+gboolean purple_dbus_is_owner(void)
+{
+	return(DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER == dbus_request_name_reply);
+}
 
 /**
  * This function initializes the pointer-id traslation system.  It
@@ -592,6 +598,7 @@
 		return;
 	}
 
+	dbus_request_name_reply =
 	result = dbus_bus_request_name(purple_dbus_connection,
 			DBUS_SERVICE_PURPLE, 0, &error);
 

mercurial