diff options
| -rw-r--r-- | common/dbus.c | 52 | ||||
| -rw-r--r-- | common/dbus.h | 3 | 
2 files changed, 0 insertions, 55 deletions
| diff --git a/common/dbus.c b/common/dbus.c index 15716d7f..beb97a07 100644 --- a/common/dbus.c +++ b/common/dbus.c @@ -416,58 +416,6 @@ int name_listener_indicate_disconnect(DBusConnection *connection)  	return 0;  } -dbus_bool_t dbus_bus_get_unix_process_id(DBusConnection *conn, const char *name, -						unsigned long *pid) -{ -	DBusMessage *msg, *reply; -	DBusError err; -	dbus_uint32_t pid_arg; - -	msg = dbus_message_new_method_call("org.freedesktop.DBus", -						"/org/freedesktop/DBus", -						"org.freedesktop.DBus", -						"GetConnectionUnixProcessID"); -	if (!msg) { -		error("Unable to allocate new message"); -		return FALSE; -	} - -	if (!dbus_message_append_args(msg, DBUS_TYPE_STRING, &name, -					DBUS_TYPE_INVALID)) { -		error("Unable to append arguments to message"); -		dbus_message_unref(msg); -		return FALSE; -	} - -	dbus_error_init(&err); -	reply = dbus_connection_send_with_reply_and_block(conn, msg, -1, &err); -	if (dbus_error_is_set(&err)) { -		error("Sending GetConnectionUnixProcessID failed: %s", err.message); -		dbus_error_free(&err); -		dbus_message_unref(msg); -		return FALSE; -	} - -	dbus_error_init(&err); -	dbus_message_get_args(reply, &err, DBUS_TYPE_UINT32, &pid_arg, -					DBUS_TYPE_INVALID); -	if (dbus_error_is_set(&err)) { -		error("Getting GetConnectionUnixProcessID args failed: %s", -				err.message); -		dbus_error_free(&err); -		dbus_message_unref(msg); -		dbus_message_unref(reply); -		return FALSE; -	} - -	*pid = (unsigned long) pid_arg; - -	dbus_message_unref(msg); -	dbus_message_unref(reply); - -	return TRUE; -} -  static DBusHandlerResult disconnect_filter(DBusConnection *conn,  						DBusMessage *msg, void *data)  { diff --git a/common/dbus.h b/common/dbus.h index 5b133191..94244eb6 100644 --- a/common/dbus.h +++ b/common/dbus.h @@ -47,9 +47,6 @@ int name_listener_remove(DBusConnection *connection, const char *name,  gboolean name_listener_id_remove(guint id);  int name_listener_indicate_disconnect(DBusConnection *connection); -dbus_bool_t dbus_bus_get_unix_process_id(DBusConnection *conn, const char *name, -						unsigned long *pid); -  static inline DBusHandlerResult send_message_and_unref(DBusConnection *conn, DBusMessage *msg)  {  	if (msg) { | 
