diff --git a/src/ctx.c b/src/ctx.c index 15bbd09..22d416b 100644 --- a/src/ctx.c +++ b/src/ctx.c @@ -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 diff --git a/src/event.c b/src/event.c index 3488662..30b2a1a 100644 --- a/src/event.c +++ b/src/event.c @@ -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; +}