summaryrefslogtreecommitdiff
path: root/include/plugin.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-02-27 08:37:46 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-02-27 08:37:46 +0100
commit2e88ef3053cf2a12115f78fcd4292266b4c98943 (patch)
tree8fa3f4e2e9d668bef18e918a85d888ed0dd7dec4 /include/plugin.h
parent4dbcc5d0cc60785775a492e8fa1c368f52af6105 (diff)
downloadconnman-2e88ef3053cf2a12115f78fcd4292266b4c98943.tar.gz
connman-2e88ef3053cf2a12115f78fcd4292266b4c98943.tar.bz2
connman-2e88ef3053cf2a12115f78fcd4292266b4c98943.zip
Add priority field to plugin description
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