]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix names to be consistent
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 15 Feb 2021 12:48:19 +0000 (12:48 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 15 Feb 2021 12:48:19 +0000 (12:48 +0000)
src/lib/unlang/module.c
src/lib/unlang/module.h

index 8464465df5357f4fc36f6a5d52976f3d8c08403d..7388ad4a7dde6841c49cdef043d77bc9104adf00 100644 (file)
@@ -329,7 +329,7 @@ int unlang_module_fd_delete(request_t *request, void const *ctx, int fd)
 
 /** Push a module or submodule onto the stack for evaluation
  *
- * @param[out] out             Where to write the result of calling the module.
+ * @param[out] p_result                Where to write the result of calling the module.
  * @param[in] request          The current request.
  * @param[in] module_instance  Instance of the module to call.
  * @param[in] method           to call.
@@ -339,7 +339,7 @@ int unlang_module_fd_delete(request_t *request, void const *ctx, int fd)
  *     - 0 on success.
  *     - -1 on failure.
  */
-int unlang_module_push(rlm_rcode_t *out, request_t *request,
+int unlang_module_push(rlm_rcode_t *p_result, request_t *request,
                       module_instance_t *module_instance, module_method_t method, bool top_frame)
 {
        unlang_stack_t                  *stack = request->stack;
@@ -385,7 +385,7 @@ int unlang_module_push(rlm_rcode_t *out, request_t *request,
        frame = &stack->frame[stack->depth];
        state = frame->state;
        *state = (unlang_frame_state_module_t){
-               .p_result = out,
+               .p_result = p_result,
                .thread = module_thread(module_instance)
        };
 
@@ -418,7 +418,7 @@ request_t *unlang_module_subrequest_alloc(request_t *parent, fr_dict_t const *na
 
 /** Yield, spawning a child request, and resuming once the child request is complete
  *
- * @param[in] out              Final rcode from when evaluation of the child request finishes.
+ * @param[in] p_result         Final rcode from when evaluation of the child request finishes.
  * @param[out] child           to yield to.  The child knows about the parent,
  *                             which is why the parent isn't passed explicitly.
  * @param[in] resume           function to call when the child has finished executing.
@@ -428,7 +428,7 @@ request_t *unlang_module_subrequest_alloc(request_t *parent, fr_dict_t const *na
  * @return
  *     - UNLANG_ACTION_YIELD.
  */
-unlang_action_t unlang_module_yield_to_subrequest(rlm_rcode_t *out, request_t *child,
+unlang_action_t unlang_module_yield_to_subrequest(rlm_rcode_t *p_result, request_t *child,
                                                  unlang_module_resume_t resume,
                                                  unlang_module_signal_t signal,
                                                  unlang_subrequest_session_t const *session,
@@ -443,7 +443,7 @@ unlang_action_t unlang_module_yield_to_subrequest(rlm_rcode_t *out, request_t *c
        /*
         *      Push the subrequest and immediately run it.
         */
-       if (unlang_subrequest_push(out, child, session, UNLANG_SUB_FRAME) < 0) return UNLANG_ACTION_STOP_PROCESSING;
+       if (unlang_subrequest_push(p_result, child, session, UNLANG_SUB_FRAME) < 0) return UNLANG_ACTION_STOP_PROCESSING;
 
        return UNLANG_ACTION_YIELD;
 }
index 42fc7d0cfb4ce96cf2910332d6f0b8dfb9174bfc..0d14a7878d847cb5dd593d01058ba04e8a9669d4 100644 (file)
@@ -108,13 +108,13 @@ int               unlang_module_fd_add(request_t *request,
 
 int            unlang_module_fd_delete(request_t *request, void const *rctx, int fd);
 
-int            unlang_module_push(rlm_rcode_t *out, request_t *request,
+int            unlang_module_push(rlm_rcode_t *p_result, request_t *request,
                                   module_instance_t *module_instance, module_method_t method, bool top_frame)
                                   CC_HINT(warn_unused_result);
 
 request_t      *unlang_module_subrequest_alloc(request_t *parent, fr_dict_t const *namespace);
 
-unlang_action_t        unlang_module_yield_to_subrequest(rlm_rcode_t *out, request_t *child,
+unlang_action_t        unlang_module_yield_to_subrequest(rlm_rcode_t *p_result, request_t *child,
                                                  unlang_module_resume_t resume,
                                                  unlang_module_signal_t signal,
                                                  unlang_subrequest_session_t const *session,