diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2020-07-13 05:43:49 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2020-07-13 05:43:49 +0300 |
commit | 7428c24a2e3bb8897815b85fbbe61ec2ece6cfbc (patch) | |
tree | 78cdaf90e7fd80c198615fed11d01445a81b40cc /include | |
parent | 4570daec42c1e38c2df88facc23743f45f907b3d (diff) | |
download | magi-7428c24a2e3bb8897815b85fbbe61ec2ece6cfbc.tar magi-7428c24a2e3bb8897815b85fbbe61ec2ece6cfbc.tar.xz magi-7428c24a2e3bb8897815b85fbbe61ec2ece6cfbc.zip |
Added newfile in callback.
Diffstat (limited to 'include')
-rw-r--r-- | include/magi/file.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/magi/file.h b/include/magi/file.h index cd3d675..d976194 100644 --- a/include/magi/file.h +++ b/include/magi/file.h @@ -32,11 +32,13 @@ const magi_file *magi_files_get(const magi_files *files, const char *name); * Callback to load files while analysing request. * addon_len is not null if something to add is in addon * and null if file_to_add_into is ended. + * newfile flag is setted up in the beginning of new file. * Files are passed sequentialy, one by one. */ -typedef void (*magi_file_callback_act)(void *userdata, +typedef void (*magi_file_callback_act)(void *userdata, + int newfile, magi_file *file_to_add_into, - char *addon, - int addon_len); + char *addon, + int addon_len); typedef struct magi_file_callback { magi_file_callback_act act; |