cbf_read_mime.h

Go to the documentation of this file.
00001 
00002 #ifndef CBF_READ_MIME_H
00003 #define CBF_READ_MIME_H
00004 
00005 #ifdef __cplusplus
00006 
00007 extern "C" {
00008 
00009 #endif
00010 
00011 #include "cbf_file.h"
00012 
00013 
00014   /* Convert a MIME-encoded binary section to a temporary binary section */
00015 
00016 int cbf_mime_temp (cbf_node *column, unsigned int row);
00017 
00018   /* Find non-blank length of a line */
00019 
00020 int cbf_nblen (const char *line, int *nblen);
00021 
00022   /* Convert a MIME-encoded binary section to a normal binary section */
00023      
00024 int cbf_read_mime (cbf_file *infile, cbf_file   *outfile,
00025                                      size_t     *size,
00026                                      long       *id,
00027                                      char       *old_digest,
00028                                      char       *new_digest);
00029   
00030 
00031   /* Parse the MIME header looking for values of type:
00032   
00033      Content-Type:
00034      Content-Transfer-Encoding:
00035      X-Binary-Size:
00036      X-Binary-ID:
00037      Content-MD5: */
00038      
00039 int cbf_parse_mimeheader (cbf_file *file, int        *encoding,
00040                                           size_t     *size,
00041                                           long       *id,
00042                                           char       *digest,
00043                                  unsigned int        *compression,
00044                                           int        *bits,
00045                                           int        *sign);
00046 
00047 
00048 #ifdef __cplusplus
00049 
00050 }
00051 
00052 #endif
00053 
00054 #endif /* CBF_READ_MIME_H */