event: move xmpp_ctx_set_timeout() to the Event loop module

xmpp_ctx_set_timeout() belongs to the event loop. Move it to provide
better doxygen documentation.
This commit is contained in:
Dmitry Podgorny
2021-11-25 19:29:07 +02:00
parent 058576e768
commit b3e355736f
2 changed files with 12 additions and 12 deletions

View File

@@ -462,18 +462,6 @@ void xmpp_ctx_free(xmpp_ctx_t *ctx)
xmpp_free(ctx, ctx); /* pull the hole in after us */
}
/** Set the timeout to use when calling xmpp_run().
*
* @param ctx a Strophe context object
* @param timeout the time to wait for events in milliseconds
*
* @ingroup Context
*/
void xmpp_ctx_set_timeout(xmpp_ctx_t *ctx, unsigned long timeout)
{
ctx->timeout = timeout;
}
/** Set the verbosity level of a Strophe context.
*
* @param ctx a Strophe context object

View File

@@ -355,3 +355,15 @@ void xmpp_stop(xmpp_ctx_t *ctx)
if (ctx->loop_status == XMPP_LOOP_RUNNING)
ctx->loop_status = XMPP_LOOP_QUIT;
}
/** Set the timeout to use when calling xmpp_run().
*
* @param ctx a Strophe context object
* @param timeout the time to wait for events in milliseconds
*
* @ingroup EventLoop
*/
void xmpp_ctx_set_timeout(xmpp_ctx_t *ctx, unsigned long timeout)
{
ctx->timeout = timeout;
}