diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-08-28 14:40:16 +0100 |
---|---|---|
committer | Michael Drake <mdrake.unique@gmail.com> | 2022-08-28 15:10:21 +0100 |
commit | 0e3a0b1ef42eb15d70a5307d340c38ab611eb64d (patch) | |
tree | b2792732e51e240c4399833b852e73471b0732c5 /src/select/strings.h | |
parent | c0af9cfa9adf8fdc94efa32a6847d7aebba0e107 (diff) | |
download | libcss-0e3a0b1ef42eb15d70a5307d340c38ab611eb64d.tar.gz |
Select: Split out useful strings
Diffstat (limited to 'src/select/strings.h')
-rw-r--r-- | src/select/strings.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/select/strings.h b/src/select/strings.h new file mode 100644 index 0000000..1861ff4 --- /dev/null +++ b/src/select/strings.h @@ -0,0 +1,48 @@ +/* + * This file is part of LibCSS + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * Copyright 2009 John-Mark Bell <jmb@netsurf-browser.org> + */ + +#ifndef css_select_strings_h_ +#define css_select_strings_h_ + +#include <libcss/errors.h> + +/** Useful interned strings */ +typedef struct { + lwc_string *universal; + lwc_string *first_child; + lwc_string *link; + lwc_string *visited; + lwc_string *hover; + lwc_string *active; + lwc_string *focus; + lwc_string *nth_child; + lwc_string *nth_last_child; + lwc_string *nth_of_type; + lwc_string *nth_last_of_type; + lwc_string *last_child; + lwc_string *first_of_type; + lwc_string *last_of_type; + lwc_string *only_child; + lwc_string *only_of_type; + lwc_string *root; + lwc_string *empty; + lwc_string *target; + lwc_string *lang; + lwc_string *enabled; + lwc_string *disabled; + lwc_string *checked; + lwc_string *first_line; + lwc_string *first_letter; + lwc_string *before; + lwc_string *after; +} css_select_strings; + +css_error css_select_strings_intern(css_select_strings *str); +void css_select_strings_unref(css_select_strings *str); + +#endif + |