diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 11 |
1 files changed, 11 insertions, 0 deletions
| @@ -116,6 +116,17 @@ int main(int argc, char *argv[]) | |||
| 116 | if ((url = GET_ARGV()) == NULL) | 116 | if ((url = GET_ARGV()) == NULL) |
| 117 | return usage(); | 117 | return usage(); |
| 118 | 118 | ||
| 119 | if (strcmp(cmd, "announce") == 0) { | ||
| 120 | xs *msg = msg_admiration(&snac, url, "Announce"); | ||
| 121 | |||
| 122 | { | ||
| 123 | xs *j = xs_json_dumps_pp(msg, 4); | ||
| 124 | printf("%s\n", j); | ||
| 125 | } | ||
| 126 | |||
| 127 | return 0; | ||
| 128 | } | ||
| 129 | |||
| 119 | if (strcmp(cmd, "request") == 0) { | 130 | if (strcmp(cmd, "request") == 0) { |
| 120 | int status; | 131 | int status; |
| 121 | xs *data = NULL; | 132 | xs *data = NULL; |