00001 /* 00002 * Copyright (C) 1999-2003 Alex Scott 00003 * 00004 * This library is free software; you can redistribute it and/or modify it 00005 * under the terms of the GNU Library General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or (at 00007 * your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, but 00010 * WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library 00012 * General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public License 00015 * along with this library; if not, write to the Free Software Foundation, 00016 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00023 #include <stdio.h> 00024 #include <stdlib.h> 00025 #include <string.h> 00026 00027 #include "cuf-global.h" 00028 #include "win32lacks.h" 00029 00030 #ifndef _MIMEPROC_H_ 00031 # define _MIMEPROC_H_ 00032 00038 typedef struct _MimeString { 00039 unsigned long blen; 00040 unsigned long bpos; 00041 char *binstr; 00042 unsigned long mlen; 00043 unsigned long mpos; 00044 char *mimestr; 00045 } MimeString; 00046 00047 MimeString *mime_mstr_new (unsigned long blen, char *binstr, 00048 unsigned long mlen, char *mimestr); 00049 void mime_mstr_free (MimeString *mstr); 00050 void mime_print (MimeString *mstr); 00051 int mime_encode (MimeString *mstr); 00052 int mime_decode (MimeString *mstr); 00053 int mime_convert (MimeString *mstr); 00054 00055 #endif /* _MIMEPROC_H_ */