aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/copy.h3
-rw-r--r--include/engine.h2
-rw-r--r--include/msg.h (renamed from include/main.h)5
-rw-r--r--include/template.h2
4 files changed, 5 insertions, 7 deletions
diff --git a/include/copy.h b/include/copy.h
index 2e61f36..050ad80 100644
--- a/include/copy.h
+++ b/include/copy.h
@@ -16,15 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
#ifndef __COPY_H
#define __COPY_H
#include <ftw.h>
#include <sys/stat.h>
-#define OUTPUT "dist"
-
typedef struct FTW FTW;
int copy_recursively(const char *fpath,
diff --git a/include/engine.h b/include/engine.h
index 17b05ea..86aa167 100644
--- a/include/engine.h
+++ b/include/engine.h
@@ -22,8 +22,6 @@
#include <lexer.h>
#include <list.h>
-#define PARTIALS "partials"
-
list_t *engine_ingest(char **buffer);
void handle_include(char **buffer, key_match_t *match, directive_t *directive);
void handle_contentfor(char **buffer,
diff --git a/include/main.h b/include/msg.h
index 9ac266f..631c981 100644
--- a/include/main.h
+++ b/include/msg.h
@@ -21,9 +21,14 @@
#define ASSETS "assets"
#define CONFIG_FILE "config.cfg"
+#define BASE_TEMPLATE "base.html"
+#define OUTPUT "dist"
+#define PARTIALS "partials"
typedef struct {
char *base_directory;
} msg_t;
+int run(int argc, char **argv);
+
#endif
diff --git a/include/template.h b/include/template.h
index 4b656f8..c489e45 100644
--- a/include/template.h
+++ b/include/template.h
@@ -23,8 +23,6 @@
#include <stdbool.h>
#include <stdio.h>
-#define BASE_TEMPLATE "base.html"
-
typedef struct {
list_t *components;
} template_t;