diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-08-16 13:15:46 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-08-16 13:15:46 +0000 |
commit | 7f0afa058ede87359b3104ffa72874ed59f68432 (patch) | |
tree | 82e21cc6bd5760f68df8eb40dcee83c3e54a8397 /serial/manager.c | |
parent | 57c2796d829c4b0078db7b59025e3cecdf85b2f0 (diff) |
serial: RemoveProxy - remove the entry from the storage
Diffstat (limited to 'serial/manager.c')
-rw-r--r-- | serial/manager.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/serial/manager.c b/serial/manager.c index 1c913351..eee5d1aa 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -1524,6 +1524,7 @@ static DBusHandlerResult list_proxies(DBusConnection *conn, static DBusHandlerResult remove_proxy(DBusConnection *conn, DBusMessage *msg, void *data) { + struct proxy *prx = NULL; const char *path; GSList *l; DBusError derr; @@ -1541,6 +1542,11 @@ static DBusHandlerResult remove_proxy(DBusConnection *conn, if (!l) return err_does_not_exist(conn, msg, "Invalid proxy path"); + /* Remove from storage */ + if (dbus_connection_get_object_user_data(conn, + path, (void *) &prx) && prx) + proxy_delete(&prx->src, prx->tty); + g_free(l->data); proxies_paths = g_slist_remove(proxies_paths, l->data); |