FACT++  1.0
void append_service ( char *  service_info_buffer,
SERVICE servp 
)

Definition at line 2590 of file dis_old.c.

References COMMAND, serv::def, find_service(), MAX_NAME, serv::name, and serv::type.

Referenced by service_info().

2591 {
2592  char name[MAX_NAME], *ptr;
2593 
2594  if(strstr(servp->name,"/RpcIn"))
2595  {
2596  strcpy(name,servp->name);
2597  ptr = (char *)strstr(name,"/RpcIn");
2598  *ptr = 0;
2599  strcat(service_info_buffer, name);
2600  strcat(service_info_buffer, "|");
2601  if(servp->def[0])
2602  {
2603  strcat(service_info_buffer, servp->def);
2604  }
2605  strcat(name,"/RpcOut");
2606  if( (servp = find_service(name)) )
2607  {
2608  strcat(service_info_buffer, ",");
2609  if(servp->def[0])
2610  {
2611  strcat(service_info_buffer, servp->def);
2612  }
2613  }
2614  strcat(service_info_buffer, "|RPC");
2615  strcat(service_info_buffer, "\n");
2616  }
2617  else if(strstr(servp->name,"/RpcOut"))
2618  {
2619 /*
2620  if(servp->def[0])
2621  {
2622  strcat(service_info_buffer, servp->def);
2623  }
2624  strcat(service_info_buffer, "|RPC");
2625  strcat(service_info_buffer, "\n");
2626 
2627 */
2628  }
2629  else
2630  {
2631  strcat(service_info_buffer, servp->name);
2632  strcat(service_info_buffer, "|");
2633  if(servp->def[0])
2634  {
2635  strcat(service_info_buffer, servp->def);
2636  }
2637  strcat(service_info_buffer, "|");
2638  if(servp->type == COMMAND)
2639  {
2640  strcat(service_info_buffer, "CMD");
2641  }
2642  strcat(service_info_buffer, "\n");
2643  }
2644 }
#define MAX_NAME
Definition: dim.h:182
#define COMMAND
Definition: dim_common.h:10
char name[MAX_NAME]
Definition: dis.c:72
int type
Definition: dis.c:74
SERVICE * find_service(char *name)
Definition: dis_old.c:2143
char def[MAX_NAME]
Definition: dis.c:75

+ Here is the call graph for this function:

+ Here is the caller graph for this function: