summaryrefslogtreecommitdiff
path: root/include/libcss/functypes.h
blob: 52cb33fc96a36eff7540dbab4d5bb2813317cb77 (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
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 libcss_functypes_h_
#define libcss_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