diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-09-10 12:09:33 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-09-10 12:09:33 +0200 |
commit | c4be2b6ed81b83c3267fe9e3c867bc059454759f (patch) | |
tree | ff39e8af3ea1512cec4a1acc85a90c5a065c937f /src/toast.h | |
parent | fe54b8e612759faa7e479d5bc33fd1bc4b4f357f (diff) | |
download | OFQT-c4be2b6ed81b83c3267fe9e3c867bc059454759f.tar.gz OFQT-c4be2b6ed81b83c3267fe9e3c867bc059454759f.zip |
expose directory and endpoint macros
while I do not encourage their use, it would make direct access to TVN files more reliable
Diffstat (limited to 'src/toast.h')
-rw-r--r-- | src/toast.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/toast.h b/src/toast.h index 5a99fbb..7de9154 100644 --- a/src/toast.h +++ b/src/toast.h @@ -5,6 +5,19 @@ extern "C" { #endif +#define TOAST_TVN_DIR ".tvn" +#define TOAST_LOCAL_REMOTE "remote" +#define TOAST_LOCAL_REVISION "revision" +#define TOAST_LOCAL_OBJECTS "objects" +#define TOAST_LOCAL_REMOTE_PATH TOAST_TVN_DIR OS_PATH_SEP TOAST_LOCAL_REMOTE +#define TOAST_LOCAL_REVISION_PATH TOAST_TVN_DIR OS_PATH_SEP TOAST_LOCAL_REVISION +#define TOAST_LOCAL_OBJECTS_PATH TOAST_TVN_DIR OS_PATH_SEP TOAST_LOCAL_OBJECTS +#define OLD_TOAST_LOCAL_REVISION_PATH ".revision" + +#define TOAST_OBJECTS_ENDPOINT "objects" +#define TOAST_REVISIONS_ENDPOINT "revisions" +#define TOAST_LATEST_ENDPOINT TOAST_REVISIONS_ENDPOINT "/latest" + #include <stddef.h> enum TYPE_ENUM { |