pass cluster master state to plugin_control functions
[l2tpns.git] / plugin.h
index 89ef8e0..e2bd047 100644 (file)
--- a/plugin.h
+++ b/plugin.h
@@ -21,7 +21,8 @@ enum
 
 #define PLUGIN_RET_ERROR       0
 #define PLUGIN_RET_OK          1
-#define PLUGIN_RET_STOP                2
+#define PLUGIN_RET_STOP                2 
+#define PLUGIN_RET_NOTMASTER   3
 
 struct pluginfuncs
 {
@@ -81,8 +82,10 @@ struct param_timer
 
 struct param_control
 {
+       int iam_master;
        int argc;
        char **argv;
+       // output
        int response;
        char *additional;
 };