aboutsummaryrefslogtreecommitdiff
path: root/page.h
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-05-28 12:58:26 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-06-06 01:55:05 +0200
commit2648076370b06752a3c3fe70dc47868b66ced7fa (patch)
tree9a0d7f4dfc1cc4e48c4afcca9be74e96c8824b8c /page.h
parent17502e7e32c041761dc383a481861997aee7ad28 (diff)
downloadslcl-search.tar.gz
WIP searchsearch
wildcard_cmp: Allow case-insensitive searches
Diffstat (limited to 'page.h')
-rw-r--r--page.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/page.h b/page.h
index bd47138..2554bdc 100644
--- a/page.h
+++ b/page.h
@@ -2,6 +2,7 @@
#define PAGE_H
#include "http.h"
+#include <stddef.h>
struct page_quota
{
@@ -17,6 +18,17 @@ struct page_resource
size_t n_args;
};
+struct page_search
+{
+ struct page_search_result
+ {
+ char *name;
+ } *results;
+
+ const char *root;
+ 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);
@@ -27,5 +39,6 @@ int page_public(struct http_response *r, const char *res);
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);
#endif /* PAGE_H */