From 2a871b7b632aa1899feb95fad2c33f9874cfe675 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 12 Feb 2009 13:07:48 +0000 Subject: Synchronise media type bitfield with reality -- it's 64bits wide. svn path=/trunk/libcss/; revision=6453 --- include/libcss/stylesheet.h | 4 ++-- src/stylesheet.c | 4 ++-- src/stylesheet.h | 2 +- 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 */ -- cgit v1.2.3