FACT++  1.0
void put_label ( )

Definition at line 3122 of file didMarkus.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().

3123 {
3124  char str[MAX_NAME], str1[MAX_NAME];
3125 
3126  DISABLE_AST
3127  sprintf(str,"%d Servers known - %d Services Available\n",
3129  switch(Curr_view_opt)
3130  {
3131  case 1 :
3132  strcat(str,"Displaying ALL Servers");
3133  break;
3134  case 0 :
3135  sprintf(str1,"Displaying Servers on node %s",Curr_view_opt_par);
3136  strcat(str,str1);
3137  break;
3138  case 2 :
3139  sprintf(str1,"Displaying Servers providing Service *%s*",
3141  strcat(str,str1);
3142  break;
3143  case 3 :
3144  strcat(str,"Displaying Servers in ERROR");
3145  break;
3146  case -1 :
3147  strcat(str,"Please Select Viewing Option");
3148  break;
3149  }
3150  set_something(Label_id,XmNlabelString,str);
3151  XFlush(XtDisplay(Label_id));
3152  ENABLE_AST
3153 }
#define MAX_NAME
Definition: dim.h:182
char Curr_view_opt_par[80]
Definition: didMarkus.c:11
char str[80]
Definition: test_client.c:7
int N_services
Definition: didMarkus.c:16
Widget Label_id
Definition: did.h:59
int N_servers
Definition: didMarkus.c:15
int Curr_view_opt
Definition: didMarkus.c:10
void set_something()
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: