summaryrefslogtreecommitdiff
path: root/include/libcss/types.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-09-25 00:19:16 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-09-25 00:19:16 +0000
commit4793b871b96c1b64383695be117467b59bfbfaa1 (patch)
treedfad2fa0ceb4fc6cf0aef9bc7f6b183f1c7ece17 /include/libcss/types.h
parent3986ea98445d605596d94318aa0d91fabc883cc4 (diff)
downloadlibcss-4793b871b96c1b64383695be117467b59bfbfaa1.tar.gz
libcss-4793b871b96c1b64383695be117467b59bfbfaa1.tar.bz2
Public stylesheet API & stubbed out implementations.
Make public headers use libcss_ as their guard macro prefix. svn path=/trunk/libcss/; revision=5433
Diffstat (limited to 'include/libcss/types.h')
-rw-r--r--include/libcss/types.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/libcss/types.h b/include/libcss/types.h
index 104e339..ad5b5bf 100644
--- a/include/libcss/types.h
+++ b/include/libcss/types.h
@@ -5,8 +5,8 @@
* Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org>
*/
-#ifndef css_types_h_
-#define css_types_h_
+#ifndef libcss_types_h_
+#define libcss_types_h_
#include <stdbool.h>
#include <inttypes.h>
@@ -32,4 +32,13 @@ typedef struct css_string {
typedef struct css_stylesheet css_stylesheet;
+/**
+ * Stylesheet origin
+ */
+typedef enum css_origin {
+ CSS_ORIGIN_UA = 0, /**< User agent stylesheet */
+ CSS_ORIGIN_USER = 1, /**< User stylesheet */
+ CSS_ORIGIN_AUTHOR = 2 /**< Author stylesheet */
+} css_origin;
+
#endif