/**
* \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
*
* \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
+ * \properties \em _need_previous_next boolean that instructs producers to get
+ * preceding and following frames inside of \p mlt_service_get_frame
*/
struct mlt_service_s
{
- struct mlt_properties_s parent; /**< \private */
+ struct mlt_properties_s parent; /**< \private A service extends properties. */
/** Get a frame of data (virtual function).
*
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 );
+extern void mlt_service_cache_set_size( mlt_service self, const char *name, int size );
+extern void mlt_service_cache_purge( mlt_service self );
+
#endif