diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-05-01 16:36:27 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-05-01 16:36:27 +0000 |
commit | 72c39e3522c5781d1e7dc8abad77d96141c5d49b (patch) | |
tree | e16497caaa0bf20771ef34787de02fc95e5993bf /include/libcss/functypes.h | |
download | libcss-72c39e3522c5781d1e7dc8abad77d96141c5d49b.tar.gz libcss-72c39e3522c5781d1e7dc8abad77d96141c5d49b.tar.bz2 |
Import beginnings of a CSS parsing library.
Currently comprises a lexer.
svn path=/trunk/libcss/; revision=4112
Diffstat (limited to 'include/libcss/functypes.h')
-rw-r--r-- | include/libcss/functypes.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/libcss/functypes.h b/include/libcss/functypes.h new file mode 100644 index 0000000..22a48bf --- /dev/null +++ b/include/libcss/functypes.h @@ -0,0 +1,27 @@ +/* + * This file is part of LibCSS. + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * Copyright 2007-8 John-Mark Bell <jmb@netsurf-browser.org> + */ + +#ifndef css_functypes_h_ +#define css_functypes_h_ + +#include <stdbool.h> +#include <stdint.h> +#include <stdlib.h> + +#include <libcss/types.h> + +/* Type of allocation function for libcss */ +typedef void *(*css_alloc)(void *ptr, size_t size, void *pw); + +/** + * Type of parse error handling function + */ +typedef void (*css_error_handler)(uint32_t line, uint32_t col, + const char *message, void *pw); + +#endif + |