summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-05-08 18:49:45 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-05-08 18:49:45 +0000
commit6bf91edf6cdb840c0f40572f1a20d381fd2cdc5e (patch)
treee8974e7376232e7b2f7467f96b0cb4f7a9693757 /common
parent4d39e4d2ea552e2d4ad36c085700f513e10be7e0 (diff)
Remove uneeded D-Bus API extension
Diffstat (limited to 'common')
-rw-r--r--common/dbus.c52
-rw-r--r--common/dbus.h3
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) {