Definition at line 2805 of file didMarkus.c.
References create_str(), Curr_service_list_id, delete_str(), Memory::free(), i, id, Memory::malloc(), MAX_NAME, DNS_SERVER_INFO::n_services, DNS_SERVICE_INFO::name, item::server, item::service_ptr, set_something(), and DNS_SERVICE_INFO::type.
Referenced by got_service_list(), and main().
2807 char cmd_str[256], svc_str[256];
2811 char *curr_str, max_str[
MAX_NAME], *sptr;
2813 int i, j, curr_index = 0, n_services;
2820 XmListDeleteAllItems(
id);
2822 strcpy(cmd_str,
"CMD: ");
2823 strcpy(svc_str,
"SVC: ");
2829 for(i=0;i<n_services; i++)
2831 strcpy(service_list[i],service_ptr->
name);
2834 strcpy(max_str,
"zzzzzzzzzzzzzzzzzzzzzzzzzzzz");
2835 for(i=0;i<n_services; i++)
2838 for(j=0;j<n_services; j++)
2840 sptr = service_list[j];
2844 if(strcmp(sptr,curr_str) < 0)
2850 service_list[curr_index][0] =
'\0';
2852 if(service_ptr->
type)
2854 strcpy(&cmd_str[5],service_ptr->
name);
2856 XmListAddItem(
id,xstr,i+1);
2861 strcpy(&svc_str[5],service_ptr->
name);
2863 XmListAddItem(
id,xstr,i+1);
2870 set_something(
id,XmNlistVisibleItemCount,(i < 20) ? i : 20);
DNS_SERVICE_INFO * service_ptr
Widget Curr_service_list_id
void delete_str(XmString str)