aboutsummaryrefslogtreecommitdiff
path: root/src/mm-context.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2013-11-24 16:34:15 +0100
committerAleksander Morgado <aleksander@aleksander.es>2014-02-13 13:41:50 +0100
commit247a9459509a1eeee7ffb686034920d3614c2b99 (patch)
tree4e3c8fdd80d307611f2bbe1516b328b070e1ba04 /src/mm-context.c
parentea362ce18e0e594bf2815e8c94f3491e73fc68d7 (diff)
context: new '--test-plugin-dir' to allow specifying where the plugins are
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 dc0600ab..c02a4cf9 100644
--- a/src/mm-context.c
+++ b/src/mm-context.c
@@ -71,11 +71,13 @@ mm_context_get_relative_timestamps (void)
static gboolean test_session;
static gboolean test_no_auto_scan;
static gboolean test_enable;
+static gchar *test_plugin_dir;
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 },
+ { "test-plugin-dir", 0, 0, G_OPTION_ARG_STRING, &test_plugin_dir, "Path to look for plugins", "[PATH]" },
{ NULL }
};
@@ -111,6 +113,12 @@ mm_context_get_test_enable (void)
return test_enable;
}
+const gchar *
+mm_context_get_test_plugin_dir (void)
+{
+ return test_plugin_dir ? test_plugin_dir : PLUGINDIR;
+}
+
/*****************************************************************************/
void