aboutsummaryrefslogtreecommitdiff
path: root/src/mm-context.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2013-11-22 13:47:11 +0100
committerAleksander Morgado <aleksander@aleksander.es>2014-02-13 13:41:25 +0100
commit65f87561c58571bce8fca18c568a03f53f3d40eb (patch)
treefadc0bce5c3e09682627a9ac24ba653a484cfc5b /src/mm-context.c
parent243720414e2d7a1b1c6d42bed3275296b4bc1da0 (diff)
context: new '--test-enable' to enable the Test interface
Diffstat (limited to 'src/mm-context.c')
-rw-r--r--src/mm-context.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-context.c b/src/mm-context.c
index 0a3a025e..dc0600ab 100644
--- a/src/mm-context.c
+++ b/src/mm-context.c
@@ -70,10 +70,12 @@ mm_context_get_relative_timestamps (void)
static gboolean test_session;
static gboolean test_no_auto_scan;
+static gboolean test_enable;
static const GOptionEntry test_entries[] = {
{ "test-session", 0, 0, G_OPTION_ARG_NONE, &test_session, "Run in session DBus", NULL },
{ "test-no-auto-scan", 0, 0, G_OPTION_ARG_NONE, &test_no_auto_scan, "Don't auto-scan looking for devices", NULL },
+ { "test-enable", 0, 0, G_OPTION_ARG_NONE, &test_enable, "Enable the Test interface in the daemon", NULL },
{ NULL }
};
@@ -103,6 +105,12 @@ mm_context_get_test_no_auto_scan (void)
return test_no_auto_scan;
}
+gboolean
+mm_context_get_test_enable (void)
+{
+ return test_enable;
+}
+
/*****************************************************************************/
void