Moved common monitor structures and definitions to a separate header and added master down script to galeramon.

This commit is contained in:
Markus Makela
2015-05-06 17:27:30 +03:00
parent cad59abbd1
commit da6d597987
8 changed files with 163 additions and 46 deletions

19
server/include/mon_exec.h Normal file
View File

@ -0,0 +1,19 @@
#ifndef MON_EXEC_HG
#define MON_EXEC_HG
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <skygw_utils.h>
#include <log_manager.h>
#define MAXSCALE_EXTCMD_ARG_MAX 256
typedef struct extern_cmd_t{
char* parameters[MAXSCALE_EXTCMD_ARG_MAX]; /*< Command arguments */
int n_exec; /*< Number of times executed */
}EXTERNCMD;
EXTERNCMD* externcmd_allocate(char* argstr);
void externcmd_free(EXTERNCMD* cmd);
int externcmd_execute(EXTERNCMD* cmd);
#endif