From 3df21ef899aafd2461570687ef3b9b1c9f9a555e Mon Sep 17 00:00:00 2001 From: kaa Date: Sun, 19 Nov 2023 11:32:23 -0800 Subject: Dump Canvas account directory structure. Start of directory parsing. --- shared.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 shared.h (limited to 'shared.h') 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; -- cgit v1.2.3