]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: include: move istbuf.h to haproxy/
authorWilly Tarreau <w@1wt.eu>
Wed, 27 May 2020 15:32:53 +0000 (17:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:56 +0000 (10:18 +0200)
This one now relies on two files that were already cleaned up and is
only used by buffer.h.

include/common/buffer.h
include/haproxy/istbuf.h [moved from include/common/istbuf.h with 96% similarity]
src/fcgi.c

index 6e7adf4b9ad00d93e83eb1efb9f2f12096ba7d2b..2f5f88253463aab782f344f8e1cbc89a02beed1d 100644 (file)
@@ -30,7 +30,7 @@
 #include <haproxy/buf.h>
 #include <common/chunk.h>
 #include <import/ist.h>
-#include <common/istbuf.h>
+#include <haproxy/istbuf.h>
 #include <common/memory.h>
 
 #include <proto/activity.h>
similarity index 96%
rename from include/common/istbuf.h
rename to include/haproxy/istbuf.h
index 074efe0dd10f069c48a18ce582bd2e85ed6c44f4..392ec46221e0113e16a175540dc0c83b6e36b24e 100644 (file)
@@ -1,8 +1,8 @@
 /*
- * include/common/istbuf.h
+ * include/haproxy/istbuf.h
  * Functions used to manipulate indirect strings with wrapping buffers.
  *
- * Copyright (C) 2000-2018 Willy Tarreau - w@1wt.eu
+ * Copyright (C) 2000-2020 Willy Tarreau - w@1wt.eu
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files (the
  * OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#ifndef _COMMON_ISTBUF_H
-#define _COMMON_ISTBUF_H
+#ifndef _HAPROXY_ISTBUF_H
+#define _HAPROXY_ISTBUF_H
 
-#include <inttypes.h>
-#include <haproxy/buf.h>
+#include <sys/types.h>
 #include <import/ist.h>
+#include <haproxy/buf.h>
 
 
 /* b_isteq() : returns > 0 if the first <n> characters of buffer <b> starting
@@ -152,7 +152,7 @@ static inline struct buffer ist2buf(const struct ist ist)
        return buf;
 }
 
-#endif /* _COMMON_ISTBUF_H */
+#endif /* _HAPROXY_ISTBUF_H */
 
 /*
  * Local variables:
index b2f6e4283e6f7aba9bfda0d4be6b67834132ab68..8cfb6d0a551445c7a8481bfc1b0320321280877d 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <common/fcgi.h>
 #include <haproxy/buf.h>
+#include <haproxy/istbuf.h>
 
 /* Encodes header of a FCGI record into the chunk <out>. It returns non-zero on
  * success and 0 on failure (buffer full). <out> is a chunk, so the wrapping is