00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _MSG_H_
00022 #define _MSG_H_
00023
00024 #ifndef DOXYGEN
00025
00026 #define NUMBER_OF_HEADERS 33
00027
00028
00029 typedef struct ___osip_message_config_t
00030 {
00031 char *hname;
00032 int (*setheader) (osip_message_t *, const char *);
00033 }
00034 __osip_message_config_t;
00035
00036 int __osip_message_call_method (int i, osip_message_t * dest,
00037 const char *hvalue);
00038 int __osip_message_is_known_header (const char *hname);
00039
00040 int __osip_find_next_occurence (const char *str, const char *buf,
00041 const char **index_of_str);
00042 int __osip_find_next_crlf (const char *start_of_header,
00043 const char **end_of_header);
00044 int __osip_find_next_crlfcrlf (const char *start_of_part,
00045 const char **end_of_part);
00046
00047 int __osip_quoted_string_set (const char *name, const char *str,
00048 char **result, const char **next);
00049 int __osip_token_set (const char *name, const char *str,
00050 char **result, const char **next);
00051
00052
00053 int __osip_generic_param_parseall (osip_list_t * gen_params,
00054 const char *params);
00055 #endif
00056
00057 #endif