summaryrefslogtreecommitdiff
path: root/src/parse/properties/utils.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-05-26 23:30:39 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-05-26 23:30:39 +0000
commit81777be0325e2434911f697f0d9a284e50ee63ef (patch)
tree8fb1400f2366a8e7838fbc54c1bf2221b19fb2a1 /src/parse/properties/utils.h
parent41973ef1ab2935818a07b5899c1961e9c8c85214 (diff)
downloadlibcss-81777be0325e2434911f697f0d9a284e50ee63ef.tar.gz
libcss-81777be0325e2434911f697f0d9a284e50ee63ef.tar.bz2
Split out utility functions and aural property parsers.
svn path=/trunk/libcss/; revision=7557
Diffstat (limited to 'src/parse/properties/utils.h')
-rw-r--r--src/parse/properties/utils.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/parse/properties/utils.h b/src/parse/properties/utils.h
new file mode 100644
index 0000000..923ffb5
--- /dev/null
+++ b/src/parse/properties/utils.h
@@ -0,0 +1,29 @@
+/*
+ * This file is part of LibCSS.
+ * Licensed under the MIT License,
+ * http://www.opensource.org/licenses/mit-license.php
+ * Copyright 2008 John-Mark Bell <jmb@netsurf-browser.org>
+ */
+
+#ifndef css_parse_properties_utils_h_
+#define css_parse_properties_utils_h_
+
+#include "parse/language.h"
+
+css_error parse_important(css_language *c,
+ const parserutils_vector *vector, int *ctx,
+ uint8_t *result);
+css_error parse_colour_specifier(css_language *c,
+ const parserutils_vector *vector, int *ctx,
+ uint32_t *result);
+css_error parse_named_colour(css_language *c, lwc_string *data,
+ uint32_t *result);
+css_error parse_hash_colour(lwc_string *data, uint32_t *result);
+css_error parse_unit_specifier(css_language *c,
+ const parserutils_vector *vector, int *ctx,
+ uint32_t default_unit,
+ css_fixed *length, uint32_t *unit);
+css_error parse_unit_keyword(const char *ptr, size_t len,
+ css_unit *unit);
+
+#endif