diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2019-11-22 18:55:54 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2019-11-22 18:55:54 +0300 |
commit | 88081d9a4376b1ee4feed3bc843c46096e087b1e (patch) | |
tree | 5780b195f16975e890a8a98b0dc17d6ce2da3001 /src/multipart.h | |
parent | 0f6943feff48e92b071726abcf83070d8a529a41 (diff) | |
download | magi-88081d9a4376b1ee4feed3bc843c46096e087b1e.tar magi-88081d9a4376b1ee4feed3bc843c46096e087b1e.tar.xz magi-88081d9a4376b1ee4feed3bc843c46096e087b1e.zip |
.
Diffstat (limited to 'src/multipart.h')
-rw-r--r-- | src/multipart.h | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/multipart.h b/src/multipart.h index bb51d5c..47cfefe 100644 --- a/src/multipart.h +++ b/src/multipart.h @@ -1,22 +1,13 @@ #ifndef MAGI_INCLUDED_MULTIPART #define MAGI_INCLUDED_MULTIPART -#include "field.h" +#include "request.h" -enum { magi_parse_multipart_callback_size = 64 }; - - -int magi_parse_multipart( - struct magi_field_list ** list, - int (*get_next)(void *), - void * get_next_arg, - char * boundary, - /* End if size < magi_parse_multipart_callback_size. */ - /* Null callback means skipping. */ - void (*callback)( - struct magi_file * file, char * buffer, int size, void * thing), - void * thing); +void magi_multipart(struct magi_request * request, + char * boundary, + int (*next)(void * userdata), + void * next_userdata); #endif |