Introduce generic xmpp_conn_set_*() API
Instead of having a multitude of setter API functions for configuration options, provide generic ones for the different types we have. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
committed by
Steffen Jaeckel
parent
5690c4ed89
commit
06f2ba19b4
@@ -116,9 +116,9 @@ int main(int argc, char **argv)
|
||||
|
||||
/* setup authentication information */
|
||||
if (jid)
|
||||
xmpp_conn_set_jid(conn, jid);
|
||||
xmpp_conn_set_string(conn, XMPP_SETTING_JID, jid);
|
||||
if (password)
|
||||
xmpp_conn_set_pass(conn, password);
|
||||
xmpp_conn_set_string(conn, XMPP_SETTING_PASS, password);
|
||||
|
||||
/* initiate connection */
|
||||
if (xmpp_connect_client(conn, host, port, conn_handler, ctx) == XMPP_EOK) {
|
||||
|
||||
Reference in New Issue
Block a user