Logo Search packages:      
Sourcecode: wengophone version File versions  Download package

void osip_body_free ( osip_body_t body  ) 

Free a osip_body_t element.

body The element to work on.

Definition at line 470 of file osip_body.c.

References osip_body::body, osip_body::content_type, osip_body::headers, osip_content_type_free(), osip_header_free(), osip_list_eol(), osip_list_get(), and osip_list_remove().

Referenced by eXosip_event_free(), osip_body_clone(), osip_message_free(), osip_message_set_body(), and osip_message_set_body_mime().

  if (body == NULL)
  osip_free (body->body);
  if (body->content_type != NULL)
      osip_content_type_free (body->content_type);

    osip_header_t *header;

    while (!osip_list_eol (body->headers, 0))
      header = (osip_header_t *) osip_list_get (body->headers, 0);
      osip_list_remove (body->headers, 0);
      osip_header_free (header);
    osip_free (body->headers);
  osip_free (body);

Generated by  Doxygen 1.6.0   Back to index