Add library init and shutdown.
This commit is contained in:
@@ -42,6 +42,9 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* init library */
|
||||
xmpp_initialize();
|
||||
|
||||
/* create a context */
|
||||
ctx = xmpp_ctx_new(NULL, NULL);
|
||||
|
||||
@@ -62,5 +65,7 @@ int main(int argc, char **argv)
|
||||
xmpp_conn_release(conn);
|
||||
xmpp_ctx_free(ctx);
|
||||
|
||||
xmpp_shutdown();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user