diff options
author | defanor <defanor@uberspace.net> | 2020-11-23 09:38:16 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2020-11-23 09:38:16 +0300 |
commit | fbda87a3866678a0bf6acf09acd6f50890583be5 (patch) | |
tree | fa05bc3f59e26139d810e9939e7c2b5d85a9d657 /src/rexmpp_console.c | |
parent | 4abc8d9b80c66207763bd9b9ea0d09379b610fe3 (diff) |
Add rexmpp_console_on_run
Diffstat (limited to 'src/rexmpp_console.c')
-rw-r--r-- | src/rexmpp_console.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rexmpp_console.c b/src/rexmpp_console.c index 47c0bfa..3bafd88 100644 --- a/src/rexmpp_console.c +++ b/src/rexmpp_console.c @@ -119,6 +119,13 @@ void rexmpp_console_on_recv (rexmpp_t *s, xmlNodePtr node) { } } +void rexmpp_console_on_run (rexmpp_t *s, rexmpp_err_t result) { + if (result == REXMPP_SUCCESS) { + rexmpp_console_printf(s, "Done.\n"); + return; + } +} + void rexmpp_console_feed (rexmpp_t *s, char *str, ssize_t str_len) { /* todo: buffering */ char *words_save_ptr; |