From 12fded0aa09d094799a901b72dd8adccac890696 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 28 Jun 2024 10:09:33 -0400 Subject: Implement get_github_release_notes_auto function that bases release note data off test contexts --- include/template.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/template.h') diff --git a/include/template.h b/include/template.h index 9a34c6a..55d7494 100644 --- a/include/template.h +++ b/include/template.h @@ -40,11 +40,12 @@ char *tpl_render(char *str); */ int tpl_render_to_file(char *str, const char *filename); -typedef int tplfunc(void *frame, void *result); +typedef int tplfunc(void *frame, void *data_out); struct tplfunc_frame { char *key; tplfunc *func; + void *data_in; int argc; union { char **t_char_refptr; @@ -68,7 +69,7 @@ struct tplfunc_frame { * @param tplfunc_ptr pointer to function of type tplfunc * @param argc number of function arguments to accept */ -void tpl_register_func(char *key, void *tplfunc_ptr, int argc); +void tpl_register_func(char *key, void *tplfunc_ptr, int argc, void *data_in); /** * Get the function frame associated with a template function -- cgit