aboutsummaryrefslogtreecommitdiff
path: root/page.h
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-08 00:54:59 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-08 03:06:13 +0200
commitd54e3ad322f8ed4219f9cdb7b78ae210861031d1 (patch)
treea90cca183ad8ec5376d891b88aad45798e5288a3 /page.h
parent74ca76a58fca114140d0d0cc13a1216d6dffbee0 (diff)
Implement file/directory removalremove
The following workflow has been implemented: - A new checkbox for each object inside a directory is shown. - When one or more objects are selected, the user submits a request through a HTML5 form. - Then, slcl will ask the user for confirmation, listing the selected objects, while reminding the user about the effects. - The user confirms the selection. - slcl removes the selected objects. All objects from non-empty directories are removed, too. - Finally, slcl redirects the user to the directory the request was made from.
Diffstat (limited to 'page.h')
-rw-r--r--page.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/page.h b/page.h
index 2554bdc..748380d 100644
--- a/page.h
+++ b/page.h
@@ -29,6 +29,12 @@ struct page_search
size_t n;
};
+struct page_rm
+{
+ const char *dir, **items;
+ size_t n;
+};
+
int page_login(struct http_response *r);
int page_style(struct http_response *r);
int page_failed_login(struct http_response *r);
@@ -40,5 +46,6 @@ int page_share(struct http_response *r, const char *path);
int page_quota_exceeded(struct http_response *r, unsigned long long len,
unsigned long long quota);
int page_search(struct http_response *r, const struct page_search *s);
+int page_rm(struct http_response *r, const struct page_rm *rm);
#endif /* PAGE_H */