X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_tractor.h;h=da0030a67f2cb462f609765b9ac6a2c386ac88b0;hb=77a0ee9bfb58af4e52cde4bc648e81be1b48c2d4;hp=b6576ecc523179cc85b417f0c559f66530518f74;hpb=7c518e80321a87a22d2e48835442c9f5b70dcd17;p=melted diff --git a/src/framework/mlt_tractor.h b/src/framework/mlt_tractor.h index b6576ec..da0030a 100644 --- a/src/framework/mlt_tractor.h +++ b/src/framework/mlt_tractor.h @@ -23,11 +23,30 @@ #include "mlt_producer.h" +/** Private structure. +*/ + +struct mlt_tractor_s +{ + struct mlt_producer_s parent; + mlt_service producer; +}; + +#define MLT_TRACTOR_PRODUCER( tractor ) ( &( tractor )->parent ) +#define MLT_TRACTOR_SERVICE( tractor ) MLT_PRODUCER_SERVICE( MLT_TRACTOR_PRODUCER( tractor ) ) +#define MLT_TRACTOR_PROPERTIES( tractor ) MLT_SERVICE_PROPERTIES( MLT_TRACTOR_SERVICE( tractor ) ) + extern mlt_tractor mlt_tractor_init( ); -extern mlt_service mlt_tractor_service( mlt_tractor this ); -extern mlt_producer mlt_tractor_producer( mlt_tractor this ); -extern mlt_properties mlt_tractor_properties( mlt_tractor this ); -extern int mlt_tractor_connect( mlt_tractor this, mlt_service service ); -extern void mlt_tractor_close( mlt_tractor this ); +extern mlt_tractor mlt_tractor_new( ); +extern mlt_service mlt_tractor_service( mlt_tractor self ); +extern mlt_producer mlt_tractor_producer( mlt_tractor self ); +extern mlt_properties mlt_tractor_properties( mlt_tractor self ); +extern mlt_field mlt_tractor_field( mlt_tractor self ); +extern mlt_multitrack mlt_tractor_multitrack( mlt_tractor self ); +extern int mlt_tractor_connect( mlt_tractor self, mlt_service service ); +extern void mlt_tractor_refresh( mlt_tractor self ); +extern int mlt_tractor_set_track( mlt_tractor self, mlt_producer producer, int index ); +extern mlt_producer mlt_tractor_get_track( mlt_tractor self, int index ); +extern void mlt_tractor_close( mlt_tractor self ); #endif