diff options
author | defanor <defanor@uberspace.net> | 2020-11-22 23:27:19 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2020-11-22 23:27:19 +0300 |
commit | 1f0f919dd2e0266c7a53306408b7c4eccb07888d (patch) | |
tree | 7dd486986c3b3f5215cfe8d35820ee2177a4a203 /src/rexmpp.h | |
parent | 89512dc79db51dac151996dc9460472dec00d242 (diff) |
Add the console module
Diffstat (limited to 'src/rexmpp.h')
-rw-r--r-- | src/rexmpp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rexmpp.h b/src/rexmpp.h index 5ad2f61..623390f 100644 --- a/src/rexmpp.h +++ b/src/rexmpp.h @@ -208,6 +208,7 @@ typedef int (*sasl_property_cb_t) (rexmpp_t *s, Gsasl_property prop); typedef int (*xml_in_cb_t) (rexmpp_t *s, xmlNodePtr node); typedef int (*xml_out_cb_t) (rexmpp_t *s, xmlNodePtr node); typedef void (*roster_modify_cb_t) (rexmpp_t *s, xmlNodePtr item); +typedef int (*console_print_cb_t) (rexmpp_t *s, const char *format, va_list args); /** @brief Complete connection state */ struct rexmpp @@ -260,6 +261,7 @@ struct rexmpp xml_in_cb_t xml_in_cb; xml_out_cb_t xml_out_cb; roster_modify_cb_t roster_modify_cb; + console_print_cb_t console_print_cb; /* Stream-related state. */ struct rexmpp_jid assigned_jid; @@ -512,4 +514,7 @@ xmlNodePtr rexmpp_find_event (rexmpp_t *s, const char *from, const char *node, xmlNodePtr *prev_event); + +void rexmpp_console_feed (rexmpp_t *s, char *str, ssize_t str_len); + #endif |