summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-04-28 08:33:02 +0200
committerdefault <nobody@localhost>2023-04-28 08:33:02 +0200
commit765f63772f5a63c6c7c97c06b265f5bba06966df (patch)
treef9d6dd0b28d7db426aff80654e3991be6b3b1ba7
parentb620fe99fa99bb1658f43741b2d40ce88ff53963 (diff)
New function mastoapi_purge() (still dummy).
-rw-r--r--data.c4
-rw-r--r--mastoapi.c5
-rw-r--r--snac.h1
3 files changed, 10 insertions, 0 deletions
diff --git a/data.c b/data.c
index 5c71c8e..c2d29c1 100644
--- a/data.c
+++ b/data.c
@@ -2078,6 +2078,10 @@ void purge_all(void)
}
purge_server();
+
+#ifndef NO_MASTODON_API
+ mastoapi_purge();
+#endif
}
diff --git a/mastoapi.c b/mastoapi.c
index 5e20742..b53c73c 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1961,4 +1961,9 @@ int mastoapi_put_handler(const xs_dict *req, const char *q_path,
}
+void mastoapi_purge(void)
+{
+}
+
+
#endif /* #ifndef NO_MASTODON_API */
diff --git a/snac.h b/snac.h
index eeedca7..f9cbae2 100644
--- a/snac.h
+++ b/snac.h
@@ -253,3 +253,4 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
int mastoapi_put_handler(const xs_dict *req, const char *q_path,
const char *payload, int p_size,
char **body, int *b_size, char **ctype);
+void mastoapi_purge(void);