Definition at line 1843 of file webDid.c.
References addJSONChildEnd(), addJSONChildStart(), addJSONEnd(), addJSONNodeEnd(), addJSONNodeStart(), addJSONStart(), find_server_service_pattern(), Memory::free(), i, JSONServices, JSONServicesSize, Memory::malloc(), 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, sprintf(), str, and DNS_SERVICE_INFO::type.
Referenced by update_services().
1848 char str[256], type_str[256];
1867 if(browserp->
pattern[0] !=
'\0')
1870 n_found = n_services;
1880 sprintf(str,
"text: \"%s (%d/%d services, pid %d)\"",servp->
name, n_found, n_services, servp->
server.
pid);
1887 for(i = 0; i < n_services; i++)
1892 if((!selective) || (strstr(servicep->
name, browserp->
pattern)))
1894 if(servicep->
type == 1)
1897 sprintf(str,
"text: \"%s\", id: \"%s\", leaf: true, icon: \"leaf_cmd.gif\"",servicep->
name, type_str);
1902 sprintf(str,
"text: \"%s\", id: \"%s\", leaf: true",servicep->
name, type_str);
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)
int find_server_service_pattern(SERVER *servp, char *pattern)
sprintf(name1,"NewService%d", i)