ast_sip_pubsub_body_supplement Struct Reference

Body supplement. More...

#include <res_pjsip_pubsub.h>

Collaboration diagram for ast_sip_pubsub_body_supplement:

Collaboration graph
[legend]

Data Fields

struct {
   struct
ast_sip_pubsub_body_supplement *   next
list
const char * subtype
 Content subtype In "plain/text", "text" is the subtype.
int(* supplement_body )(void *body, void *data)
 Add additional content to a SIP request body.
const char * type
 Content type In "plain/text", "plain" is the type.

Detailed Description

Body supplement.

Body supplements provide additions to bodies not already provided by body generators. This may include proprietary extensions, optional content, or other nonstandard fare.

Definition at line 575 of file res_pjsip_pubsub.h.


Field Documentation

struct { ... } list

Definition at line 599 of file res_pjsip_pubsub.h.

const char* subtype

Content subtype In "plain/text", "text" is the subtype.

Definition at line 585 of file res_pjsip_pubsub.h.

Referenced by ast_sip_pubsub_generate_body_content().

int(* supplement_body)(void *body, void *data)

Add additional content to a SIP request body.

A body generator will have already allocated a body and populated it with base data for the event. The supplement's duty is, if desired, to extend the body to have optional data beyond what a base RFC specifies.

Parameters:
body The body of the SIP request. The type is determined by the body generator that allocated the body.
data The subscription data used to populate the body. The type is determined by the content type.

Referenced by ast_sip_pubsub_generate_body_content().

const char* type

Content type In "plain/text", "plain" is the type.

Definition at line 580 of file res_pjsip_pubsub.h.

Referenced by ast_sip_pubsub_generate_body_content().


The documentation for this struct was generated from the following file:

Generated on Thu Apr 16 06:35:37 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6