FACT++  1.0
int find_service_pattern ( NODE nodep,
SERVER servpp,
char *  pattern,
int *  n_servers 
)

Definition at line 208 of file webDid.c.

References find_server_service_pattern(), and sll_get_next().

Referenced by prepareJSONSmiTree(), and prepareJSONTree().

209 {
210  SERVER *servp;
211  int ret, n_found = 0;
212  int n_servers_found = 0;
213 
214  if(!servpp)
215  {
216  servp = nodep->server_head;
217  while( (servp = (SERVER *)sll_get_next((SLL *)servp)) )
218  {
219  if((ret = find_server_service_pattern(servp, pattern)))
220  {
221  n_found += ret;
222  n_servers_found++;
223  }
224  }
225  }
226  else
227  {
228  if((ret = find_server_service_pattern(servpp, pattern)))
229  {
230  n_found += ret;
231  }
232  }
233  if(n_servers != 0)
234  *n_servers = n_servers_found;
235  return(n_found);
236 }
Definition: did.h:42
SLL * sll_get_next(SLL *item)
Definition: sll.c:50
Definition: dim.h:536
int find_server_service_pattern(SERVER *servp, char *pattern)
Definition: webDid.c:189

+ Here is the call graph for this function:

+ Here is the caller graph for this function: