summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
+{
+}