diff options
| author | 2024-05-31 09:09:54 +0000 | |
|---|---|---|
| committer | 2024-05-31 09:09:54 +0000 | |
| commit | fe52b7612e4a96d491f925dfcbbbaa6251654ca4 (patch) | |
| tree | 40fb16a0f78b0988dd8167c101554d8425d2a875 /snac.h | |
| parent | mastoapi: more list tweaks. (diff) | |
| parent | Merge branch 'master' into announcements (diff) | |
| download | snac2-fe52b7612e4a96d491f925dfcbbbaa6251654ca4.tar.gz snac2-fe52b7612e4a96d491f925dfcbbbaa6251654ca4.tar.xz snac2-fe52b7612e4a96d491f925dfcbbbaa6251654ca4.zip | |
Merge pull request 'Implement instance announcements' (#173) from louis77/snac2:announcements into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/173
Diffstat (limited to 'snac.h')
| -rw-r--r-- | snac.h | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -375,3 +375,9 @@ typedef enum { | |||
| 375 | } http_status; | 375 | } http_status; |
| 376 | 376 | ||
| 377 | const char *http_status_text(int status); | 377 | const char *http_status_text(int status); |
| 378 | |||
| 379 | typedef struct { | ||
| 380 | double timestamp; | ||
| 381 | char *text; | ||
| 382 | } t_announcement; | ||
| 383 | t_announcement *announcement(double after); | ||