diff options
Diffstat (limited to 'common/dbus.c')
| -rw-r--r-- | common/dbus.c | 52 | 
1 files changed, 0 insertions, 52 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)  { | 
