/**
* \file mlt_service.h
* \brief interface declaration for all service classes
+ * \see mlt_service_s
*
- * Copyright (C) 2003-2008 Ushodaya Enterprises Limited
+ * Copyright (C) 2003-2009 Ushodaya Enterprises Limited
* \author Charles Yates <charles.yates@pandora.be>
*
* This library is free software; you can redistribute it and/or
#define _MLT_SERVICE_H_
#include "mlt_properties.h"
-#include "mlt_profile.h"
+#include "mlt_types.h"
/** \brief Service abstract base class
*
* \event \em service-changed
* \event \em property-changed
* \properties \em mlt_type identifies the subclass
+ * \properties \em _mlt_service_hidden a flag that indicates whether to hide the mlt_service
+ * \properties \em mlt_service is the name of the implementation of the service
* \properties \em resource is either the stream identifier or grandchild-class
- * \properties \em in where to start playing
+ * \properties \em in when to start, what is started is service-specific
+ * \properties \em out when to stop
* \properties \em _filter_private Set this on a service to ensure that attached filters are handled privately.
* See modules/core/filter_region.c and modules/core/filter_watermark.c for examples.
* \properties \em disable Set this on a filter to disable it while keeping it in the object model.
* \properties \em _profile stores the mlt_profile for a service
+ * \properties \em _unique_id is a unique identifier
*/
struct mlt_service_s
extern mlt_filter mlt_service_filter( mlt_service self, int index );
extern mlt_profile mlt_service_profile( mlt_service self );
extern void mlt_service_close( mlt_service self );
+extern void mlt_service_cache_put( mlt_service self, const char *name, void* data, int size, mlt_destructor destructor );
+extern mlt_cache_item mlt_service_cache_get( mlt_service self, const char *name );
#endif