From b3e355736faad2971f6876458d967a14200db6a7 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Thu, 25 Nov 2021 19:29:07 +0200 Subject: [PATCH] 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. --- src/ctx.c | 12 ------------ src/event.c | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) 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; +}