X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2B%2B%2Fsrc%2FMltFactory.h;h=aeec5882284de77cd5627eed420c18d8e97e61ea;hb=30da6add4dfaeea81255d3d141a18e61f9a4a978;hp=01286984d55df2553977722c3359dbb1e1a8f4ce;hpb=8433613ca206628beb6f5868d8eab73780fc1faa;p=melted diff --git a/mlt++/src/MltFactory.h b/mlt++/src/MltFactory.h index 0128698..aeec588 100644 --- a/mlt++/src/MltFactory.h +++ b/mlt++/src/MltFactory.h @@ -1,6 +1,7 @@ /** * MltFactory.h - MLT Wrapper * Copyright (C) 2004-2005 Charles Yates + * Copyright (C) 2008 Dan Dennedy * Author: Charles Yates * * This program is free software; you can redistribute it and/or modify @@ -21,6 +22,12 @@ #ifndef _MLTPP_FACTORY_H_ #define _MLTPP_FACTORY_H_ +#include "config.h" + +#ifdef SWIG +#define MLTPP_DECLSPEC +#endif + #include namespace Mlt @@ -30,16 +37,22 @@ namespace Mlt class Filter; class Transition; class Consumer; + class Profile; + class Repository; - class Factory + class MLTPP_DECLSPEC Factory { public: - static int init( char *arg = NULL ); + static Repository *init( const char *directory = NULL ); static Properties *event_object( ); - static Producer *producer( char *id, char *arg = NULL ); - static Filter *filter( char *id, char *arg = NULL ); - static Transition *transition( char *id, char *arg = NULL ); - static Consumer *consumer( char *id, char *arg = NULL ); + static Producer *producer( Profile& profile, char *id, char *arg = NULL ); + static Filter *filter( Profile& profile, char *id, char *arg = NULL ); + static Transition *transition( Profile& profile, char *id, char *arg = NULL ); + static Consumer *consumer( Profile& profile, char *id, char *arg = NULL ); +#ifdef WIN32 + static char *getenv( const char * ); + static int setenv( const char *, const char * ); +#endif static void close( ); }; }