aboutsummaryrefslogtreecommitdiff
path: root/src/mm-plugin-base.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@gnu.org>2011-09-07 18:05:42 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:20 +0100
commit59c783eb614c0a56e2d1a2daeb0fef0decdf690e (patch)
tree439f1a8041056c12763f2c10b918f1419956be42 /src/mm-plugin-base.h
parent27e1d97aca340877db8f2b2181406b3ed8c06a5f (diff)
plugin-base: new 'allowed-subsystems' property
The plugins can set this property to filter support check requests by subsystem. The value given to the property should be a NULL-terminated array of C strings, e.g.: const gchar *subsystems[] = { "tty", NULL };
Diffstat (limited to 'src/mm-plugin-base.h')
-rw-r--r--src/mm-plugin-base.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mm-plugin-base.h b/src/mm-plugin-base.h
index 46254749..99d73ff3 100644
--- a/src/mm-plugin-base.h
+++ b/src/mm-plugin-base.h
@@ -112,8 +112,9 @@ void mm_plugin_base_supports_task_add_custom_init_command (MMPluginBaseSupportsT
#define MM_IS_PLUBIN_BASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MM_TYPE_PLUGIN_BASE))
#define MM_PLUGIN_BASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MM_TYPE_PLUGIN_BASE, MMPluginBaseClass))
-#define MM_PLUGIN_BASE_NAME "name"
-#define MM_PLUGIN_BASE_SORT_LAST "sort-last"
+#define MM_PLUGIN_BASE_NAME "name"
+#define MM_PLUGIN_BASE_ALLOWED_SUBSYSTEMS "allowed-subsystems"
+#define MM_PLUGIN_BASE_SORT_LAST "sort-last"
typedef struct _MMPluginBase MMPluginBase;
typedef struct _MMPluginBaseClass MMPluginBaseClass;