aboutsummaryrefslogtreecommitdiff
path: root/src/mm-context.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2013-11-22 11:54:30 +0100
committerAleksander Morgado <aleksander@aleksander.es>2014-02-13 13:41:23 +0100
commit243720414e2d7a1b1c6d42bed3275296b4bc1da0 (patch)
treeef4737ac78fa5763a84260667c813ce0ea0742d6 /src/mm-context.c
parentbf57da537d62c5ef15b7be32818cd4a531f89d38 (diff)
context: new '--test-no-auto-scan' to avoid automatic scanning for devices
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 7ada188e..0a3a025e 100644
--- a/src/mm-context.c
+++ b/src/mm-context.c
@@ -69,9 +69,11 @@ mm_context_get_relative_timestamps (void)
/* Test context */
static gboolean test_session;
+static gboolean test_no_auto_scan;
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 },
{ NULL }
};
@@ -95,6 +97,12 @@ mm_context_get_test_session (void)
return test_session;
}
+gboolean
+mm_context_get_test_no_auto_scan (void)
+{
+ return test_no_auto_scan;
+}
+
/*****************************************************************************/
void