summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libcss/stylesheet.h2
-rw-r--r--src/stylesheet.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/libcss/stylesheet.h b/include/libcss/stylesheet.h
index 8ef530e..86a0917 100644
--- a/include/libcss/stylesheet.h
+++ b/include/libcss/stylesheet.h
@@ -136,7 +136,7 @@ typedef struct css_stylesheet_params {
void *font_pw;
} css_stylesheet_params;
-css_error css_stylesheet_create(css_stylesheet_params *params,
+css_error css_stylesheet_create(const css_stylesheet_params *params,
css_allocator_fn alloc, void *alloc_pw,
css_stylesheet **stylesheet);
css_error css_stylesheet_destroy(css_stylesheet *sheet);
diff --git a/src/stylesheet.c b/src/stylesheet.c
index 6b4bf77..ba76d37 100644
--- a/src/stylesheet.c
+++ b/src/stylesheet.c
@@ -120,7 +120,7 @@ css_error css__stylesheet_string_get(css_stylesheet *sheet, uint32_t string_numb
* CSS_BADPARM on bad parameters,
* CSS_NOMEM on memory exhaustion
*/
-css_error css_stylesheet_create(css_stylesheet_params *params,
+css_error css_stylesheet_create(const css_stylesheet_params *params,
css_allocator_fn alloc, void *alloc_pw,
css_stylesheet **stylesheet)
{