diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2017-09-05 18:20:06 +0100 |
---|---|---|
committer | Patrick Monnerat <patrick@monnerat.net> | 2017-09-05 18:20:06 +0100 |
commit | c1d0b6f98e1645f0b32d9132e073e8e1965efce7 (patch) | |
tree | d91ef8898edd6861512c41aff3f8056b1ed9085c /lib/mime.h | |
parent | 63ef436ea15dd93343a2040ffb7c3bb2c9681b87 (diff) | |
download | curl-c1d0b6f98e1645f0b32d9132e073e8e1965efce7.tar.gz |
mime: replace 'struct Curl_mimepart' by 'curl_mimepart' in encoder code.
mime_state is now a typedef.
Diffstat (limited to 'lib/mime.h')
-rw-r--r-- | lib/mime.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mime.h b/lib/mime.h index 5d2e9477b..0ca4f69c9 100644 --- a/lib/mime.h +++ b/lib/mime.h @@ -79,11 +79,11 @@ typedef struct { } mime_encoder_state; /* Mime readback state. */ -struct mime_state { +typedef struct { enum mimestate state; /* Current state token. */ void *ptr; /* State-dependent pointer. */ size_t offset; /* State-dependent offset. */ -}; +} mime_state; /* A mime multipart. */ struct curl_mime_s { @@ -92,7 +92,7 @@ struct curl_mime_s { curl_mimepart *firstpart; /* First part. */ curl_mimepart *lastpart; /* Last part. */ char *boundary; /* The part boundary. */ - struct mime_state state; /* Current readback state. */ + mime_state state; /* Current readback state. */ }; /* A mime part. */ @@ -116,7 +116,7 @@ struct curl_mimepart_s { curl_off_t origin; /* Origin file offset. */ curl_off_t datasize; /* Expected data size. */ unsigned int flags; /* Flags. */ - struct mime_state state; /* Current readback state. */ + mime_state state; /* Current readback state. */ const mime_encoder *encoder; /* Content data encoder. */ mime_encoder_state encstate; /* Data encoder state. */ }; |