aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtipidee/tipidee_fcgi_beginrequest_body_pack.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-05-21 03:30:09 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-05-21 03:30:09 +0000
commitfa54bb75ff65b1eca0e36ef2d4d4579dbce4b28e (patch)
treeee382de101a4a46f598f2edbb1d868734293ca34 /src/libtipidee/tipidee_fcgi_beginrequest_body_pack.c
parentea28bb1a26afef91fbaac7ef06dc91e4def69477 (diff)
downloadtipidee-fa54bb75ff65b1eca0e36ef2d4d4579dbce4b28e.tar.gz
Add tipidee/fcgi.h
Diffstat (limited to 'src/libtipidee/tipidee_fcgi_beginrequest_body_pack.c')
-rw-r--r--src/libtipidee/tipidee_fcgi_beginrequest_body_pack.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libtipidee/tipidee_fcgi_beginrequest_body_pack.c b/src/libtipidee/tipidee_fcgi_beginrequest_body_pack.c
new file mode 100644
index 0000000..400be69
--- /dev/null
+++ b/src/libtipidee/tipidee_fcgi_beginrequest_body_pack.c
@@ -0,0 +1,14 @@
+/* ISC license. */
+
+#include <string.h>
+
+#include <skalibs/uint16.h>
+
+#include <tipidee/fcgi.h>
+
+void tipidee_fcgi_beginrequest_body_pack (char *s, fcgi_beginrequest_body const *bd)
+{
+ uint16_pack_big(s, bd->role) ; s += 2 ;
+ *s++ = bd->flags ;
+ memset(s, 0, 5) ;
+}