FACT++  1.0
void recv_service_info ( int *  tag,
int *  buffer,
int *  size 
)

Definition at line 1176 of file did.c.

References Content_label_id, Curr_service_name, Curr_service_print_type, get_service_format(), Memory::malloc(), print_service_formatted(), Service_buffer, Service_content_str, Service_size, set_something(), size, and sprintf().

Referenced by cancel_pop_up(), and ok_pop_up().

1177 {
1178 /*
1179  char str[256], *ptr, *ptr1;
1180  int rpc_flag;
1181 */
1182  void print_service_formatted();
1183 
1184  if(tag){}
1185  Service_content_str = malloc((size_t)(1024 + (*size)*16));
1186  Service_buffer = malloc((size_t)*size);
1187  memcpy(Service_buffer, (char *)buffer, (size_t)*size);
1188  Service_size = *size;
1190  if((*size == 4 ) && (*buffer == -1))
1191  {
1193  "Service %s Not Available\n", Curr_service_name);
1194  }
1195  else
1196  {
1197  switch(Curr_service_print_type)
1198  {
1199  case 0:
1201  break;
1202  /*
1203  case 1:
1204  print_service_float(buffer, ((*size - 1) / 4) + 1);
1205  break;
1206  case 2:
1207  print_service_double(buffer, ((*size - 1) / 4) + 1);
1208  break;
1209  */
1210  }
1211  }
1213  /*
1214  if(Matrix_id[Curr_matrix])
1215  XFlush(XtDisplay(Matrix_id[Curr_matrix]));
1216  */
1217 }
char Curr_service_name[132]
Definition: did.c:12
Widget Content_label_id
Definition: did.h:60
int Service_size
Definition: did.c:22
void get_service_format()
Definition: did.c:1133
void * malloc()
Definition: EventBuilder.cc:99
char * Service_buffer
Definition: did.c:21
char * Service_content_str
Definition: did.c:20
int Curr_service_print_type
Definition: did.c:14
void set_something()
int buffer[BUFFSIZE]
Definition: db_dim_client.c:14
int size
Definition: db_dim_server.c:17
void print_service_formatted(void *buff, int size)
Definition: did.c:1219
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: