Its syntax is defined in [H14.4, S10.8] as follows:
Accept-Language = "Accept-Language" HCOLON [ language *(COMMA language) ] language = language-range *(SEMI accept-param) language-range = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) / "*" )
The parsed Accept-Language header is stored in sip_accept_language_t structure.
|
|
Initializer for structure sip_accept_language_t. A static sip_accept_language_t structure for Accept-Language header must be initialized with the SIP_ACCEPT_LANGUAGE_INIT() macro. For instance, |
|
|
Tag list item for pointer to a Accept-Language header structure sip_accept_language_t. The SIPTAG_ACCEPT_LANGUAGE() macro is used to include a tag item with a pointer to a sip_accept_language_t structure in a tag list.
|
|
|
Tag list item for string with Accept-Language header value. The SIPTAG_ACCEPT_LANGUAGE_STR() macro is used to include a tag item with a string containing value of a sip_accept_language_t header in a tag list.
The corresponding tag taking reference parameter is SIPTAG_ACCEPT_LANGUAGE_STR_REF(). |
|
|
The structure sip_accept_language_t contains representation of SIP Accept-Language header. The sip_accept_language_t is defined as follows: typedef struct { msg_common_t aa_common[1]; // Common fragment info sip_accept_language_t *aa_next; // Pointer to next <language> char const *aa_value; // Language-range msg_param_t const *aa_params; // List of accept-parameters char const *aa_q; // Value of q parameter } sip_accept_language_t; |
|
||||||||||||
|
Copy a list of Accept-Language header header structures sip_accept_language_t.
The function sip_accept_language_copy() copies a header structure hdr. If the header structure hdr contains a reference (
|
|
||||||||||||
|
Duplicate a list of Accept-Language header header structures sip_accept_language_t.
Duplicate a header structure hdr. If the header structure hdr contains a reference (
|
|
||||||||||||||||
|
Make a Accept-Language header from formatting result. Make a new sip_accept_language_t object using formatting result as its value. The function first prints the arguments according to the format fmt specified. Then it allocates a new header structure, and parses the formatting result to the structure sip_accept_language_t.
|
|
|
Initialize a structure sip_accept_language_t. An sip_accept_language_t structure for Accept-Language header can be initialized with the sip_accept_language_init() function/macro. For instance, sip_accept_language_t sip_accept_language; sip_accept_language_init(&sip_accept_language); |
|
||||||||||||
|
Make a Accept-Language header structure sip_accept_language_t. The function sip_accept_language_make() makes a new sip_accept_language_t header structure. It allocates a new header structure, and decodes the string s as the value of the structure.
|
|
|
Test if header object is instance of sip_accept_language_t. Check if the header class is an instance of Accept-Language header object and return true (nonzero), otherwise return false (zero).
|
|
|
Header class for Accept-Language header. The header class sip_accept_language_class defines how a SIP Accept-Language header is parsed and printed. It also contains methods used by SIP parser and other functions to manipulate the sip_accept_language_t header structure. |