aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-08-09 13:51:30 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-08-09 13:51:30 +0530
commit04f1a2595cfef9c760744bd5885d3c8609fbff18 (patch)
tree1775ef194f23cbb442116cc168a9750ca3610632 /src
parent38a643690917927a263f19893d48962b38a7fdd4 (diff)
engine: include: add docstring for handle_include
Diffstat (limited to 'src')
-rw-r--r--src/engine/include.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/engine/include.c b/src/engine/include.c
index 30cce88..5cb650e 100644
--- a/src/engine/include.c
+++ b/src/engine/include.c
@@ -27,6 +27,14 @@
extern msg_t *msg;
+/*
+ * Handles INCLUDE calls. Given a pointer to the buffer, it replaces the
+ * INCLUDE call with the operand file's content.
+ *
+ * buffer: Pointer to the buffer that is modified
+ * match: Pointer to the key match
+ * directive: Pointer to the directive struct
+ */
void
handle_include(char **buffer, key_match_t *match, directive_t *directive)
{