typedef struct _gfxsource
{
- void (*set_parameter)(const char*name, const char*value);
- struct _gfxdocument* (*open)(const 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;
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;