summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 4a3ac46..07dad2d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -59,8 +59,8 @@
static GMainLoop *main_loop = NULL;
-static int tty_init(int services, const gchar *root_path,
- const gchar *capability, const gchar *devnode)
+int tty_init(int services, const gchar *root_path,
+ const gchar *capability, const gchar *devnode)
{
struct server *server;
struct termios options;
@@ -83,6 +83,7 @@ static int tty_init(int services, const gchar *root_path,
server->folder = g_strdup(root_path);
server->auto_accept = TRUE;
server->capability = g_strdup(capability);
+ server->devnode = g_strdup(devnode);
ret = obex_session_start(fd, server);
if (ret < 0) {