char *inst_name = NULL;
module_instance_t *mi;
char const *name1 = cf_section_name1(cs);
+ CONF_SECTION *actions;
module_instance_name(NULL, &inst_name, parent, cs);
}
}
+ /*
+ * Compile the default "actions" subsection, which includes retries.
+ */
+ actions = cf_section_find(cs, "actions", NULL);
+ if (actions && !unlang_compile_actions(&mi->actions, actions)) {
+ talloc_free(mi);
+ return NULL;
+ }
+
return mi;
}
#include <freeradius-devel/server/cf_util.h>
#include <freeradius-devel/server/request.h>
#include <freeradius-devel/unlang/action.h>
+#include <freeradius-devel/unlang/compile.h>
#include <freeradius-devel/util/event.h>
typedef struct module_s module_t;
rlm_rcode_t code; //!< Code module will return when 'force' has
//!< has been set to true.
+
+ unlang_actions_t actions; //!< default actions and retries.
+
/** @} */
/** @name Tree insertion tracking