summaryrefslogtreecommitdiffstats
path: root/serial/storage.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-08-16 13:15:46 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-08-16 13:15:46 +0000
commit7f0afa058ede87359b3104ffa72874ed59f68432 (patch)
tree82e21cc6bd5760f68df8eb40dcee83c3e54a8397 /serial/storage.c
parent57c2796d829c4b0078db7b59025e3cecdf85b2f0 (diff)
serial: RemoveProxy - remove the entry from the storage
Diffstat (limited to 'serial/storage.c')
-rw-r--r--serial/storage.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/serial/storage.c b/serial/storage.c
index f3c070d3..641ca1e8 100644
--- a/serial/storage.c
+++ b/serial/storage.c
@@ -87,6 +87,17 @@ int port_store(bdaddr_t *src, bdaddr_t *dst, int16_t id,
return err;
}
+int proxy_delete(bdaddr_t *src, const char *tty)
+{
+ char filename[PATH_MAX + 1], src_addr[18];
+
+ ba2str(src, src_addr);
+
+ create_name(filename, PATH_MAX, STORAGEDIR, src_addr, "proxy");
+
+ return textfile_del(filename, tty);
+}
+
int proxy_store(bdaddr_t *src, const char *uuid, const char *tty,
const char *name, uint8_t ch, int opts, struct termios *ti)
{