2 * mlt_parser.h -- service parsing functionality
3 * Copyright (C) 2003-2004 Ushodaya Enterprises Limited
4 * Author: Charles Yates <charles.yates@pandora.be>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library 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 GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef _MLT_PARSER_H_
22 #define _MLT_PARSER_H_
24 #include "mlt_types.h"
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
);
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
);