FACT++  1.0
char* update_services ( char *  node,
char *  server,
int  pid,
int  browser 
)

Definition at line 448 of file webDid.c.

References create_browser(), dic_info_service(), find_browser(), find_node(), find_server(), got_update_services(), MAX_NAME, ONCE_ONLY, prepareJSONServiceList(), sprintf(), and str.

449 {
450  char str[MAX_NAME];
451  NODE *nodep;
452  SERVER *servp;
453  char *ptr = 0;
454  BROWSER *browserp;
455  char *prepareJSONServiceList();
457 
458  if(!(browserp = find_browser(browser)))
459  browserp = create_browser(browser);
460 
461  if(server){}
462  sprintf(str,"%s/SERVICE_LIST",server);
463  dic_info_service(str,ONCE_ONLY,20,0,0,
464  got_update_services,(dim_long)browserp,"None",5);
465  if((nodep = find_node(node)))
466  {
467  if((servp = find_server(nodep, pid)))
468  {
469  ptr = prepareJSONServiceList(servp, node, pid, browserp);
470  }
471  }
472  return ptr;
473 }
#define MAX_NAME
Definition: dim.h:182
Definition: dns.c:26
char * prepareJSONServiceList(SERVER *servp, char *node, int pid, BROWSER *browserp)
Definition: webDid.c:1843
unsigned dic_info_service(char *serv_name, int req_type, int req_timeout, void *serv_address, int serv_size, void(*usr_routine)(), dim_long tag, void *fill_addr, int fill_size)
Definition: dic.c:601
void got_update_services(BROWSER **tag, char *buffer, int *size)
Definition: webDid.c:436
Definition: did.h:42
char str[80]
Definition: test_client.c:7
BROWSER * find_browser(int id)
Definition: webDid.c:253
long dim_long
Definition: dim_common.h:57
BROWSER * create_browser(int id)
Definition: webDid.c:663
SERVER * find_server(NODE *nodep, int pid)
Definition: webDid.c:157
#define ONCE_ONLY
Definition: dim_common.h:7
NODE * find_node(char *node)
Definition: webDid.c:174
sprintf(name1,"NewService%d", i)
Definition: webDid.c:61

+ Here is the call graph for this function: