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

Definition at line 1436 of file webDid.c.

References create_browser(), find_browser(), bitem::isSMI, bitem::JSONSmiBuffer, JSONSmiBuffer, bitem::pattern, and prepareJSONSmiTree().

Referenced by sendSmiData().

1437 {
1438  BROWSER *browserp;
1439  int prepareJSONSmiTree();
1440 
1441  if(!(browserp = find_browser(browser)))
1442  {
1443  browserp = create_browser(browser);
1444  browserp->isSMI = 1;
1445  strcpy(browserp->pattern,"SMI/");
1446  }
1447  if(browser)
1448  {
1449  if((browserp = find_browser(browser)))
1450  {
1451  if(browserp->pattern[0] != '\0')
1452  {
1453  prepareJSONSmiTree(node, browserp);
1454  return(browserp->JSONSmiBuffer);
1455  }
1456 // browserp->n_services = 0;
1457 // browserp->n_servers = 0;
1458 // browserp->n_nodes = 0;
1459  }
1460  }
1462  return(JSONSmiBuffer);
1463 }
Definition: dns.c:26
BROWSER * find_browser(int id)
Definition: webDid.c:253
BROWSER * create_browser(int id)
Definition: webDid.c:663
int prepareJSONSmiTree(char *node, BROWSER *browserp)
Definition: webDid.c:1650
char * JSONSmiBuffer
Definition: webDid.c:76
int isSMI
Definition: webDid.c:81
char * JSONSmiBuffer
Definition: webDid.c:95
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: