aboutsummaryrefslogtreecommitdiff
path: root/src/mm-context.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-10-16 21:33:15 +0200
committerAleksander Morgado <aleksander@aleksander.es>2017-12-05 10:58:29 +0100
commitc4bf785d6771764cbee116e36c6780462223c4fa (patch)
treefb3b8640074d727c4371077628410a4b5b41e4e0 /src/mm-context.h
parent7bfd5270ef846582d97314f3e9e550129317d631 (diff)
filter: allow selection of filter policy on startup
Added a new '--filter-policy=[POLICY]' option in the daemon, which allows selecting between the supported filter policies. For now, only two policies are defined: * default: the default policy used by ModemManager, where it tries to probe and detect as many modem ports as possible. * whitelist-only: only devices explicitly tagged via udev (with the ID_MM_DEVICE_PROCESS tag) will be probed and used.
Diffstat (limited to 'src/mm-context.h')
-rw-r--r--src/mm-context.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mm-context.h b/src/mm-context.h
index 143ee15b..ff5f1343 100644
--- a/src/mm-context.h
+++ b/src/mm-context.h
@@ -19,6 +19,8 @@
#include <config.h>
#include <glib.h>
+#include "mm-filter.h"
+
#if !defined(MM_DIST_VERSION)
# define MM_DIST_VERSION VERSION
#endif
@@ -30,6 +32,9 @@ gboolean mm_context_get_debug (void);
const gchar *mm_context_get_initial_kernel_events (void);
gboolean mm_context_get_no_auto_scan (void);
+/* Filter support */
+MMFilterRule mm_context_get_filter_policy (void);
+
/* Logging support */
const gchar *mm_context_get_log_level (void);
const gchar *mm_context_get_log_file (void);