diff options
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 |