summaryrefslogtreecommitdiff
path: root/pages.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2019-12-31 02:31:23 +1030
committerDaniel Jones <admin@danieljon.es>2019-12-31 02:31:23 +1030
commite4582742b95840f234b47c8f7b264ac3867fc817 (patch)
tree11af87d417204ad5a06024a786710345180ec974 /pages.h
parent1bc7d1547275671f3243ea16cacad0aea6cef649 (diff)
downloadwebsitegenerator-e4582742b95840f234b47c8f7b264ac3867fc817.tar.gz
websitegenerator-e4582742b95840f234b47c8f7b264ac3867fc817.zip
start generating posts
currently gets every file in the posts directory, sorts them and temporarily creates empty txt files in output/posts. lots to do still.
Diffstat (limited to 'pages.h')
-rw-r--r--pages.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pages.h b/pages.h
index 5f214d8..ba5b13b 100644
--- a/pages.h
+++ b/pages.h
@@ -22,6 +22,8 @@
#include <sys/stat.h>
#include <time.h>
#include <errno.h>
+#include <dirent.h>
+#include <stdlib.h>
struct fileorstring
{
@@ -37,6 +39,8 @@ int writeatbyte(const char *dest, struct fileorstring *source, long offset);
int replaceinpage(const char *outfile, const char *toreplace, struct fileorstring *source);
char *gettime(char *buffer, size_t size);
int createtmpfile(const char *name, const char *content, size_t size);
+int makedirectories(const char *basedir, const char *file);
+int postscompare(const void *a, const void *b);
/* generators (to be put into the pages array) */
int frontpage(int flags);
@@ -47,5 +51,6 @@ int opinionspage(int flags);
int opinions_animepage(int flags);
int opinions_everythingpage(int flags);
int portfoliopage(int flags);
+int postspage(int flags);
#endif