X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Freaders%2Fswf.c;h=783d5699d4d674cd4870b4555de15679130f6ec0;hb=c8f6470122c3fa0bd990df2d1597ae60023d4df1;hp=0540e0f9ee924d1c4b8790fe04fbe5b0afe1a040;hpb=30b7b8b3a1f7b89d4272c5e908e93cfb8c598ade;p=swftools.git diff --git a/lib/readers/swf.c b/lib/readers/swf.c index 0540e0f..783d569 100644 --- a/lib/readers/swf.c +++ b/lib/readers/swf.c @@ -481,7 +481,7 @@ void swf_doc_destroy(gfxdocument_t*gfx) free(gfx);gfx=0; } -void swf_doc_set_parameter(gfxdocument_t*gfx, char*name, char*value) +void swf_doc_set_parameter(gfxdocument_t*gfx, const char*name, const char*value) { swf_doc_internal_t*i= (swf_doc_internal_t*)gfx->internal; } @@ -509,12 +509,12 @@ gfxpage_t* swf_doc_getpage(gfxdocument_t*doc, int page) return swf_page; } -void swf_set_parameter(gfxsource_t*src, char*name, char*value) +void swf_set_parameter(gfxsource_t*src, const char*name, const char*value) { msg(" setting parameter %s to \"%s\"", name, value); } -gfxdocument_t*swf_open(gfxsource_t*src, char*filename) +gfxdocument_t*swf_open(gfxsource_t*src, const char*filename) { gfxdocument_t*swf_doc = (gfxdocument_t*)malloc(sizeof(gfxdocument_t)); memset(swf_doc, 0, sizeof(gfxdocument_t));