]> git.sesse.net Git - mlt/blobdiff - src/modules/valerie/factory.c
framework: remove global profile, rather share one mlt_profile across a service netwo...
[mlt] / src / modules / valerie / factory.c
index e93c41f3dfa59c66432c9018f2c4022e7c7bd06d..affef35ffec51a2eef2c113b481bcf454e97603e 100644 (file)
  */
 
 #include <string.h>
+#include <framework/mlt.h>
 
-#include "consumer_valerie.h"
+extern mlt_consumer consumer_valerie_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
 
-void *mlt_create_producer( char *id, void *arg )
+void *mlt_create_producer( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
 {
        return NULL;
 }
 
-void *mlt_create_filter( char *id, void *arg )
+void *mlt_create_filter( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
 {
        return NULL;
 }
 
-void *mlt_create_transition( char *id, void *arg )
+void *mlt_create_transition( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
 {
        return NULL;
 }
 
-void *mlt_create_consumer( char *id, void *arg )
+void *mlt_create_consumer( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
 {
        if ( !strcmp( id, "valerie" ) )
-               return consumer_valerie_init( arg );
+               return consumer_valerie_init( profile, type, id, arg );
        return NULL;
 }