Constness changes
[melted] / src / framework / mlt_factory.h
1 /**
2 * \file mlt_factory.h
3 * \brief the factory method interfaces
4 *
5 * Copyright (C) 2003-2009 Ushodaya Enterprises Limited
6 * \author Charles Yates <charles.yates@pandora.be>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23 #ifndef _MLT_FACTORY_H
24 #define _MLT_FACTORY_H
25
26 #include "mlt_types.h"
27 #include "mlt_profile.h"
28 #include "mlt_repository.h"
29
30 /**
31 * \event \em producer-create-request fired when mlt_factory_producer is called
32 * \event \em producer-create-done fired when a producer registers itself
33 * \event \em filter-create-request fired when mlt_factory_filter is called
34 * \event \em filter-create-done fired when a filter registers itself
35 * \event \em transition-create-request fired when mlt_factory_transition is called
36 * \event \em transition-create-done fired when a transition registers itself
37 * \event \em consumer-create-request fired when mlt_factory_consumer is called
38 * \event \em consumer-create-done fired when a consumer registers itself
39 */
40
41 extern mlt_repository mlt_factory_init( const char *directory );
42 extern const char *mlt_factory_directory( );
43 extern char *mlt_environment( const char *name );
44 extern int mlt_environment_set( const char *name, const char *value );
45 extern mlt_properties mlt_factory_event_object( );
46 extern mlt_producer mlt_factory_producer( mlt_profile profile, const char *name, const void *input );
47 extern mlt_filter mlt_factory_filter( mlt_profile profile, const char *name, const void *input );
48 extern mlt_transition mlt_factory_transition( mlt_profile profile, const char *name, const void *input );
49 extern mlt_consumer mlt_factory_consumer( mlt_profile profile, const char *name, const void *input );
50 extern void mlt_factory_register_for_clean_up( void *ptr, mlt_destructor destructor );
51 extern void mlt_factory_close( );
52 extern mlt_properties mlt_global_properties( );
53
54 #endif