X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgfxsource.h;fp=lib%2Fgfxsource.h;h=15ab936484010a2e1e11a87ec3da3d68407e2c4b;hb=80cc20b7784cccc9d8baf9839f9781db6bb6f539;hp=3ca38715383d6ea8f92ddb00c310f24db60cd623;hpb=6aa6fc4155a6e6cb50aac09432a8b9e763d148e5;p=swftools.git diff --git a/lib/gfxsource.h b/lib/gfxsource.h index 3ca3871..15ab936 100644 --- a/lib/gfxsource.h +++ b/lib/gfxsource.h @@ -33,8 +33,8 @@ struct _gfxpage; typedef struct _gfxsource { - void (*set_parameter)(char*name, char*value); - struct _gfxdocument* (*open)(char*filename); + void (*set_parameter)(const char*name, const char*value); + struct _gfxdocument* (*open)(const char*filename); void*internal; } gfxsource_t; @@ -42,10 +42,10 @@ typedef struct _gfxdocument { gfxsource_t*driver; int num_pages; - void* (*get)(struct _gfxdocument*gfx, char*name); + void* (*get)(struct _gfxdocument*gfx, const char*name); void (*destroy)(struct _gfxdocument*gfx); - void (*set_parameter)(struct _gfxdocument*gfx, char*name, char*value); - char* (*getinfo)(struct _gfxdocument*gfx, char*key); + void (*set_parameter)(struct _gfxdocument*gfx, const char*name, const char*value); + char* (*getinfo)(struct _gfxdocument*gfx, const char*key); struct _gfxpage* (*getpage)(struct _gfxdocument*gfx, int page); void*internal; } gfxdocument_t;