From 2e88ef3053cf2a12115f78fcd4292266b4c98943 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 27 Feb 2009 08:37:46 +0100 Subject: Add priority field to plugin description --- include/plugin.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3