diff options
Diffstat (limited to 'gemlog.h')
-rw-r--r-- | gemlog.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gemlog.h b/gemlog.h new file mode 100644 index 0000000..7c84039 --- /dev/null +++ b/gemlog.h @@ -0,0 +1,21 @@ +#define GEMLOG_TITLE_FILENAME "title" +#define GEMLOG_CONTENT_FILENAME "content.gmi" + +struct gemlog_entry { + char *title; + struct tm date; + struct gemtext **content; +}; + +/* strlcpy.c/strlcat.c */ +#undef strlcpy +#undef strlcat +size_t strlcpy(char *, const char *, size_t); +size_t strlcat(char *, const char *, size_t); + +/* gemlog.c */ +struct gemlog_entry **gemlog_readdir(const char *); + +/* free.c */ +void gemlog_entry_free(struct gemlog_entry *); +void gemlog_entry_list_free(struct gemlog_entry **); |