aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtipidee/tipidee_fcgi_endrequest_body_pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtipidee/tipidee_fcgi_endrequest_body_pack.c')
-rw-r--r--src/libtipidee/tipidee_fcgi_endrequest_body_pack.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libtipidee/tipidee_fcgi_endrequest_body_pack.c b/src/libtipidee/tipidee_fcgi_endrequest_body_pack.c
new file mode 100644
index 0000000..d289d6d
--- /dev/null
+++ b/src/libtipidee/tipidee_fcgi_endrequest_body_pack.c
@@ -0,0 +1,14 @@
+/* ISC license. */
+
+#include <string.h>
+
+#include <skalibs/uint32.h>
+
+#include <tipidee/fcgi.h>
+
+void tipidee_fcgi_endrequest_body_pack (char *s, fcgi_endrequest_body const *bd)
+{
+ uint32_pack_big(s, bd->appstatus) ; s += 4 ;
+ *s++ = bd->protostatus ;
+ memset(s, 0, 3) ;
+}