pass cluster master state to plugin_control functions
This commit is contained in:
parent
1a0455f453
commit
7cb3cf60e7
5 changed files with 54 additions and 51 deletions
5
plugin.h
5
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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue