2 #ifndef EL__MIME_BACKEND_COMMON_H
3 #define EL__MIME_BACKEND_COMMON_H
8 /* Resolve the content type from the @extension. */
9 unsigned char *(*get_content_type
)(unsigned char *extension
);
11 /* Given a mime type find a associated handler. The handler can
12 * be given options such */
13 struct mime_handler
*(*get_mime_handler
)(unsigned char *type
, int have_x
);
16 /* Multiplexor functions for the backends. */
18 unsigned char *get_content_type_backends(unsigned char *extension
);
21 get_mime_handler_backends(unsigned char *content_type
, int have_x
);
23 /* Extracts a filename from @path separated by @separator. Targeted for use
24 * with the general unix PATH style strings. */
26 get_next_path_filename(unsigned char **path_ptr
, unsigned char separator
);
29 init_mime_handler(unsigned char *program
, unsigned char *description
,
30 unsigned char *backend_name
, int ask
, int block
);