2005-09-15 09:58:31 -04:00
|
|
|
#ifndef EL__PROTOCOL_HEADER_H
|
|
|
|
#define EL__PROTOCOL_HEADER_H
|
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2006-05-30 02:17:27 -04:00
|
|
|
enum parse_header_param {
|
|
|
|
HEADER_PARAM_FOUND,
|
|
|
|
HEADER_PARAM_NOT_FOUND,
|
|
|
|
HEADER_PARAM_OUT_OF_MEMORY
|
|
|
|
/* Might add HEADER_PARAM_SYNTAX_ERROR in a later version.
|
|
|
|
* Unknown values should be treated as errors. */
|
|
|
|
};
|
|
|
|
|
2021-01-02 10:20:27 -05:00
|
|
|
char *parse_header(char *, const char *, char **);
|
2022-01-29 12:27:06 -05:00
|
|
|
enum parse_header_param parse_header_param(char *, const char *, char **, int);
|
2022-02-17 14:39:07 -05:00
|
|
|
char *get_header_param(char *, const char *);
|
2005-09-15 09:58:31 -04:00
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
#endif
|