Module: synfig
Branch: eldruin_ffmpeg_experimental
Commit: deeb6f134a8f1f0c4e3d36a4a18c7391505e3a0b
URL:    
http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=deeb6f134a8f1f0c4e3d36a4a18c7391505e3a0b

Author: Diego Barrios Romero <eldr...@gmailcom>
Date:   Wed Jan 27 21:16:44 2010 +0100

Forgotten file

---

 synfig-core/src/synfig/target.h |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/synfig-core/src/synfig/target.h b/synfig-core/src/synfig/target.h
index f93cf87..8ad3ad3 100644
--- a/synfig-core/src/synfig/target.h
+++ b/synfig-core/src/synfig/target.h
@@ -42,7 +42,10 @@
 /* === M A C R O S ========================================================= */
 
 //! \writeme
-#define SYNFIG_TARGET_MODULE_EXT public: static const char name__[], 
version__[], ext__[],cvs_id__[]; static Target *create(const char *filename);
+#define SYNFIG_TARGET_MODULE_EXT public: static const char name__[],   \
+               version__[], ext__[], cvs_id__[];                               
                                \
+       static Target* create (const char *filename,                            
                \
+                                                  synfig::TargetParam* p);
 
 //! Sets the name of the target
 #define SYNFIG_TARGET_SET_NAME(class,x) const char class::name__[]=x
@@ -57,7 +60,10 @@
 #define SYNFIG_TARGET_SET_CVS_ID(class,x) const char class::cvs_id__[]=x
 
 //! \writeme
-#define SYNFIG_TARGET_INIT(class) synfig::Target* class::create(const char 
*filename) { return new class(filename); }
+#define SYNFIG_TARGET_INIT(class)                                              
                                \
+       synfig::Target* class::create (const char *filename,                    
        \
+                                                                  
synfig::TargetParam* p)                              \
+       { return new class(filename, p); }
 
 /* === T Y P E D E F S ===================================================== */
 
@@ -69,6 +75,7 @@ class Surface;
 class RendDesc;
 class Canvas;
 class ProgressCallback;
+class TargetParam;
 
 /*!    \class Target
 **     \brief Render-target
@@ -106,12 +113,13 @@ public:
        /*! As a pointer to the constructor, it represents a "factory" of 
targets.
        **  Receives the output filename (including path).
        */
-       typedef Target* (*Factory)(const char *filename);
-       
+       typedef Target* (*Factory)(const char *filename, TargetParam* p);
+
        struct BookEntry
        {
                Factory factory;
                String filename; ///< Output filename including path
+               TargetParam* target_param; ///< Target module parameters
        };
 
        //! Book of types of targets indexed by the name of the Target.


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to