blob: f69ec659d18a0d104982804ec257430a8bb75809 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
* This file is part of libdom.
* Licensed under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
* Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org>
*/
#ifndef dom_ctx_h_
#define dom_ctx_h_
#include <stddef.h>
/**
* Type of allocation function for DOM implementation
*/
typedef void *(*dom_alloc)(void *ptr, size_t size, void *pw);
/**
* DOM allocation context
*/
struct dom_ctx {
dom_alloc alloc; /**< Memory (de)allocation function */
void *pw; /**< Pointer to client data */
};
#endif
|