Show
Ignore:
Timestamp:
2000-06-14 02:23:45 (8 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Remove recode-attachment, and the "decoder" API. (EGE)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • charset.h

    r1885 r1903  
    2222#include <iconv.h> 
    2323 
    24 #define DECODER_BUFFSIZE 4096 
    25  
    26 struct decoder_buff 
    27 { 
    28   size_t size, used; 
    29   char buff[DECODER_BUFFSIZE]; 
    30 }; 
    31  
    32 typedef struct decoder 
    33 { 
    34   /*short src_is_utf8;*/ 
    35   short just_take_id; 
    36   short forced; 
    37   char *outrepl; 
    38  
    39   /* conversion descriptor */ 
    40   iconv_t cd; 
    41  
    42   /* the buffers */ 
    43   struct decoder_buff in; 
    44   struct decoder_buff out; 
    45   struct decoder_buff *_in; 
    46 }  
    47 DECODER; 
    48  
    49 DECODER *mutt_open_decoder (const char *, const char *); 
    50 void mutt_decoder_push (DECODER *, void *, size_t, size_t *); 
    51 void mutt_decoder_pop (DECODER *, void *, size_t, size_t *); 
    52 void mutt_decoder_pop_to_state (DECODER *, STATE *); 
    53 void mutt_free_decoder (DECODER **); 
    54 int mutt_decoder_push_one (DECODER *, char); 
    55  
    56 int mutt_recode_file (const char *, const char *, const char *); 
    57  
    5824int mutt_convert_string (char **, const char *, const char *); 
    5925