diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-28 10:09:33 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-28 10:09:33 -0400 |
commit | 12fded0aa09d094799a901b72dd8adccac890696 (patch) | |
tree | 57f93228ff33365503f9392f948991ca6c7aad0f /include/template.h | |
parent | ce10a7cdbe237fa689fb07670691c91fd081e705 (diff) | |
download | stasis-12fded0aa09d094799a901b72dd8adccac890696.tar.gz |
Implement get_github_release_notes_auto function that bases release note data off test contexts
Diffstat (limited to 'include/template.h')
-rw-r--r-- | include/template.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 |