X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fwestley%2Ffactory.c;fp=src%2Fmodules%2Fwestley%2Ffactory.c;h=e60cd566f9e6c06bd26499a3d1c1dad65ba1ef85;hb=520454d526bdcd58f1ac6ab7532dc2529b822808;hp=0000000000000000000000000000000000000000;hpb=812170855207691a0ce6fa152cb3d917221eb66f;p=melted diff --git a/src/modules/westley/factory.c b/src/modules/westley/factory.c new file mode 100644 index 0000000..e60cd56 --- /dev/null +++ b/src/modules/westley/factory.c @@ -0,0 +1,49 @@ +/* + * factory.c -- the factory method interfaces + * Copyright (C) 2003-2004 Ushodaya Enterprises Limited + * Author: Charles Yates + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#include + +#include "consumer_westley.h" +#include "producer_westley.h" + +void *mlt_create_producer( char *id, void *arg ) +{ + if ( !strcmp( id, "westley" ) ) + return producer_westley_init( arg ); + return NULL; +} + +void *mlt_create_filter( char *id, void *arg ) +{ + return NULL; +} + +void *mlt_create_transition( char *id, void *arg ) +{ + return NULL; +} + +void *mlt_create_consumer( char *id, void *arg ) +{ + if ( !strcmp( id, "westley" ) ) + return consumer_westley_init( arg ); + return NULL; +} +