aboutsummaryrefslogtreecommitdiff
path: root/src/mm-plugin-base.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@gnu.org>2011-09-07 18:28:28 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:20 +0100
commit806aabd22d725a329bdfe12ac258cb1db293fc3d (patch)
tree4f2bab30dadedc51eeb802c77739b4b0ca6792d6 /src/mm-plugin-base.h
parent59c783eb614c0a56e2d1a2daeb0fef0decdf690e (diff)
plugin-base: new 'allowed-vendor-ids' and 'allowed-product-ids' properties
The plugins can set these properties to filter support check requests by udev-reported Vendor ID and Product ID. The value given to the properties should be a 0-terminated array of guint16s, e.g., static const guint16 vendor_ids[] = { 0x0421 , 0 };
Diffstat (limited to 'src/mm-plugin-base.h')
-rw-r--r--src/mm-plugin-base.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mm-plugin-base.h b/src/mm-plugin-base.h
index 99d73ff3..256fad19 100644
--- a/src/mm-plugin-base.h
+++ b/src/mm-plugin-base.h
@@ -112,9 +112,11 @@ 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_ALLOWED_SUBSYSTEMS "allowed-subsystems"
-#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_ALLOWED_VENDOR_IDS "allowed-vendor-ids"
+#define MM_PLUGIN_BASE_ALLOWED_PRODUCT_IDS "allowed-product-ids"
+#define MM_PLUGIN_BASE_SORT_LAST "sort-last"
typedef struct _MMPluginBase MMPluginBase;
typedef struct _MMPluginBaseClass MMPluginBaseClass;