FACT++  1.0
int delete_curr_service ( CURR_SERVICE servicep)

Definition at line 612 of file webDid.c.

References sitem::buffer, sitem::buffer_size, sitem::buffer_str, sitem::buffer_str_size, dic_release_service(), Memory::free(), sitem::name, sitem::sid, sll_remove(), and WebDID_Debug.

Referenced by delete_browser(), and update_service_data().

613 {
614 
615 if(WebDID_Debug)
616 printf("\nUnsubscribing %s\n\n",servicep->name);
617  dic_release_service(servicep->sid);
618  if(servicep->buffer_size)
619  free(servicep->buffer);
620  if(servicep->buffer_str_size)
621  free(servicep->buffer_str);
622  sll_remove((SLL *)Curr_service_head, (SLL *)servicep);
623  free(servicep);
624  return(1);
625 }
int WebDID_Debug
Definition: webServer.c:7
void * buffer_str
Definition: webDid.c:38
int sid
Definition: webDid.c:33
CURR_SERVICE * Curr_service_head
Definition: webDid.c:46
Definition: dim.h:536
char name[MAX_NAME]
Definition: webDid.c:32
void * buffer
Definition: webDid.c:34
int sll_remove(SLL *head, SLL *item)
Definition: sll.c:74
void free(void *mem)
int buffer_str_size
Definition: webDid.c:39
int buffer_size
Definition: webDid.c:35
void dic_release_service(unsigned service_id)
Definition: dic.c:1025

+ Here is the call graph for this function:

+ Here is the caller graph for this function: