FACT++  1.0
char* getJSONBuffer ( char *  node,
int  browser 
)

Definition at line 1413 of file webDid.c.

References find_browser(), bitem::JSONBuffer, JSONBuffer, bitem::n_nodes, bitem::n_servers, bitem::n_services, bitem::pattern, and prepareJSONTree().

Referenced by sendData(), and sendSmiData().

1414 {
1415  BROWSER *browserp;
1416  int prepareJSONTree();
1417 
1418  if(browser)
1419  {
1420  if((browserp = find_browser(browser)))
1421  {
1422  if(browserp->pattern[0] != '\0')
1423  {
1424  prepareJSONTree(node, browserp);
1425  return(browserp->JSONBuffer);
1426  }
1427  browserp->n_services = 0;
1428  browserp->n_servers = 0;
1429  browserp->n_nodes = 0;
1430  }
1431  }
1432  prepareJSONTree(node, 0);
1433  return(JSONBuffer);
1434 }
Definition: dns.c:26
char * JSONBuffer
Definition: webDid.c:90
int n_services
Definition: webDid.c:70
char * JSONBuffer
Definition: webDid.c:74
int prepareJSONTree(char *node, BROWSER *browserp)
Definition: webDid.c:1493
int n_servers
Definition: webDid.c:71
BROWSER * find_browser(int id)
Definition: webDid.c:253
int n_nodes
Definition: webDid.c:72
char pattern[256]
Definition: webDid.c:78
Definition: webDid.c:61

+ Here is the call graph for this function:

+ Here is the caller graph for this function: