Add library init and shutdown.

This commit is contained in:
Jack Moffitt
2005-06-15 05:37:24 +00:00
parent 0d311771bb
commit 3cf080bb2d
5 changed files with 34 additions and 0 deletions

View File

@@ -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;
}