FACT++  1.0
void put_label ( )

Definition at line 3183 of file did.c.

References Curr_view_opt, Curr_view_opt_par, Label_id, MAX_NAME, N_servers, N_services, set_something(), sprintf(), and str.

Referenced by check_put_label(), show_servers(), and update_show_servers().

3184 {
3185  char str[MAX_NAME], str1[MAX_NAME];
3186 
3187  DISABLE_AST
3188  sprintf(str,"%d Servers known - %d Services Available\n",
3190  switch(Curr_view_opt)
3191  {
3192  case 1 :
3193  strcat(str,"Displaying ALL Servers");
3194  break;
3195  case 0 :
3196  sprintf(str1,"Displaying Servers on node %s",Curr_view_opt_par);
3197  strcat(str,str1);
3198  break;
3199  case 2 :
3200  sprintf(str1,"Displaying Servers providing Service *%s*",
3202  strcat(str,str1);
3203  break;
3204  case 3 :
3205  strcat(str,"Displaying Servers in ERROR");
3206  break;
3207  case -1 :
3208  strcat(str,"Please Select Viewing Option");
3209  break;
3210  }
3211  set_something(Label_id,XmNlabelString,str);
3212  XFlush(XtDisplay(Label_id));
3213  ENABLE_AST
3214 }
#define MAX_NAME
Definition: dim.h:182
int N_services
Definition: did.c:16
char str[80]
Definition: test_client.c:7
Widget Label_id
Definition: did.h:59
char Curr_view_opt_par[80]
Definition: did.c:11
void set_something()
int Curr_view_opt
Definition: did.c:10
sprintf(name1,"NewService%d", i)
int N_servers
Definition: did.c:15

+ Here is the call graph for this function:

+ Here is the caller graph for this function: