FACT++  1.0
int find_services ( char *  pattern,
int  conn_id,
int  browser,
int  force 
)

Definition at line 842 of file webDid.c.

References create_browser(), bitem::curr_command, did_prepare_command(), find_browser(), get_service_format(), MAX_NAME, bitem::pattern, prepareJSONTree(), recv_service_info(), sendData(), and bitem::service_format_ptr.

843 {
844  void recv_service_info();
845  extern void sendData();
846  BROWSER *browserp;
847  char format[MAX_NAME];
848  int prepareJSONTree();
849  void did_prepare_command();
850 
851  if(conn_id){}
852  if(!(browserp = find_browser(browser)))
853  browserp = create_browser(browser);
854  if(force == -1)
855  {
856  if(browserp->service_format_ptr)
857  {
858  get_service_format(browserp->service_format_ptr, browserp->curr_command, format);
859  did_prepare_command(pattern, browserp->curr_command, format);
860  }
861  return 1;
862  }
863  if(conn_id){}
864  if(!(browserp = find_browser(browser)))
865  browserp = create_browser(browser);
866  strcpy(browserp->pattern, pattern);
867  return 1;
868 }
#define MAX_NAME
Definition: dim.h:182
void did_prepare_command(char *str, char *service, char *format)
Definition: webDid.c:2260
int prepareJSONTree(char *node, BROWSER *browserp)
Definition: webDid.c:1493
char * service_format_ptr
Definition: webDid.c:80
BROWSER * find_browser(int id)
Definition: webDid.c:253
BROWSER * create_browser(int id)
Definition: webDid.c:663
void sendData(int conn_id, char *buffer, int type)
Definition: webServer.c:240
void get_service_format(char *buffer, char *service, char *format)
Definition: webDid.c:569
void recv_service_info(void **tag, int *buffer, int *size)
Definition: webDid.c:870
char curr_command[MAX_NAME]
Definition: webDid.c:79
char pattern[256]
Definition: webDid.c:78
Definition: webDid.c:61

+ Here is the call graph for this function: