replaced libart with new polygon code
[swftools.git] / lib / gfxsource.h
index 15ab936..17548cc 100644 (file)
@@ -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                 (*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;
 
@@ -47,6 +48,7 @@ typedef struct _gfxdocument
     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;