summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-02-12 13:07:48 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-02-12 13:07:48 +0000
commit2a871b7b632aa1899feb95fad2c33f9874cfe675 (patch)
tree4703038960cb2147b067be90856fc11a2f43b949
parentc4d6ab4cbf8611ef4ebde04b1cc58ea49d8657ec (diff)
downloadlibcss-2a871b7b632aa1899feb95fad2c33f9874cfe675.tar.gz
libcss-2a871b7b632aa1899feb95fad2c33f9874cfe675.tar.bz2
Synchronise media type bitfield with reality -- it's 64bits wide.
svn path=/trunk/libcss/; revision=6453
-rw-r--r--include/libcss/stylesheet.h4
-rw-r--r--src/stylesheet.c4
-rw-r--r--src/stylesheet.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/include/libcss/stylesheet.h b/include/libcss/stylesheet.h
index d639f13..b70251a 100644
--- a/include/libcss/stylesheet.h
+++ b/include/libcss/stylesheet.h
@@ -19,7 +19,7 @@ typedef css_error (*css_import_handler)(void *pw, const char *url,
css_error css_stylesheet_create(css_language_level level,
const char *charset, const char *url, const char *title,
- css_origin origin, uint32_t media,
+ css_origin origin, uint64_t media,
css_import_handler import_callback, void *import_pw,
css_alloc alloc, void *alloc_pw, css_stylesheet **stylesheet);
css_error css_stylesheet_destroy(css_stylesheet *sheet);
@@ -31,7 +31,7 @@ css_error css_stylesheet_data_done(css_stylesheet *sheet);
css_error css_stylesheet_get_url(css_stylesheet *sheet, const char **url);
css_error css_stylesheet_get_title(css_stylesheet *sheet, const char **title);
css_error css_stylesheet_get_origin(css_stylesheet *sheet, css_origin *origin);
-css_error css_stylesheet_get_media(css_stylesheet *sheet, uint32_t *media);
+css_error css_stylesheet_get_media(css_stylesheet *sheet, uint64_t *media);
css_error css_stylesheet_get_disabled(css_stylesheet *sheet, bool *disabled);
css_error css_stylesheet_set_disabled(css_stylesheet *sheet, bool disabled);
diff --git a/src/stylesheet.c b/src/stylesheet.c
index a9413cc..da76915 100644
--- a/src/stylesheet.c
+++ b/src/stylesheet.c
@@ -37,7 +37,7 @@ static css_error _remove_selectors(css_stylesheet *sheet, css_rule *rule);
*/
css_error css_stylesheet_create(css_language_level level,
const char *charset, const char *url, const char *title,
- css_origin origin, uint32_t media,
+ css_origin origin, uint64_t media,
css_import_handler import_callback, void *import_pw,
css_alloc alloc, void *alloc_pw, css_stylesheet **stylesheet)
{
@@ -284,7 +284,7 @@ css_error css_stylesheet_get_origin(css_stylesheet *sheet, css_origin *origin)
* \param media Pointer to location to receive media types
* \return CSS_OK on success, appropriate error otherwise
*/
-css_error css_stylesheet_get_media(css_stylesheet *sheet, uint32_t *media)
+css_error css_stylesheet_get_media(css_stylesheet *sheet, uint64_t *media)
{
if (sheet == NULL || media == NULL)
return CSS_BADPARM;
diff --git a/src/stylesheet.h b/src/stylesheet.h
index fc74198..f1fb3fb 100644
--- a/src/stylesheet.h
+++ b/src/stylesheet.h
@@ -156,7 +156,7 @@ struct css_stylesheet {
char *title; /**< Title of this sheet */
css_origin origin; /**< Origin of stylesheet */
- uint32_t media; /**< Bitfield of media types */
+ uint64_t media; /**< Bitfield of media types */
void *ownerNode; /**< Owning node in document */
css_rule *ownerRule; /**< Owning rule in parent */