diff options
author | kaa <kaa@disroot.org> | 2023-11-19 11:32:23 -0800 |
---|---|---|
committer | kaa <kaa@disroot.org> | 2023-11-19 11:32:23 -0800 |
commit | 3df21ef899aafd2461570687ef3b9b1c9f9a555e (patch) | |
tree | 91659e8964062709853460ad9ee80dbd1099edc9 /shared.h | |
parent | c11b26e1f75b643997787b76f5181731058a28f9 (diff) |
Dump Canvas account directory structure. Start of directory parsing.
Diffstat (limited to 'shared.h')
-rw-r--r-- | shared.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/shared.h b/shared.h new file mode 100644 index 0000000..618d3df --- /dev/null +++ b/shared.h @@ -0,0 +1,28 @@ +enum { + cmdsize = 4096, + pathsize = 1024, + bufsize = 16, +}; + +typedef char byte; + +struct listing { + long id, folder_id, size; + char *uuid, *filename, *upload_status, *content_type, *url; + char *created_at, *updated_at, *unlock_at, *lock_at, thumbnail_url; + char *modified_at, *mime_class, *media_entry_id, *category; + byte locked, hidden, hidden_for_user, locked_for_user; +}; +typedef struct listing Listing; + +struct directory { + char *context_type, updated_at, folders_url, files_url, full_name; + char *lock_at, name, *created_at, *unlock_at; + long context_id, files_count, position, id, folders_count; + long parent_folder_id; + byte hidden, hidden_for_user, locked, locked_for_users; + byte for_submissions; +}; +typedef struct directory Directory; + +char *upload_key; |