aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-08-29 21:41:10 -0400
committerRaghuram Subramani <raghus2247@gmail.com>2025-08-29 21:41:10 -0400
commitf4ab531029fabaf0901e35808a1d5088869410c5 (patch)
tree24fd960b355388b5e37bbba84d41008f9583d93b /include
parent7c7d40dc682668a545ffd32fb3865b05ebe41eb3 (diff)
engine: handle config.cfg source for eachdo
Diffstat (limited to 'include')
-rw-r--r--include/engine.h8
-rw-r--r--include/msg.h2
2 files changed, 6 insertions, 4 deletions
diff --git a/include/engine.h b/include/engine.h
index aec55b2..8184567 100644
--- a/include/engine.h
+++ b/include/engine.h
@@ -57,9 +57,9 @@ void handle_eachdo(char **buffer,
key_match_t *match,
directive_t *directive,
config_t *config);
-void handle_page_source(list_t *atoms,
- eachdo_operands_t *operands,
- list_t *directives,
- config_t *config);
+void handle_config_source(list_t *atoms,
+ eachdo_operands_t *operands,
+ list_t *directives,
+ config_t *config);
#endif
diff --git a/include/msg.h b/include/msg.h
index da6cd19..f292ca1 100644
--- a/include/msg.h
+++ b/include/msg.h
@@ -19,6 +19,7 @@
#ifndef __MSG_H
#define __MSG_H
+#include <config.h>
#include <stdbool.h>
#define PARTIALS "partials"
@@ -30,6 +31,7 @@ typedef struct {
char *base_directory;
char *output_directory;
bool verbose;
+ config_t *config;
} msg_t;
int run(bool log);