summaryrefslogtreecommitdiffstats
path: root/serial/storage.c
diff options
context:
space:
mode:
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)
{