rlm_rcode_t unlang_module_yield_to_xlat(TALLOC_CTX *ctx, fr_value_box_t **out,
REQUEST *request, xlat_exp_t const *xlat,
fr_unlang_module_resume_t resume,
- fr_unlang_module_signal_t signal, void *uctx);
+ fr_unlang_module_signal_t signal, void *rctx);
rlm_rcode_t unlang_module_yield(REQUEST *request,
fr_unlang_module_resume_t resume,
- fr_unlang_module_signal_t signal, void *ctx);
+ fr_unlang_module_signal_t signal, void *rctx);
#ifdef __cplusplus
}
* @param[in] request The current request.
* @param[in] instance This instance of the delay module.
* @param[in] thread Thread specific module instance.
- * @param[in] ctx Scheduled end of the delay.
+ * @param[in] rctx Scheduled end of the delay.
* @param[in] fired When request processing was resumed.
*/
-static void _delay_done(REQUEST *request, UNUSED void *instance, UNUSED void *thread, void *ctx, struct timeval *fired)
+static void _delay_done(REQUEST *request, UNUSED void *instance, UNUSED void *thread, void *rctx, struct timeval *fired)
{
- struct timeval *yielded = talloc_get_type_abort(ctx, struct timeval);
+ struct timeval *yielded = talloc_get_type_abort(rctx, struct timeval);
RDEBUG2("Delay done");
*
*/
static rlm_rcode_t mod_delay_return(REQUEST *request,
- UNUSED void *instance, UNUSED void *thread, void *ctx)
+ UNUSED void *instance, UNUSED void *thread, void *rctx)
{
- struct timeval *yielded = talloc_get_type_abort(ctx, struct timeval);
+ struct timeval *yielded = talloc_get_type_abort(rctx, struct timeval);
/*
* Print how long the delay *really* was.
return RLM_MODULE_OK;
}
-static void mod_delay_cancel(REQUEST *request, UNUSED void *instance, UNUSED void *thread, void *ctx,
+static void mod_delay_cancel(REQUEST *request, UNUSED void *instance, UNUSED void *thread, void *rctx,
fr_state_signal_t action)
{
if (action != FR_SIGNAL_CANCEL) return;
RDEBUG2("Cancelling delay");
- if (!fr_cond_assert(unlang_module_timeout_delete(request, ctx) == 0)) return;
+ if (!fr_cond_assert(unlang_module_timeout_delete(request, rctx) == 0)) return;
}
static rlm_rcode_t CC_HINT(nonnull) mod_delay(void *instance, UNUSED void *thread, REQUEST *request)
return unlang_module_yield(request, mod_authorize_result, rest_io_module_action, handle);
}
-static rlm_rcode_t mod_authenticate_result(REQUEST *request, void *instance, void *thread, void *ctx)
+static rlm_rcode_t mod_authenticate_result(REQUEST *request, void *instance, void *thread, void *rctx)
{
rlm_rest_t const *inst = instance;
rlm_rest_thread_t *t = thread;
rlm_rest_section_t const *section = &inst->authenticate;
- rlm_rest_handle_t *handle = ctx;
+ rlm_rest_handle_t *handle = rctx;
int hcode;
int rcode = RLM_MODULE_OK;
return unlang_module_yield(request, mod_authenticate_result, NULL, handle);
}
-static rlm_rcode_t mod_accounting_result(REQUEST *request, void *instance, void *thread, void *ctx)
+static rlm_rcode_t mod_accounting_result(REQUEST *request, void *instance, void *thread, void *rctx)
{
rlm_rest_t const *inst = instance;
rlm_rest_thread_t *t = thread;
rlm_rest_section_t const *section = &inst->authenticate;
- rlm_rest_handle_t *handle = ctx;
+ rlm_rest_handle_t *handle = rctx;
int hcode;
int rcode = RLM_MODULE_OK;
return unlang_module_yield(request, mod_accounting_result, NULL, handle);
}
-static rlm_rcode_t mod_post_auth_result(REQUEST *request, void *instance, void *thread, void *ctx)
+static rlm_rcode_t mod_post_auth_result(REQUEST *request, void *instance, void *thread, void *rctx)
{
rlm_rest_t const *inst = instance;
rlm_rest_thread_t *t = thread;
rlm_rest_section_t const *section = &inst->authenticate;
- rlm_rest_handle_t *handle = ctx;
+ rlm_rest_handle_t *handle = rctx;
int hcode;
int rcode = RLM_MODULE_OK;