summaryrefslogtreecommitdiff
path: root/include/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/plugin.h')
-rw-r--r--include/plugin.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/plugin.h b/include/plugin.h
index 84e09586..350937ee 100644
--- a/include/plugin.h
+++ b/include/plugin.h
@@ -33,6 +33,10 @@ extern "C" {
understanding that ConnMan hasn't reached a stable API."
#endif
+#define CONNMAN_PLUGIN_PRIORITY_LOW -100
+#define CONNMAN_PLUGIN_PRIORITY_DEFAULT 0
+#define CONNMAN_PLUGIN_PRIORITY_HIGH 100
+
/**
* SECTION:plugin
* @title: Plugin premitives
@@ -43,6 +47,7 @@ struct connman_plugin_desc {
const char *name;
const char *description;
const char *version;
+ int priority;
int (*init) (void);
void (*exit) (void);
};
@@ -75,7 +80,8 @@ struct connman_plugin_desc {
*/
#define CONNMAN_PLUGIN_DEFINE(name, description, version, init, exit) \
struct connman_plugin_desc connman_plugin_desc = { \
- #name, description, version, init, exit \
+ #name, description, version, \
+ CONNMAN_PLUGIN_PRIORITY_DEFAULT, init, exit \
};
#ifdef __cplusplus