X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxsource.h;h=845eca790e9e6e84d15e53d71e4beb294c0dbceb;hp=15ab936484010a2e1e11a87ec3da3d68407e2c4b;hb=b5a996ee217aea486eb78860fe7bab2b522f9678;hpb=80cc20b7784cccc9d8baf9839f9781db6bb6f539 diff --git a/lib/gfxsource.h b/lib/gfxsource.h index 15ab936..845eca7 100644 --- a/lib/gfxsource.h +++ b/lib/gfxsource.h @@ -33,8 +33,9 @@ struct _gfxpage; typedef struct _gfxsource { - void (*set_parameter)(const char*name, const char*value); - struct _gfxdocument* (*open)(const char*filename); + void (*setparameter)(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; @@ -44,9 +45,10 @@ typedef struct _gfxdocument int num_pages; void* (*get)(struct _gfxdocument*gfx, const char*name); void (*destroy)(struct _gfxdocument*gfx); - void (*set_parameter)(struct _gfxdocument*gfx, const char*name, const char*value); + void (*setparameter)(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;