]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Document unlang_resume
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 8 Nov 2017 16:40:56 +0000 (16:40 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 8 Nov 2017 16:40:56 +0000 (16:40 +0000)
src/main/unlang_interpret.c

index ad6b732ff85ffe645615b86bd0a32f56c57bf5e3..51129b02716e91ee94b5803fc5451decbaa199d0 100644 (file)
@@ -1872,6 +1872,19 @@ static unlang_op_resume_func_t unlang_ops_resume[] = {
        [UNLANG_TYPE_MAX]               = NULL
 };
 
+/** Callback for handling resumption frames
+ *
+ * Resumption frames are added to track when a module, or other construct
+ * has yielded control back to the interpreter.
+ *
+ * This function is called when the request has been marked as resumable
+ * and a resumption frame was previously placed on the stack, i.e. when
+ * the work that caused the request to be yielded initially has completed.
+ *
+ * @param[in] request  to be resumed.
+ * @param[out] presult the rcode returned by the resume function.
+ * @param[out] priority associated with the rcode.
+ */
 static unlang_action_t unlang_resume(REQUEST *request,
                                     rlm_rcode_t *presult, int *priority)
 {