Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
mime.h
Go to the documentation of this file.
1/*
2 * File: mime.h
3 *
4 * Copyright (C) 2005 Jorge Arellano Cid <jcid@dillo.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 */
11
12#ifndef __MIME_H__
13#define __MIME_H__
14
15#include <config.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21
22#include "../cache.h"
23
24typedef void* (*Viewer_t) (const char*, void*, CA_Callback_t*, void**);
25
29void *a_Html_text (const char *Type,void *web, CA_Callback_t *Call,
30 void **Data);
31void *a_Plain_text(const char *Type,void *web, CA_Callback_t *Call,
32 void **Data);
33void *a_Dicache_png_image (const char *Type,void *web, CA_Callback_t *Call,
34 void **Data);
35void *a_Dicache_webp_image (const char *Type,void *web, CA_Callback_t *Call,
36 void **Data);
37void *a_Dicache_gif_image(const char *Type, void *Ptr, CA_Callback_t *Call,
38 void **Data);
39void *a_Dicache_jpeg_image(const char *Type, void *Ptr, CA_Callback_t *Call,
40 void **Data);
41void *a_Dicache_svg_image(const char *Type, void *Ptr, CA_Callback_t *Call,
42 void **Data);
43
47void a_Mime_init(void);
48Viewer_t a_Mime_get_viewer(const char *content_type);
49
50#ifdef __cplusplus
51}
52#endif /* __cplusplus */
53
54#endif /* __MIME_H__ */
void(* CA_Callback_t)(int Op, CacheClient_t *Client)
Callback type for cache clients.
Definition cache.h:43
void a_Mime_init(void)
Functions defined inside Mime module.
Definition mime.c:97
void * a_Dicache_webp_image(const char *Type, void *web, CA_Callback_t *Call, void **Data)
WEBP wrapper for Dicache_image()
Definition dicache.c:456
void * a_Dicache_svg_image(const char *Type, void *Ptr, CA_Callback_t *Call, void **Data)
SVG wrapper for Dicache_image()
Definition dicache.c:483
void * a_Plain_text(const char *Type, void *web, CA_Callback_t *Call, void **Data)
Set callback function and callback data for "text/" MIME major-type.
Definition plain.cc:205
void *(* Viewer_t)(const char *, void *, CA_Callback_t *, void **)
Definition mime.h:24
void * a_Dicache_png_image(const char *Type, void *web, CA_Callback_t *Call, void **Data)
PNG wrapper for Dicache_image()
Definition dicache.c:447
void * a_Dicache_jpeg_image(const char *Type, void *Ptr, CA_Callback_t *Call, void **Data)
JPEG wrapper for Dicache_image()
Definition dicache.c:474
void * a_Html_text(const char *Type, void *web, CA_Callback_t *Call, void **Data)
Function prototypes defined elsewhere.
Definition html.cc:211
Viewer_t a_Mime_get_viewer(const char *content_type)
Get the handler for the MIME type.
Definition mime.c:133
void * a_Dicache_gif_image(const char *Type, void *Ptr, CA_Callback_t *Call, void **Data)
GIF wrapper for Dicache_image()
Definition dicache.c:465