FACT++  1.0
void activate_clients ( Widget  w,
SERVER servp,
unsigned long *  reason 
)

Definition at line 2965 of file didMarkus.c.

References Curr_client_id, dic_info_service(), id, kick_it_again(), item::name, no_link, ONCE_ONLY, item::pop_widget_id, put_popup(), item::server, set_something(), show_clients(), sprintf(), and str.

Referenced by create_button(), and put_popup().

2966 {
2967 DNS_SERVER_INFO *ptr;
2968 char str[100];
2969 void show_clients();
2970 void kick_it_again();
2971 Widget id,sel_id;
2972 
2973  if(w) {}
2974  if(reason){}
2975  Curr_servp = servp;
2976  ptr = &servp->server;
2977  if(servp->pop_widget_id[1])
2978  {
2979  XtDestroyWidget(servp->pop_widget_id[1]);
2980  servp->pop_widget_id[1] = 0;
2981  }
2982  sel_id = put_popup(servp,1,"Client Info");
2983 
2984  id = XmSelectionBoxGetChild(sel_id,XmDIALOG_HELP_BUTTON);
2985  XtUnmanageChild(id);
2986 
2987  id = XmSelectionBoxGetChild(sel_id,XmDIALOG_APPLY_BUTTON);
2988  XtUnmanageChild(id);
2989 
2990  id = XmSelectionBoxGetChild(sel_id,XmDIALOG_CANCEL_BUTTON);
2991  XtUnmanageChild(id);
2992 
2993  id = XmSelectionBoxGetChild(sel_id,XmDIALOG_TEXT);
2994  XtUnmanageChild(id);
2995 
2996  id = XmSelectionBoxGetChild(sel_id,XmDIALOG_SELECTION_LABEL);
2997  XtUnmanageChild(id);
2998  /*
2999  id = (Widget)XmSelectionBoxGetChild(sel_id,XmDIALOG_LIST_LABEL);
3000  */
3001  id = XmSelectionBoxGetChild(sel_id,XmDIALOG_LIST);
3002  XmListDeleteAllItems(id);
3003 
3004  Curr_client_id = id;
3005  sprintf(str,"Clients of %s are : \n",
3006  servp->name);
3007  set_something(sel_id,XmNlistLabelString,str);
3008 
3009  sprintf(str,"%s/CLIENT_LIST",/*ptr->task*/servp->name);
3010  dic_info_service(str,ONCE_ONLY,10,0,0,
3011  show_clients,(long)servp,&no_link,1);
3012  /*
3013 #ifdef solaris
3014  */
3015  /*
3016  XtAppAddTimeOut(app_context, 1000, kick_it_again, 0);
3017  */
3018  /*
3019 #endif
3020  */
3021 }
unsigned dic_info_service(char *serv_name, int req_type, int req_timeout, void *serv_address, int serv_size, void(*usr_routine)(), dim_long tag, void *fill_addr, int fill_size)
Definition: dic.c:601
void kick_it_again()
Definition: didMarkus.c:3023
void show_clients(SERVER **servp_ptr, char *buffer, int *size)
Definition: didMarkus.c:2873
char str[80]
Definition: test_client.c:7
char id[4]
Definition: FITS.h:71
char name[132]
Definition: did.h:46
Widget pop_widget_id[2]
Definition: did.h:48
void set_something()
DNS_SERVER_INFO server
Definition: did.h:44
Widget put_popup(SERVER *servp, int type, char *title)
Definition: didMarkus.c:3028
static char no_link
Definition: didMarkus.c:901
#define ONCE_ONLY
Definition: dim_common.h:7
SERVER * Curr_servp
Definition: didMarkus.c:87
Widget Curr_client_id
Definition: didMarkus.c:26
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: