commit 765f637
default
·
2023-04-28 06:33:02 +0000 UTC
parent b620fe9
New function mastoapi_purge() (still dummy).
3 files changed,
+10,
-0
M
data.c
+4,
-0
1@@ -2078,6 +2078,10 @@ void purge_all(void)
2 }
3
4 purge_server();
5+
6+#ifndef NO_MASTODON_API
7+ mastoapi_purge();
8+#endif
9 }
10
11
+5,
-0
1@@ -1961,4 +1961,9 @@ int mastoapi_put_handler(const xs_dict *req, const char *q_path,
2 }
3
4
5+void mastoapi_purge(void)
6+{
7+}
8+
9+
10 #endif /* #ifndef NO_MASTODON_API */
M
snac.h
+1,
-0
1@@ -253,3 +253,4 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
2 int mastoapi_put_handler(const xs_dict *req, const char *q_path,
3 const char *payload, int p_size,
4 char **body, int *b_size, char **ctype);
5+void mastoapi_purge(void);