Retry only for https protocol
[elinks.git] / src / mime / backend / common.h
blob7c01443c7757135802366eb589f1b2c477796ef7
2 #ifndef EL__MIME_BACKEND_COMMON_H
3 #define EL__MIME_BACKEND_COMMON_H
5 #include "mime/mime.h"
7 struct mime_backend {
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);
20 struct mime_handler *
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. */
25 unsigned char *
26 get_next_path_filename(unsigned char **path_ptr, unsigned char separator);
28 struct mime_handler *
29 init_mime_handler(unsigned char *program, unsigned char *description,
30 unsigned char *backend_name, int ask, int block);
32 #endif