diff options
author | Aleksander Morgado <aleksander@gnu.org> | 2011-09-15 19:40:56 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:20 +0100 |
commit | 8ccb2229782a8a02306a61a382312d2e8bf206c7 (patch) | |
tree | 861c5d4933caad86e07bcfdcd9dfe35c64d3599e /src/mm-plugin-base.h | |
parent | 2d8fb51c6b6669afa60594c04244f17653df0fb7 (diff) |
plugin-base: new 'allowed-vendor-strings' and 'allowed-product-strings' properties
The plugins can set these properties to filter support check requests by
AT-reported Vendor string and Product string.
The value given to the properties should be a NULL-terminated array of strings,
e.g.,
static const gchar *vendor_strings[] = { "cinterion" , NULL };
Diffstat (limited to 'src/mm-plugin-base.h')
-rw-r--r-- | src/mm-plugin-base.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mm-plugin-base.h b/src/mm-plugin-base.h index 7bb0f7de..230da630 100644 --- a/src/mm-plugin-base.h +++ b/src/mm-plugin-base.h @@ -123,12 +123,14 @@ typedef struct { MMBaseSupportsTaskCustomInitResultFunc callback; } MMPluginCustomInit; -#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_CUSTOM_INIT "custom-init" -#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_ALLOWED_VENDOR_STRINGS "allowed-vendor-strings" +#define MM_PLUGIN_BASE_ALLOWED_PRODUCT_STRINGS "allowed-product-strings" +#define MM_PLUGIN_BASE_CUSTOM_INIT "custom-init" +#define MM_PLUGIN_BASE_SORT_LAST "sort-last" typedef struct _MMPluginBase MMPluginBase; typedef struct _MMPluginBaseClass MMPluginBaseClass; |