- media-type media-subtype
- parameters encoding children)
- (let ((ctype (if media-type
- (if media-subtype
- (format "%s/%s" media-type media-subtype)
- (symbol-name media-type)))))
- (mime::content-info/create rcnum point-min point-max
- ctype params encoding
- children)
- ))
-
-(defsubst mime-entity-info-point-min (entity-info)
- (mime::content-info/point-min entity-info))
-
-(defsubst mime-entity-info-point-max (entity-info)
- (mime::content-info/point-max entity-info))
+ media-type media-subtype parameters
+ encoding children)
+ (vector rcnum point-min point-max
+ media-type media-subtype parameters encoding children))
+
+(defsubst mime-entity-info-rnum (entity-info) (aref entity-info 0))
+(defsubst mime-entity-info-point-min (entity-info) (aref entity-info 1))
+(defsubst mime-entity-info-point-max (entity-info) (aref entity-info 2))
+(defsubst mime-entity-info-media-type (entity-info) (aref entity-info 3))
+(defsubst mime-entity-info-media-subtype (entity-info) (aref entity-info 4))
+(defsubst mime-entity-info-parameters (entity-info) (aref entity-info 5))
+(defsubst mime-entity-info-encoding (entity-info) (aref entity-info 6))
+(defsubst mime-entity-info-children (entity-info) (aref entity-info 7))
+
+(defsubst mime-entity-info-type/subtype (entity-info)
+ (let ((type (mime-entity-info-media-type entity-info)))
+ (if type
+ (let ((subtype (mime-entity-info-media-subtype entity-info)))
+ (if subtype
+ (format "%s/%s" type subtype)
+ (symbol-name type))))))