diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2020-03-17 23:27:44 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2020-03-17 23:27:44 +0300 |
commit | 1d8e7d8ef36de7bae2c62f63bec0e9914f18e77d (patch) | |
tree | 79e049c3204216d99199e5d4f299b79c0547037c /include | |
parent | d9f19275d0549c4b9c3402e1fd28c71627507557 (diff) | |
download | magi-1d8e7d8ef36de7bae2c62f63bec0e9914f18e77d.tar magi-1d8e7d8ef36de7bae2c62f63bec0e9914f18e77d.tar.xz magi-1d8e7d8ef36de7bae2c62f63bec0e9914f18e77d.zip |
[magi]
Diffstat (limited to 'include')
-rw-r--r-- | include/magi/response.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/magi/response.h b/include/magi/response.h index 756e2bd..4b71ef5 100644 --- a/include/magi/response.h +++ b/include/magi/response.h @@ -12,12 +12,14 @@ */ #include "request.h" #include <stdio.h> +#include <stdarg.h> -/* * * TODO * * */ +/* * * TODO: Comments * * */ typedef void (*magi_response_method_head)(void *ud, magi_param *header); typedef void (*magi_response_method_start_body)(void *ud); typedef void (*magi_response_method_body)(void *ud, const char *data, int len); +typedef void (*magi_response_method_fmt)(void *ud, const char *f, va_list a); typedef void (*magi_response_method_file)(void *ud, FILE *file); typedef void (*magi_response_method_close)(void *ud); @@ -25,6 +27,7 @@ typedef struct magi_response_methods { magi_response_method_head head; magi_response_method_start_body start_body; magi_response_method_body body; + magi_response_method_fmt format; magi_response_method_file file; magi_response_method_close close; } magi_response_methods; |