From 46dba03897e3f215f8a574b1043f1f12e61dfa94 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 28 Dec 2012 14:51:05 +0200 Subject: [PATCH] core: Add command line switch for enabling experimental interfaces This enable passing --experimental/-E to enable experimental interfaces --- src/main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.c b/src/main.c index 4ed0555b0..1c21e8c9b 100644 --- a/src/main.c +++ b/src/main.c @@ -369,6 +369,7 @@ static gchar *option_noplugin = NULL; static gboolean option_compat = FALSE; static gboolean option_detach = TRUE; static gboolean option_version = FALSE; +static gboolean option_experimental = FALSE; static void free_options(void) { @@ -454,6 +455,8 @@ static GOptionEntry options[] = { "Specify plugins not to load", "NAME,..." }, { "compat", 'C', 0, G_OPTION_ARG_NONE, &option_compat, "Provide deprecated command line interfaces" }, + { "experimental", 'E', 0, G_OPTION_ARG_NONE, &option_experimental, + "Enable experimental interfaces" }, { "nodetach", 'n', G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &option_detach, "Run with logging in foreground" }, @@ -468,6 +471,7 @@ int main(int argc, char *argv[]) GError *err = NULL; uint16_t sdp_mtu = 0; uint32_t sdp_flags = 0; + int gdbus_flags = 0; GKeyFile *config; guint signal, watchdog; const char *watchdog_usec; @@ -518,6 +522,11 @@ int main(int argc, char *argv[]) exit(1); } + if (option_experimental) + gdbus_flags = G_DBUS_FLAG_ENABLE_EXPERIMENTAL; + + g_dbus_set_flags(gdbus_flags); + if (option_compat == TRUE) sdp_flags |= SDP_SERVER_COMPAT; -- 2.47.3