Definition at line 1923 of file webDid.c.
References addJSONChildEnd(), addJSONChildStart(), addJSONEnd(), addJSONNodeEnd(), addJSONNodeStart(), addJSONStart(), findSmiServices(), Memory::free(), i, JSONSmiServices, JSONSmiServicesSize, Memory::malloc(), objstate::mode_index, bitem::n_services, DNS_SERVER_INFO::n_services, item::name, DNS_SERVICE_INFO::name, bitem::pattern, DNS_SERVER_INFO::pid, item::server, item::service_ptr, bitem::servicep, bitem::smidomainp, sprintf(), DNS_SERVICE_INFO::status, and str.
Referenced by update_smi_objects().
1928 char str[512], type_str[512];
1930 int n_found = 0, n, mode_index;
1931 char aux[512], *sptr, state[512], *stptr;
1935 printf(
"prepareJSONSmiObjectList name %s\n", servp->
name);
1951 if(browserp->
pattern[0] !=
'\0')
1954 n_found = n_services;
1965 printf(
"prepareJSONSmiObjectList1 name %s\n", servp->
name);
1983 for(i = 0; i < n_services; i++)
1988 printf(
"prepareJSONSmiObjectList2 obj name %s\n", servicep->
name);
1989 if((!selective) || (strstr(servicep->
name, browserp->
pattern)))
2003 if(servicep->
status == 2)
2006 strcpy(aux, servicep->
name);
2007 sptr = strchr(aux,
'/');
2011 sptr = strchr(sptr,
'/');
2015 strcpy(state, smidomainp[i].state);
2016 stptr = strchr(state,
'/');
2023 sprintf(str,
"name: \"%s\", state: \"%s\", mode: \"%s\",id: \"%s\", leaf: true, fname: \"%s\"",
2024 sptr, state, smidomainp[mode_index].state, type_str, servicep->
name);
char * addJSONNodeEnd(char *ptr)
char * addJSONChildEnd(char *ptr, int sep)
char * addJSONChildStart(char *ptr, char *child, int sep)
DNS_SERVICE_INFO * service_ptr
char * addJSONEnd(char *ptr)
char * addJSONNodeStart(char *ptr, char *node)
char * addJSONStart(char *ptr)
sprintf(name1,"NewService%d", i)
int findSmiServices(BROWSER *browserp, SERVER *servp)