From 80f64d03b4e1cfddf057f72d21d21636d0254df0 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Thu, 1 Apr 2010 14:56:58 -0300 Subject: [PATCH] obexd: Add a way to get global obexd options For now just root folder and symlinks support are exported. --- obexd/src/main.c | 10 ++++++++++ obexd/src/obex.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/obexd/src/main.c b/obexd/src/main.c index 7dec9358a..def0ad3c8 100644 --- a/obexd/src/main.c +++ b/obexd/src/main.c @@ -202,6 +202,16 @@ static GOptionEntry options[] = { { NULL }, }; +const gchar *obex_option_root_folder(void) +{ + return option_root; +} + +gboolean obex_option_symlinks(void) +{ + return option_symlinks; +} + static void sig_tty(int sig) { if (write(signal_pipe[1], &sig, sizeof(sig)) != sizeof(sig)) diff --git a/obexd/src/obex.h b/obexd/src/obex.h index dd5343c31..64591f646 100644 --- a/obexd/src/obex.h +++ b/obexd/src/obex.h @@ -59,6 +59,9 @@ char *obex_get_id(struct obex_session *os); ssize_t obex_aparam_read(struct obex_session *os, obex_object_t *obj, const guint8 **buffer); +const gchar *obex_option_root_folder(void); +gboolean obex_option_symlinks(void); + int tty_init(gint service, const gchar *folder, const gchar *capability, gboolean symlinks, const gchar *devnode); gint obex_tty_session_stop(void); -- 2.47.3