aboutsummaryrefslogtreecommitdiff
path: root/src/engine
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-08-09 12:20:24 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-08-09 12:20:24 +0530
commit84b0095c4ccca0a244d0c3d8b9d1a79ec605f2b1 (patch)
tree8eb8c61859bfc41cf8f4071e2ecc8d2be2698d87 /src/engine
parent1acd74f76716c078015700b04c5e1c7b1b4f7556 (diff)
engine: contentfor: add docstring
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/contentfor.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/engine/contentfor.c b/src/engine/contentfor.c
index 76aae79..f34abf4 100644
--- a/src/engine/contentfor.c
+++ b/src/engine/contentfor.c
@@ -24,6 +24,16 @@
#include <stdlib.h>
#include <string.h>
+/*
+ * Handles CONTENTFOR calls. Given a pointer to the buffer, it creates a new
+ * CONTENTFOR operand with the content block and the key. This operand is
+ * appended to the content_headers list.
+ *
+ * buffer: Pointer to the buffer
+ * match: Pointer to the key match
+ * directive: Pointer to the directive struct
+ * content_headers: Pointer to the list of content headers that is appended to
+ */
void
handle_contentfor(char **buffer,
key_match_t *match,