ELinks 0.18.0
|
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "config/options.h"
#include "intl/libintl.h"
#include "main/module.h"
#include "mime/backend/common.h"
#include "mime/backend/mimetypes.h"
#include "mime/mime.h"
#include "session/session.h"
#include "util/hash.h"
#include "util/lists.h"
#include "util/memory.h"
Data Structures | |
struct | mimetypes_entry |
Macros | |
#define | BACKEND_NAME "mimetypes" |
#define | get_opt_mimetypes(which) mimetypes_options[(which)].option |
#define | get_mimetypes(which) get_opt_mimetypes(which).value |
#define | get_mimetypes_enable() get_mimetypes(MIMETYPES_ENABLE).number |
#define | get_mimetypes_path() get_mimetypes(MIMETYPES_PATH).string |
Enumerations | |
enum | mimetypes_option { MIMETYPES_TREE , MIMETYPES_ENABLE , MIMETYPES_PATH , MIMETYPES_OPTIONS } |
Functions | |
static void | done_mimetypes_entry (struct mimetypes_entry *entry) |
static void | parse_mimetypes_extensions (char *token, char *ctype) |
static void | parse_mimetypes_file (char *filename) |
static struct hash * | init_mimetypes_map (void) |
static void | done_mimetypes (struct module *module) |
static int | change_hook_mimetypes (struct session *ses, struct option *current, struct option *changed) |
static void | init_mimetypes (struct module *module) |
static char * | get_content_type_mimetypes (char *extension) |
Variables | |
static union option_info | mimetypes_options [] |
static struct hash * | mimetypes_map = NULL |
const struct mime_backend | mimetypes_mime_backend |
struct module | mimetypes_mime_module |
#define BACKEND_NAME "mimetypes" |
#define get_mimetypes | ( | which | ) | get_opt_mimetypes(which).value |
#define get_mimetypes_enable | ( | ) | get_mimetypes(MIMETYPES_ENABLE).number |
#define get_mimetypes_path | ( | ) | get_mimetypes(MIMETYPES_PATH).string |
#define get_opt_mimetypes | ( | which | ) | mimetypes_options[(which)].option |
enum mimetypes_option |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
|
static |
const struct mime_backend mimetypes_mime_backend |
struct module mimetypes_mime_module |
|
static |