lot of restructurations. work in progress, *but* it does not seems to
[apps/madmutt.git] / lib-mime / mime.h
index 97b1611..03acd98 100644 (file)
@@ -67,25 +67,26 @@ typedef struct parameter {
     struct parameter *next;
 } PARAMETER;
 
+extern const char MimeSpecials[];
+extern const char *BodyTypes[];
+extern const char *BodyEncodings[];
+
 /* MIME encoding/decoding global vars */
 
 #define is_multipart(x) \
     ((x)->type == TYPEMULTIPART \
      || ((x)->type == TYPEMESSAGE && (!strcasecmp((x)->subtype, "rfc822") \
                                       || !strcasecmp((x)->subtype, "news"))))
-
-extern const char *BodyTypes[];
-extern const char *BodyEncodings[];
-
 #define TYPE(X) ((X->type == TYPEOTHER) && (X->xtype != NULL) ? X->xtype : BodyTypes[(X->type)])
 #define ENCODING(X) BodyEncodings[(X)]
 
-/* other MIME-related global variables */
-#ifndef _SENDLIB_C
-extern char MimeSpecials[];
-#endif
+/****************************************************************************/
+/* RFC 2231                                                                 */
+/*             MIME Parameter Value and Encoded Word Extensions:            */
+/*               Character Sets, Languages, and Continuations               */
+/****************************************************************************/
 
-void rfc2231_decode_parameters (PARAMETER **);
-int rfc2231_encode_string (char **);
+int  rfc2231_encode_string(char **);
+void rfc2231_decode_parameters(PARAMETER **);
 
 #endif /* MUTT_LIB_MIME_MIME_H */