00001
00003
00004
00012 #ifndef CARMEN_PROCCONTROL_MESSAGES_H
00013 #define CARMEN_PROCCONTROL_MESSAGES_H
00014
00015 #ifdef __cplusplus
00016 extern "C" {
00017 #endif
00018
00019 typedef struct {
00020 char *group_name;
00021 int requested_state;
00022 double timestamp;
00023 char *host;
00024 } carmen_proccontrol_groupset_message;
00025
00026 #define CARMEN_PROCCONTROL_GROUPSET_NAME "carmen_proccontrol_groupset"
00027 #define CARMEN_PROCCONTROL_GROUPSET_FMT "{string,int,double,string}"
00028
00029 typedef struct {
00030 char *module_name;
00031 int requested_state;
00032 double timestamp;
00033 char *host;
00034 } carmen_proccontrol_moduleset_message;
00035
00036 #define CARMEN_PROCCONTROL_MODULESET_NAME "carmen_proccontrol_moduleset"
00037 #define CARMEN_PROCCONTROL_MODULESET_FMT "{string,int,double,string}"
00038
00039 typedef struct {
00040 char *group_name, *module_name;
00041 int active, requested_state, pid;
00042 } carmen_proccontrol_process_t, *carmen_proccontrol_process_p;
00043
00044 typedef struct {
00045 int num_processes;
00046 carmen_proccontrol_process_p process;
00047 double timestamp;
00048 char *host;
00049 } carmen_proccontrol_pidtable_message;
00050
00051 #define CARMEN_PROCCONTROL_PIDTABLE_NAME "carmen_proccontrol_pidtable"
00052 #define CARMEN_PROCCONTROL_PIDTABLE_FMT "{int,<{string,string,int,int,int}:1>,double,string}"
00053
00054 typedef struct {
00055 int pid;
00056 char *output;
00057 double timestamp;
00058 char *host;
00059 } carmen_proccontrol_output_message;
00060
00061 #define CARMEN_PROCCONTROL_OUTPUT_NAME "carmen_proccontrol_output"
00062 #define CARMEN_PROCCONTROL_OUTPUT_FMT "{int,string,double,string}"
00063
00064 #ifdef __cplusplus
00065 }
00066 #endif
00067
00068 #endif
00069
00070