Definition at line 1650 of file webDid.c.
References addJSONChildEnd(), addJSONChildStart(), addJSONEnd(), addJSONNodeEnd(), addJSONNodeStart(), addJSONStart(), item::busy, find_node(), find_service_pattern(), Memory::free(), getNodeLabel(), bitem::JSONSmiBuffer, JSONSmiBuffer, bitem::JSONSmiBufferSize, JSONSmiBufferSize, Memory::malloc(), item::match, bitem::n_nodes, N_nodes, bitem::n_servers, N_servers, bitem::n_services, item::name, Node_head, bitem::pattern, DNS_SERVER_INFO::pid, item::server, sll_get_next(), sprintf(), str, Title, and WebDID_Debug.
Referenced by getJSONSmiBuffer().
1655 char str[256], aux[128];
1657 int n_nodes, tot_n_nodes;
1658 int n_servers, tot_n_servers;
1659 int ret, n_found = 0;
1660 char pattern[256] = {
'\0'};
1665 if(browserp->
pattern[0] !=
'\0')
1668 strcpy(pattern, browserp->
pattern);
1702 if(!strcmp(
node,
"src"))
1706 sprintf(str,
"text: \"%s\", id: \"Nodes\", expanded: false",
Title);
1735 sprintf(str,
"text: \"%s\", id: \"%s\", qtip: \"%s\"",
1736 aux, nodep->name, nodep->name);
1740 printf(
"adding %s %d %d\n",nodep->name, n_nodes, tot_n_nodes);
1741 if(n_nodes < tot_n_nodes)
1754 browserp->
n_nodes = tot_n_nodes;
1763 servp = nodep->server_head;
1768 if(servp->
busy != 1)
1788 servp = nodep->server_head;
1793 strcpy(aux, servp->
name);
1794 sptr = strstr(aux,
"_SMI");
1797 sprintf(str,
"text: \"%s\", id: \"%d\", leaf: true, icon: \"server.png\", name: \"%s\"",aux, servp->
server.
pid, servp->
name);
1800 if(n_servers < tot_n_servers)
char * addJSONNodeEnd(char *ptr)
char * addJSONChildEnd(char *ptr, int sep)
int getNodeLabel(char *name, char *label)
SLL * sll_get_next(SLL *item)
char * addJSONChildStart(char *ptr, char *child, int sep)
char * addJSONEnd(char *ptr)
char * addJSONNodeStart(char *ptr, char *node)
int find_service_pattern(NODE *nodep, SERVER *servpp, char *pattern, int *n_servers)
char * addJSONStart(char *ptr)
NODE * find_node(char *node)
sprintf(name1,"NewService%d", i)