FACT++  1.0
int find_server_service_pattern ( SERVER servp,
char *  pattern 
)

Definition at line 189 of file webDid.c.

References i, bitem::n_services, DNS_SERVER_INFO::n_services, DNS_SERVICE_INFO::name, item::server, item::service_ptr, and bitem::servicep.

Referenced by find_service_pattern(), and prepareJSONServiceList().

190 {
191  DNS_SERVICE_INFO *servicep;
192  int n_services, i;
193  int n_found = 0;
194 
195  servicep = servp->service_ptr;
196  n_services = servp->server.n_services;
197  for(i = 0; i < n_services; i++)
198  {
199  if(strstr(servicep->name, pattern))
200  {
201  n_found++;
202  }
203  servicep++;
204  }
205  return(n_found);
206 }
int i
Definition: db_dim_client.c:21
DNS_SERVICE_INFO * service_ptr
Definition: did.h:45
char name[MAX_NAME]
Definition: dim.h:331
DNS_SERVER_INFO server
Definition: did.h:44
int n_services
Definition: dim.h:341

+ Here is the caller graph for this function: