diff options
| author | 2023-04-21 23:17:58 +0200 | |
|---|---|---|
| committer | 2023-04-21 23:17:58 +0200 | |
| commit | 526d4e8abb27127625a228796dc9c196efcfa8bf (patch) | |
| tree | 76a5c05240474df1fdfc5902bdb0fe6d70cdd203 /mastoapi.c | |
| parent | Merge branch 'master' of /home/angel/git/snac2 (diff) | |
| download | snac2-526d4e8abb27127625a228796dc9c196efcfa8bf.tar.gz snac2-526d4e8abb27127625a228796dc9c196efcfa8bf.tar.xz snac2-526d4e8abb27127625a228796dc9c196efcfa8bf.zip | |
Added a new compilation variable NO_MASTODON_API.
The Mastodon API is a big and ugly beast; if you don't want
it in your snac, you can compile it out by running
make CFLAGS=-DNO_MASTODON_API
And your snac binary will be as slim as always.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -1,6 +1,8 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2023 grunfink / MIT license */ | 2 | /* copyright (c) 2022 - 2023 grunfink / MIT license */ |
| 3 | 3 | ||
| 4 | #ifndef NO_MASTODON_API | ||
| 5 | |||
| 4 | #include "xs.h" | 6 | #include "xs.h" |
| 5 | #include "xs_encdec.h" | 7 | #include "xs_encdec.h" |
| 6 | #include "xs_openssl.h" | 8 | #include "xs_openssl.h" |
| @@ -1453,3 +1455,5 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, | |||
| 1453 | 1455 | ||
| 1454 | return status; | 1456 | return status; |
| 1455 | } | 1457 | } |
| 1458 | |||
| 1459 | #endif /* #ifndef NO_MASTODON_API */ | ||