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 | |
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')
-rw-r--r-- | include/template.h | 5 | ||||
-rw-r--r-- | include/template_func_proto.h | 3 |
2 files changed, 5 insertions, 3 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 diff --git a/include/template_func_proto.h b/include/template_func_proto.h index 5516421..212759c 100644 --- a/include/template_func_proto.h +++ b/include/template_func_proto.h @@ -3,6 +3,7 @@ #include "template.h" -int get_github_release_notes_tplfunc_entrypoint(void *frame, void *ptr); +int get_github_release_notes_tplfunc_entrypoint(void *frame, void *data_out); +int get_github_release_notes_auto_tplfunc_entrypoint(void *frame, void *data_out); #endif //TEMPLATE_FUNC_PROTO_H
\ No newline at end of file |