1 #ifndef RH_MIME_H
 2 #define RH_MIME_H
 3 
 4 typedef struct rh_mime          rh_mime_t;
 5 typedef struct rh_mime_base     rh_mime_base_t;
 6 
 7 struct rh_mime_base {
 8 
 9         struct rh_mime  *default_type;
10 };
11 
12 struct rh_mime {
13         struct rh_mime_base     *base;
14         size_t                  used;
15 };
16 
17 void rh_mime_base_init    (rh_mime_base_t *base);
18 void rh_mime_base_destroy (rh_mime_base_t *base);
19 
20 int  rh_mime_base_load    (rh_mime_base_t *base, const char *filename);
21 
22 const rh_mime_t * rh_mime_pop (rh_mime_base_t *base, const rh_buffer_t *filename);
23 
24 void rh_mime_push (const rh_mime_t *mime);
25 
26 #endif /* RH_MIME_H */


syntax highlighted by Code2HTML, v. 0.9.1