diff options
author | Ali Fardan <raiz@stellarbound.space> | 2020-11-03 19:11:21 +0300 |
---|---|---|
committer | Ali Fardan <raiz@stellarbound.space> | 2020-11-03 19:11:21 +0300 |
commit | b4c6ef6f3a515b8b79dbb299aa5755624c00aa5a (patch) | |
tree | 62acfe1b4c2f4a2cc109b90a53ec25eaf7eed6c6 /gemlog.h | |
download | gemlog-b4c6ef6f3a515b8b79dbb299aa5755624c00aa5a.tar.gz |
initial commit, directory parser working
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 **); |