.name = "function",
.func = unlang_function_call,
.debug_braces = false,
- .frame_inst_size = sizeof(unlang_frame_state_func_t),
- .frame_inst_name = "unlang_frame_state_func_t",
+ .frame_state_size = sizeof(unlang_frame_state_func_t),
+ .frame_state_name = "unlang_frame_state_func_t",
});
}
/*
* The frame needs to track state. Do so here.
*/
- if (op->frame_inst_size) {
- MEM(frame->state = talloc_zero_array(stack, uint8_t, op->frame_inst_size));
- talloc_set_name_const(frame->state, op->frame_inst_name);
+ if (op->frame_state_size) {
+ MEM(frame->state = talloc_zero_array(stack, uint8_t, op->frame_state_size));
+ talloc_set_name_const(frame->state, op->frame_state_name);
}
}
bool debug_braces; //!< Whether the operation needs to print braces
///< in debug mode.
- size_t frame_inst_size; //!< size of instance data in the stack frame
- char const *frame_inst_name; //!< talloc name of the frame instance data
+ size_t frame_state_size; //!< size of instance data in the stack frame
+
+ char const *frame_state_name; //!< talloc name of the frame instance data
} unlang_op_t;
void unlang_interpret_push_function(REQUEST *request,
.name = "load-balance group",
.func = unlang_load_balance,
.debug_braces = true,
- .frame_inst_size = sizeof(unlang_frame_state_redundant_t),
- .frame_inst_name = "unlang_frame_state_redundant_t",
+ .frame_state_size = sizeof(unlang_frame_state_redundant_t),
+ .frame_state_name = "unlang_frame_state_redundant_t",
});
unlang_register(UNLANG_TYPE_REDUNDANT_LOAD_BALANCE,
.name = "redundant-load-balance group",
.func = unlang_redundant_load_balance,
.debug_braces = true,
- .frame_inst_size = sizeof(unlang_frame_state_redundant_t),
- .frame_inst_name = "unlang_frame_state_redundant_t",
+ .frame_state_size = sizeof(unlang_frame_state_redundant_t),
+ .frame_state_name = "unlang_frame_state_redundant_t",
});
}
&(unlang_op_t){
.name = "map",
.func = unlang_map_state_init,
- .frame_inst_size = sizeof(unlang_frame_state_map_proc_t),
- .frame_inst_name = "unlang_frame_state_map_proc_t",
+ .frame_state_size = sizeof(unlang_frame_state_map_proc_t),
+ .frame_state_name = "unlang_frame_state_map_proc_t",
});
}