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 #ifndef MINISIZE
00027 #define NUMBER_OF_HEADERS 33
00028 #else
00029 #define NUMBER_OF_HEADERS 22
00030 #endif
00031
00032
00033 typedef struct ___osip_message_config_t
00034 {
00035 char *hname;
00036 int (*setheader) (osip_message_t *, const char *);
00037 int ignored_when_invalid;
00038 }
00039 __osip_message_config_t;
00040
00041 int __osip_message_call_method (int i, osip_message_t * dest, const char *hvalue);
00042 int __osip_message_is_known_header (const char *hname);
00043
00044 int __osip_find_next_occurence (const char *str, const char *buf,
00045 const char **index_of_str, const char *end_of_buf);
00046 int __osip_find_next_crlf (const char *start_of_header,
00047 const char **end_of_header);
00048 int __osip_find_next_crlfcrlf (const char *start_of_part,
00049 const char **end_of_part);
00050
00051 int __osip_quoted_string_set (const char *name, const char *str,
00052 char **result, const char **next);
00053 int __osip_token_set (const char *name, const char *str,
00054 char **result, const char **next);
00055
00056
00057 int __osip_generic_param_parseall (osip_list_t * gen_params, const char *params);
00058 #endif
00059
00060 #endif