]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_properties.c
Add doxygen documentation for mlt_profile, mlt_pool, mlt_repository, and mlt_factory.
[mlt] / src / framework / mlt_properties.c
index 9714a2fcbc9e8403e8a6870d0ddfe21f98ce33d6..cfb0053e66060beb04a3624994550db7bc20c9ce 100644 (file)
@@ -1,8 +1,9 @@
 /**
  * \file mlt_properties.c
  * \brief Properties class definition
+ * \see mlt_properties_s
  *
- * Copyright (C) 2003-2008 Ushodaya Enterprises Limited
+ * Copyright (C) 2003-2009 Ushodaya Enterprises Limited
  * \author Charles Yates <charles.yates@pandora.be>
  * \author Dan Dennedy <dan@dennedy.org>
  *
@@ -24,6 +25,7 @@
 #include "mlt_properties.h"
 #include "mlt_property.h"
 #include "mlt_deque.h"
+#include "mlt_log.h"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -285,8 +287,8 @@ void mlt_properties_mirror( mlt_properties this, mlt_properties that )
 /** Copy all serializable properties to another properties list.
  *
  * \public \memberof mlt_properties_s
- * \param this The properties to copy from
- * \param that The properties to copy to
+ * \param this The properties to copy to
+ * \param that The properties to copy from
  * \return false
  */
 
@@ -309,8 +311,8 @@ int mlt_properties_inherit( mlt_properties this, mlt_properties that )
 /** Pass all serializable properties that match a prefix to another properties object
  *
  * \public \memberof mlt_properties_s
- * \param this the properties to copy from
- * \param that The properties to copy to
+ * \param this the properties to copy to
+ * \param that The properties to copy from
  * \param prefix the property names to match (required)
  * \return false
  */
@@ -423,8 +425,8 @@ static mlt_property mlt_properties_fetch( mlt_properties this, const char *name
  *
  * \public \memberof mlt_properties_s
  * \author Zach <zachary.drew@gmail.com>
- * \param this the properties to copy from
- * \param that the properties to copy to
+ * \param this the properties to copy to
+ * \param that the properties to copy from
  * \param name the name of the property to copy
  */
 
@@ -443,8 +445,8 @@ void mlt_properties_pass_property( mlt_properties this, mlt_properties that, con
  * White space is also a delimiter.
  * \public \memberof mlt_properties_s
  * \author Zach <zachary.drew@gmail.com>
- * \param this the properties to copy from
- * \param that the properties to copy to
+ * \param this the properties to copy to
+ * \param that the properties to copy from
  * \param list a delimited list of property names
  * \return false
  */
@@ -498,7 +500,7 @@ int mlt_properties_set( mlt_properties this, const char *name, const char *value
        // Set it if not NULL
        if ( property == NULL )
        {
-               fprintf( stderr, "Whoops - %s not found (should never occur)\n", name );
+               mlt_log( NULL, MLT_LOG_FATAL, "Whoops - %s not found (should never occur)\n", name );
        }
        else if ( value == NULL )
        {
@@ -1149,7 +1151,7 @@ void mlt_properties_close( mlt_properties this )
                        properties_destroyed ++;
 
                        // Show current stats - these should match when the app is closed
-                       fprintf( stderr, "Created %d, destroyed %d\n", properties_created, properties_destroyed );
+                       mlt_log( NULL, MLT_LOG_DEBUG, "Created %d, destroyed %d\n", properties_created, properties_destroyed );
 #endif
 
                        // Clean up names and values
@@ -1533,7 +1535,7 @@ mlt_properties mlt_properties_parse_yaml( const char *filename )
 /** How many bytes to grow at a time */
 #define STRBUF_GROWTH (1024)
 
-/** \brief Self-growing buffer for building strings
+/** \brief Private to mlt_properties_s, a self-growing buffer for building strings
  * \private
  */