mime.h

来自「一个很有名的浏览器」· C头文件 代码 · 共 38 行

H
38
字号
/* $Id: mime.h,v 1.18 2004/06/22 21:43:54 jonas Exp $ */#ifndef EL__MIME_MIME_H#define EL__MIME_MIME_H#include "modules/module.h"struct cache_entry;struct uri;struct mime_handler {	unsigned char *description;	unsigned char *backend_name;	unsigned int ask:1;	unsigned int block:1;	unsigned char program[1]; /* XXX: Keep last! */};extern struct module mime_module;/* Guess content type of the document. Either from the protocol header or * scanning the uri for extensions. */unsigned char *get_content_type(struct cache_entry *cached);/* Guess content type by looking at configurations of the given @extension */unsigned char *get_extension_content_type(unsigned char *extension);/* Find program to handle mimetype. The @xwin tells about X capabilities. */struct mime_handler *get_mime_type_handler(unsigned char *content_type, int xwin);/* Extracts strictly the filename part (the crap between path and query) and * adds it to the @string. Note that there are cases where the string will be * empty ("") (ie. http://example.com/?crash=elinks). */struct string *add_mime_filename_to_string(struct string *string, struct uri *uri);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?