summaryrefslogtreecommitdiff
path: root/shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared.h')
-rw-r--r--shared.h28
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;