X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxsource.h;h=17548ccb1a5adea2100420c074166964eff43609;hp=3ca38715383d6ea8f92ddb00c310f24db60cd623;hb=e0a27e1bd83ff2d60745dd6030e0f5ef7ef97b82;hpb=db1647cfff16c47a8744bbab4c8ddc638c2301d3 diff --git a/lib/gfxsource.h b/lib/gfxsource.h index 3ca3871..17548cc 100644 --- a/lib/gfxsource.h +++ b/lib/gfxsource.h @@ -33,8 +33,9 @@ struct _gfxpage; typedef struct _gfxsource { - void (*set_parameter)(char*name, char*value); - struct _gfxdocument* (*open)(char*filename); + void (*set_parameter)(struct _gfxsource*src, const char*name, const char*value); + struct _gfxdocument* (*open)(struct _gfxsource*src, const char*filename); + void (*destroy)(struct _gfxsource*src); void*internal; } gfxsource_t; @@ -42,11 +43,12 @@ 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 (*prepare)(struct _gfxdocument*gfx, gfxdevice_t*device); void*internal; } gfxdocument_t;