summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-07-18 19:18:36 -0400
committerJakob Kaivo <jkk@ung.org>2019-07-18 19:18:36 -0400
commite8b3f24226dd1294cbf6d6e3a0ff2eb8a5403bd1 (patch)
tree93f7055ee914e83d32df23213cd3866c8e389313
parent9875fdaae6f71cd00ee4c7e99abf171b7f51116e (diff)
new function add_to_index()
-rw-r--r--Makefile2
-rw-r--r--blog.h2
-rw-r--r--index.c7
3 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c9fcefa..ed2bc04 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
.POSIX:
CFLAGS=-static
-OBJECTS=blog.o post.o auth.o
+OBJECTS=blog.o post.o auth.o index.o
all: blog
diff --git a/blog.h b/blog.h
index 6e55315..70783a3 100644
--- a/blog.h
+++ b/blog.h
@@ -13,4 +13,6 @@ int handle_post(void);
int show_entry(const char *path);
+void add_to_index(const char *path, const char *title);
+
#endif
diff --git a/index.c b/index.c
new file mode 100644
index 0000000..87aeaa3
--- /dev/null
+++ b/index.c
@@ -0,0 +1,7 @@
+#define _XOPEN_SOURCE 700
+
+#include "blog.h"
+
+void add_to_index(const char *path, const char *title)
+{
+}