27
27
typedef struct MIME_STATE MIME_STATE;
28
28
typedef void (*MIME_STATE_HEAD_OUT) (void *, int, HEADER_OPTS *, VSTRING *, off_t);
29
typedef void (*MIME_STATE_BODY_OUT) (void *, int, const char *, int, off_t);
29
typedef void (*MIME_STATE_BODY_OUT) (void *, int, const char *, ssize_t, off_t);
30
30
typedef void (*MIME_STATE_ANY_END) (void *);
31
typedef void (*MIME_STATE_ERR_PRINT) (void *, int, const char *, ssize_t);
33
33
extern MIME_STATE *mime_state_alloc(int, MIME_STATE_HEAD_OUT, MIME_STATE_ANY_END, MIME_STATE_BODY_OUT, MIME_STATE_ANY_END, MIME_STATE_ERR_PRINT, void *);
34
extern int mime_state_update(MIME_STATE *, int, const char *, int);
34
extern int mime_state_update(MIME_STATE *, int, const char *, ssize_t);
35
35
extern MIME_STATE *mime_state_free(MIME_STATE *);