]> git.sesse.net Git - mlt/blob - src/framework/mlt_parser.h
Cloning optimisations and introduction of the service parser
[mlt] / src / framework / mlt_parser.h
1 /*
2  * mlt_parser.h -- service parsing functionality
3  * Copyright (C) 2003-2004 Ushodaya Enterprises Limited
4  * Author: Charles Yates <charles.yates@pandora.be>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software Foundation,
18  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef _MLT_PARSER_H_
22 #define _MLT_PARSER_H_
23
24 #include "mlt_types.h"
25
26 struct mlt_parser_s
27 {
28         struct mlt_properties_s parent;
29         int ( *on_invalid )( mlt_parser self, mlt_service object );
30         int ( *on_unknown )( mlt_parser self, mlt_service object );
31         int ( *on_start_producer )( mlt_parser self, mlt_producer object );
32         int ( *on_end_producer )( mlt_parser self, mlt_producer object );
33         int ( *on_start_playlist )( mlt_parser self, mlt_playlist object );
34         int ( *on_end_playlist )( mlt_parser self, mlt_playlist object );
35         int ( *on_start_tractor )( mlt_parser self, mlt_tractor object );
36         int ( *on_end_tractor )( mlt_parser self, mlt_tractor object );
37         int ( *on_start_multitrack )( mlt_parser self, mlt_multitrack object );
38         int ( *on_end_multitrack )( mlt_parser self, mlt_multitrack object );
39         int ( *on_start_track )( mlt_parser self );
40         int ( *on_end_track )( mlt_parser self );
41         int ( *on_start_filter )( mlt_parser self, mlt_filter object );
42         int ( *on_end_filter )( mlt_parser self, mlt_filter object );
43         int ( *on_start_transition )( mlt_parser self, mlt_transition object );
44         int ( *on_end_transition )( mlt_parser self, mlt_transition object );
45 };
46
47 extern mlt_parser mlt_parser_new( );
48 extern mlt_properties mlt_parser_properties( mlt_parser self );
49 extern int mlt_parser_start( mlt_parser self, mlt_service object );
50 extern void mlt_parser_close( mlt_parser self );
51
52 #endif