Dillo v3.1.1-98-g318d1f14
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_gif_image(const char *Type, void *Ptr, CA_Callback_t *Call,
36 void **Data);
37void *a_Dicache_jpeg_image(const char *Type, void *Ptr, CA_Callback_t *Call,
38 void **Data);
39void *a_Dicache_svg_image(const char *Type, void *Ptr, CA_Callback_t *Call,
40 void **Data);
41
45void a_Mime_init(void);
46Viewer_t a_Mime_get_viewer(const char *content_type);
47
48#ifdef __cplusplus
49}
50#endif /* __cplusplus */
51
52#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_svg_image(const char *Type, void *Ptr, CA_Callback_t *Call, void **Data)
SVG wrapper for Dicache_image()
Definition dicache.c:445
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:418
void * a_Dicache_jpeg_image(const char *Type, void *Ptr, CA_Callback_t *Call, void **Data)
JPEG wrapper for Dicache_image()
Definition dicache.c:436
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:130
void * a_Dicache_gif_image(const char *Type, void *Ptr, CA_Callback_t *Call, void **Data)
GIF wrapper for Dicache_image()
Definition dicache.c:427