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 --- src/stylesheet.c | 4 ++-- src/stylesheet.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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