diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-05-18 14:58:00 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-05-18 14:58:00 +0000 |
commit | d0b45fbc214a16bcc0b13f4e37c37a8bfa96b904 (patch) | |
tree | 7dc8eafa3e845172e726aa7a611356033066b8f0 | |
parent | 09e244622737c52bb7b9a06420f5c1fc5e7bf446 (diff) |
serial: removed unused function(port_get_owner)
-rw-r--r-- | serial/port.c | 17 | ||||
-rw-r--r-- | serial/port.h | 2 |
2 files changed, 0 insertions, 19 deletions
diff --git a/serial/port.c b/serial/port.c index 44879ecc..3866076a 100644 --- a/serial/port.c +++ b/serial/port.c @@ -316,23 +316,6 @@ int port_unregister(const char *path) return 0; } -const char *port_get_owner(DBusConnection *conn, int16_t id) -{ - struct rfcomm_node *node; - static char path[MAX_PATH_LENGTH]; - - snprintf(path, MAX_PATH_LENGTH, "%s/rfcomm%d", SERIAL_MANAGER_PATH, id); - - /* FIXME: Ports related to services connection doesn't have a path/object */ - if (!dbus_connection_get_object_user_data(conn, path, (void *) &node) - || !node) { - errno = ENOENT; - return NULL; - } - - return node->owner; -} - static gboolean open_continue(struct open_context *oc) { int fd; diff --git a/serial/port.h b/serial/port.h index 2907647b..4e719363 100644 --- a/serial/port.h +++ b/serial/port.h @@ -34,7 +34,5 @@ int port_register(DBusConnection *conn, int id, bdaddr_t *dst, int port_unregister(const char *path); -const char *port_get_owner(DBusConnection *conn, int16_t id); - int port_open(const char *dev, open_notify_t notify, void *data, udata_free_t ufree); |