mlt_repository.[hc]:
[melted] / src / modules / dv / factory.c
index 694032c..305fb9c 100644 (file)
 
 #include <string.h>
 
-#include <framework/mlt_consumer.h>
-#include <framework/mlt_producer.h>
+#include <framework/mlt.h>
 
 extern mlt_consumer consumer_libdv_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
 extern mlt_producer producer_libdv_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
 
-
-void *mlt_create_producer( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
-{
-       if ( !strcmp( id, "libdv" ) )
-               return producer_libdv_init( profile, type, id, arg );
-       return NULL;
-}
-
-void *mlt_create_filter( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
+MLT_REPOSITORY
 {
-       return NULL;
+       MLT_REGISTER( consumer_type, "libdv", consumer_libdv_init );
+       MLT_REGISTER( producer_type, "libdv", producer_libdv_init );
 }
-
-void *mlt_create_transition( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
-{
-       return NULL;
-}
-
-void *mlt_create_consumer( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
-{
-       if ( !strcmp( id, "libdv" ) )
-               return consumer_libdv_init( profile, type, id, arg );
-       return NULL;
-}
-