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

Definition at line 2900 of file dis.c.

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

Referenced by service_info().

2901 {
2902  char name[MAX_NAME], *ptr;
2903 
2904  if(strstr(servp->name,"/RpcIn"))
2905  {
2906  strcpy(name,servp->name);
2907  ptr = (char *)strstr(name,"/RpcIn");
2908  *ptr = 0;
2909  strcat(service_info_buffer, name);
2910  strcat(service_info_buffer, "|");
2911  if(servp->def[0])
2912  {
2913  strcat(service_info_buffer, servp->def);
2914  }
2915  strcat(name,"/RpcOut");
2916  if( (servp = find_service(name)) )
2917  {
2918  strcat(service_info_buffer, ",");
2919  if(servp->def[0])
2920  {
2921  strcat(service_info_buffer, servp->def);
2922  }
2923  }
2924  strcat(service_info_buffer, "|RPC");
2925  strcat(service_info_buffer, "\n");
2926  }
2927  else if(strstr(servp->name,"/RpcOut"))
2928  {
2929 /*
2930  if(servp->def[0])
2931  {
2932  strcat(service_info_buffer, servp->def);
2933  }
2934  strcat(service_info_buffer, "|RPC");
2935  strcat(service_info_buffer, "\n");
2936 
2937 */
2938  }
2939  else
2940  {
2941  strcat(service_info_buffer, servp->name);
2942  strcat(service_info_buffer, "|");
2943  if(servp->def[0])
2944  {
2945  strcat(service_info_buffer, servp->def);
2946  }
2947  strcat(service_info_buffer, "|");
2948  if(servp->type == COMMAND)
2949  {
2950  strcat(service_info_buffer, "CMD");
2951  }
2952  strcat(service_info_buffer, "\n");
2953  }
2954 }
#define MAX_NAME
Definition: dim.h:182
#define COMMAND
Definition: dim_common.h:10
char name[MAX_NAME]
Definition: dis.c:72
SERVICE * find_service(char *name)
Definition: dis.c:2429
int type
Definition: dis.c:74
char def[MAX_NAME]
Definition: dis.c:75

+ Here is the call graph for this function:

+ Here is the caller graph for this function: