1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
elinks/src/protocol/header.h
2022-02-17 20:39:07 +01:00

25 lines
530 B
C

#ifndef EL__PROTOCOL_HEADER_H
#define EL__PROTOCOL_HEADER_H
#ifdef __cplusplus
extern "C" {
#endif
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. */
};
char *parse_header(char *, const char *, char **);
enum parse_header_param parse_header_param(char *, const char *, char **, int);
char *get_header_param(char *, const char *);
#ifdef __cplusplus
}
#endif
#endif