#include "mlt_properties.h"
#include <stdlib.h>
+#include <string.h>
/** Singleton repositories
*/
+static char *mlt_prefix = NULL;
static mlt_properties object_list = NULL;
static mlt_repository producers = NULL;
static mlt_repository filters = NULL;
if ( prefix == NULL )
prefix = PREFIX_DATA;
+ // Store the prefix for later retrieval
+ mlt_prefix = strdup( prefix );
+
// Create the object list.
object_list = calloc( sizeof( struct mlt_properties_s ), 1 );
mlt_properties_init( object_list, NULL );
return 0;
}
+/** Fetch the prefix used in this instance.
+*/
+
+const char *mlt_factory_prefix( )
+{
+ return mlt_prefix;
+}
+
/** Fetch a producer from the repository.
*/
mlt_repository_close( transitions );
mlt_repository_close( consumers );
mlt_properties_close( object_list );
+ free( mlt_prefix );
free( object_list );
}