]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: uri_normalizer: Add `enum uri_normalizer_err`
authorTim Duesterhus <tim@bastelstu.be>
Thu, 15 Apr 2021 19:45:56 +0000 (21:45 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 19 Apr 2021 07:05:57 +0000 (09:05 +0200)
This enum will serve as the return type for each normalizer.

include/haproxy/uri_normalizer-t.h [new file with mode: 0644]
include/haproxy/uri_normalizer.h

diff --git a/include/haproxy/uri_normalizer-t.h b/include/haproxy/uri_normalizer-t.h
new file mode 100644 (file)
index 0000000..bcbcaef
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ * include/haproxy/uri_normalizer.h
+ * HTTP request URI normalization.
+ *
+ * Copyright 2021 Tim Duesterhus <tim@bastelstu.be>
+ *
+ * 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:
+ */
index 82ef973249aea6bf46e4bc8c515d439567639613..20341a90762a7b6d37a3d2fc69a4dcc4e6f0aa7b 100644 (file)
@@ -14,6 +14,8 @@
 #ifndef _HAPROXY_URI_NORMALIZER_H
 #define _HAPROXY_URI_NORMALIZER_H
 
+#include <haproxy/uri_normalizer-t.h>
+
 #endif /* _HAPROXY_URI_NORMALIZER_H */
 
 /*