From 269782473069c17385977a547db77a58c5718741 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 9 Nov 2008 20:22:59 +0000 Subject: Make stylesheet component constructors/destructors report errors svn path=/trunk/libcss/; revision=5675 --- include/libcss/stylesheet.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/libcss/stylesheet.h b/include/libcss/stylesheet.h index 5f00502..d639f13 100644 --- a/include/libcss/stylesheet.h +++ b/include/libcss/stylesheet.h @@ -17,12 +17,12 @@ typedef css_error (*css_import_handler)(void *pw, const char *url, css_stylesheet *sheet); -css_stylesheet *css_stylesheet_create(css_language_level level, +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_import_handler import_callback, void *import_pw, - css_alloc alloc, void *alloc_pw); -void css_stylesheet_destroy(css_stylesheet *sheet); + css_alloc alloc, void *alloc_pw, css_stylesheet **stylesheet); +css_error css_stylesheet_destroy(css_stylesheet *sheet); css_error css_stylesheet_append_data(css_stylesheet *sheet, const uint8_t *data, size_t len); -- cgit v1.2.3