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 };
This commit is contained in:
Aleksander Morgado
2011-09-15 19:40:56 +02:00
committed by Aleksander Morgado
parent 2d8fb51c6b
commit 8ccb222978
2 changed files with 43 additions and 6 deletions

View File

@@ -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;