From: Tim Duesterhus Date: Thu, 15 Apr 2021 19:45:56 +0000 (+0200) Subject: MINOR: uri_normalizer: Add `enum uri_normalizer_err` X-Git-Tag: v2.4-dev17~94 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ee1ad5675b77dd65dce4b364b24a9fc09044962;p=thirdparty%2Fhaproxy.git MINOR: uri_normalizer: Add `enum uri_normalizer_err` This enum will serve as the return type for each normalizer. --- diff --git a/include/haproxy/uri_normalizer-t.h b/include/haproxy/uri_normalizer-t.h new file mode 100644 index 0000000000..bcbcaef8e6 --- /dev/null +++ b/include/haproxy/uri_normalizer-t.h @@ -0,0 +1,31 @@ +/* + * include/haproxy/uri_normalizer.h + * HTTP request URI normalization. + * + * Copyright 2021 Tim Duesterhus + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option) any later version. + * + */ + +#ifndef _HAPROXY_URI_NORMALIZER_T_H +#define _HAPROXY_URI_NORMALIZER_T_H + +enum uri_normalizer_err { + URI_NORMALIZER_ERR_NONE = 0, + URI_NORMALIZER_ERR_ALLOC, + URI_NORMALIZER_ERR_INVALID_INPUT, + URI_NORMALIZER_ERR_INTERNAL_ERROR = 0xdead, +}; + +#endif /* _HAPROXY_URI_NORMALIZER_T_H */ + +/* + * Local variables: + * c-indent-level: 8 + * c-basic-offset: 8 + * End: + */ diff --git a/include/haproxy/uri_normalizer.h b/include/haproxy/uri_normalizer.h index 82ef973249..20341a9076 100644 --- a/include/haproxy/uri_normalizer.h +++ b/include/haproxy/uri_normalizer.h @@ -14,6 +14,8 @@ #ifndef _HAPROXY_URI_NORMALIZER_H #define _HAPROXY_URI_NORMALIZER_H +#include + #endif /* _HAPROXY_URI_NORMALIZER_H */ /*