es_Status es_tcl_track_balise(char* subcmd, char* arg, void (*appendResult)(char*,es_ClientData), es_ClientData data) { if(!strcmp("load",subcmd)) { return es_tcl_track_balise_load_index(atoi(arg)); } if(!strcmp("raw",subcmd)) { return es_tcl_track_balise_load_raw(arg); } if(!strcmp("get",subcmd)) { return es_tcl_track_balise_get(arg,appendResult,data); } snprintf(es_msg_buf,ES_MSG_BUF_SIZE,"invalid sub command for 'track::balise': %s",subcmd); return ES_TCL_ERROR; }
es_Status es_tcl_track_balise(char* subcmd, char* arg1, char* arg2, void (*appendResult)(char*,es_ClientData), es_ClientData data) { if(!strcmp("load",subcmd)) { return es_tcl_track_balise_load_index(atoi(arg1)); } if(!strcmp("raw",subcmd)) { return es_tcl_track_balise_load_raw(arg1); } if(!strcmp("get",subcmd)) { return es_tcl_track_balise_get(arg1,appendResult,data); } if(!strcmp("clear",subcmd)) { memset(&es_tcl_track_balise_buf,0,es_tcl_track_bmsize); return ES_OK; } if(!strcmp("addpkt",subcmd)) { return es_tcl_track_balise_addpkt(arg1,arg2,appendResult,data); } if(!strcmp("set",subcmd)) { return es_tcl_track_balise_set(arg1,arg2,appendResult,data); } snprintf(es_msg_buf,ES_MSG_BUF_SIZE,"invalid sub command for 'track::balise': %s",subcmd); return ES_TCL_ERROR; }