27 #include "analysis.nsmap"
30 struct analysis_rpc_config *
cfg;
34 #define ARGP_KEY_ANALYSIS_PATH 4096
35 #define ARGP_KEY_SCHEMA_PATH 4097
36 #define ARGP_KEY_ANNOTATION_PATH 4098
40 "Set the analysis description PATH.",0 },
42 "Set the schema PATH.",0 },
44 "Set the annotation PATH.",0 },
49 struct analysis_rpc_config *cfg = (
struct analysis_rpc_config *)state->input;
54 return ARGP_ERR_UNKNOWN;
56 case ARGP_KEY_NO_ARGS:
57 case ARGP_KEY_SUCCESS:
63 state->child_inputs[0] = cfg;
77 return ARGP_ERR_UNKNOWN;
93 int main(
int argc,
char **argv) {
111 sigaddset(&cfg.
sigset,SIGCHLD);
112 sigaddset(&cfg.
sigset,SIGPIPE);
int analysis_rpc_handle_request(struct soap *soap)
int generic_rpc_serve(struct generic_rpc_config *cfg)
struct argp generic_rpc_argp
#define ARGP_KEY_ANALYSIS_PATH
void analysis_rpc_fini(void)
#define ARGP_KEY_SCHEMA_PATH
struct argp analysis_rpc_argp
#define generic_rpc_argp_header
void analysis_set_path_string(const char *path)
struct analysis_rpc_config * cfg
int main(int argc, char **argv)
const struct argp_child analysis_rpc_argp_children[2]
void analysis_rpc_init(void)
error_t analysis_rpc_argp_parse_opt(int key, char *arg, struct argp_state *state)
#define ARGP_KEY_ANNOTATION_PATH
int(* handle_request)(struct soap *soap)
void analysis_set_schema_path_string(const char *path)
void analysis_set_annotation_path_string(const char *path)
struct argp_option analysis_rpc_argp_opts[]