diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-06 14:32:44 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-06 14:32:44 +0000 |
commit | 5da747ff564cdcfeff90c5f5cfcfac03bc48332b (patch) | |
tree | 18a60e0aa3081bcb49156782f4c30576679cdc52 /include/dom/ctx.h | |
download | libdom-5da747ff564cdcfeff90c5f5cfcfac03bc48332b.tar.gz libdom-5da747ff564cdcfeff90c5f5cfcfac03bc48332b.tar.bz2 |
Import DOM library.
This is mainly stub functions atm (and is missing a number of key interfaces).
svn path=/trunk/dom/; revision=3384
Diffstat (limited to 'include/dom/ctx.h')
-rw-r--r-- | include/dom/ctx.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/dom/ctx.h b/include/dom/ctx.h new file mode 100644 index 0000000..f69ec65 --- /dev/null +++ b/include/dom/ctx.h @@ -0,0 +1,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 |