Cleanup license declarations and remove dv1394d references.
[melted] / src / framework / mlt_tractor.h
1 /*
2 * mlt_tractor.h -- tractor service class
3 * Copyright (C) 2003-2004 Ushodaya Enterprises Limited
4 * Author: Charles Yates <charles.yates@pandora.be>
5 *
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.
10 *
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.
15 *
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
19 */
20
21 #ifndef _MLT_TRACTOR_H_
22 #define _MLT_TRACTOR_H_
23
24 #include "mlt_producer.h"
25
26 /** Private structure.
27 */
28
29 struct mlt_tractor_s
30 {
31 struct mlt_producer_s parent;
32 mlt_service producer;
33 };
34
35 #define MLT_TRACTOR_PRODUCER( tractor ) ( &( tractor )->parent )
36 #define MLT_TRACTOR_SERVICE( tractor ) MLT_PRODUCER_SERVICE( MLT_TRACTOR_PRODUCER( tractor ) )
37 #define MLT_TRACTOR_PROPERTIES( tractor ) MLT_SERVICE_PROPERTIES( MLT_TRACTOR_SERVICE( tractor ) )
38
39 extern mlt_tractor mlt_tractor_init( );
40 extern mlt_tractor mlt_tractor_new( );
41 extern mlt_service mlt_tractor_service( mlt_tractor self );
42 extern mlt_producer mlt_tractor_producer( mlt_tractor self );
43 extern mlt_properties mlt_tractor_properties( mlt_tractor self );
44 extern mlt_field mlt_tractor_field( mlt_tractor self );
45 extern mlt_multitrack mlt_tractor_multitrack( mlt_tractor self );
46 extern int mlt_tractor_connect( mlt_tractor self, mlt_service service );
47 extern void mlt_tractor_refresh( mlt_tractor self );
48 extern int mlt_tractor_set_track( mlt_tractor self, mlt_producer producer, int index );
49 extern mlt_producer mlt_tractor_get_track( mlt_tractor self, int index );
50 extern void mlt_tractor_close( mlt_tractor self );
51
52 #endif