diff options
| author | 2023-04-28 08:33:02 +0200 | |
|---|---|---|
| committer | 2023-04-28 08:33:02 +0200 | |
| commit | 765f63772f5a63c6c7c97c06b265f5bba06966df (patch) | |
| tree | f9d6dd0b28d7db426aff80654e3991be6b3b1ba7 | |
| parent | Ensure the new app client_id is unique. (diff) | |
| download | snac2-765f63772f5a63c6c7c97c06b265f5bba06966df.tar.gz snac2-765f63772f5a63c6c7c97c06b265f5bba06966df.tar.xz snac2-765f63772f5a63c6c7c97c06b265f5bba06966df.zip | |
New function mastoapi_purge() (still dummy).
| -rw-r--r-- | data.c | 4 | ||||
| -rw-r--r-- | mastoapi.c | 5 | ||||
| -rw-r--r-- | snac.h | 1 |
3 files changed, 10 insertions, 0 deletions
| @@ -2078,6 +2078,10 @@ void purge_all(void) | |||
| 2078 | } | 2078 | } |
| 2079 | 2079 | ||
| 2080 | purge_server(); | 2080 | purge_server(); |
| 2081 | |||
| 2082 | #ifndef NO_MASTODON_API | ||
| 2083 | mastoapi_purge(); | ||
| 2084 | #endif | ||
| 2081 | } | 2085 | } |
| 2082 | 2086 | ||
| 2083 | 2087 | ||
| @@ -1961,4 +1961,9 @@ int mastoapi_put_handler(const xs_dict *req, const char *q_path, | |||
| 1961 | } | 1961 | } |
| 1962 | 1962 | ||
| 1963 | 1963 | ||
| 1964 | void mastoapi_purge(void) | ||
| 1965 | { | ||
| 1966 | } | ||
| 1967 | |||
| 1968 | |||
| 1964 | #endif /* #ifndef NO_MASTODON_API */ | 1969 | #endif /* #ifndef NO_MASTODON_API */ |
| @@ -253,3 +253,4 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, | |||
| 253 | int mastoapi_put_handler(const xs_dict *req, const char *q_path, | 253 | int mastoapi_put_handler(const xs_dict *req, const char *q_path, |
| 254 | const char *payload, int p_size, | 254 | const char *payload, int p_size, |
| 255 | char **body, int *b_size, char **ctype); | 255 | char **body, int *b_size, char **ctype); |
| 256 | void mastoapi_purge(void); | ||