docs/gst/Makefile.am: Ignore a few more internal headers
authorDavid Schleef <ds@schleef.org>
Tue, 20 Sep 2005 06:28:33 +0000 (06:28 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 20 Sep 2005 06:28:33 +0000 (06:28 +0000)
Original commit message from CVS:
* docs/gst/Makefile.am: Ignore a few more internal headers
* docs/gst/gstreamer-docs.sgml: Remove old sections
* docs/gst/gstreamer-sections.txt: Remove old sections
* docs/gst/tmpl/gstobject.sgml: update
* docs/gst/tmpl/gstplugin.sgml: update
* docs/gst/tmpl/gstpluginfeature.sgml: update
* docs/random/ds/0.9-suggested-changes: update.
* gst/Makefile.am: remove memchunk and trashstack, since they're
not used.
* gst/gst.c: (gst_deinit): rename gst_registry_deinit to _cleanup
* gst/gst.h: don't include some headers
* gst/gstchildproxy.c: add gstmarshal.h
* gst/gstclock.c: Don't use memchunks
* gst/gstminiobject.c: Add some docs
* gst/gstobject.c: remove DESTROYED flag, since it's redundant
* gst/gstobject.h: same
* gst/gstplugin.c: include gstmacros.h
* gst/gstplugin.h: don't include gstmacros.h, since it's private
* gst/gstquery.c: don't use memchunks
* gst/gstregistry.c: rename gst_registry_deinit()
* gst/gstregistry.h: same

21 files changed:
ChangeLog
docs/gst/Makefile.am
docs/gst/gstreamer-docs.sgml
docs/gst/gstreamer-sections.txt
docs/gst/tmpl/gstobject.sgml
docs/gst/tmpl/gstplugin.sgml
docs/gst/tmpl/gstpluginfeature.sgml
docs/random/ds/0.9-suggested-changes
gst/Makefile.am
gst/gst.c
gst/gst.h
gst/gstchildproxy.c
gst/gstclock.c
gst/gstminiobject.c
gst/gstobject.c
gst/gstobject.h
gst/gstplugin.c
gst/gstplugin.h
gst/gstquery.c
gst/gstregistry.c
gst/gstregistry.h

index 774965d..75fb764 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,29 @@
 2005-09-19  David Schleef  <ds@schleef.org>
 
+       * docs/gst/Makefile.am: Ignore a few more internal headers
+       * docs/gst/gstreamer-docs.sgml: Remove old sections
+       * docs/gst/gstreamer-sections.txt: Remove old sections
+       * docs/gst/tmpl/gstobject.sgml: update
+       * docs/gst/tmpl/gstplugin.sgml: update
+       * docs/gst/tmpl/gstpluginfeature.sgml: update
+       * docs/random/ds/0.9-suggested-changes: update.
+       * gst/Makefile.am: remove memchunk and trashstack, since they're
+         not used.
+       * gst/gst.c: (gst_deinit): rename gst_registry_deinit to _cleanup
+       * gst/gst.h: don't include some headers
+       * gst/gstchildproxy.c: add gstmarshal.h
+       * gst/gstclock.c: Don't use memchunks
+       * gst/gstminiobject.c: Add some docs
+       * gst/gstobject.c: remove DESTROYED flag, since it's redundant
+       * gst/gstobject.h: same
+       * gst/gstplugin.c: include gstmacros.h
+       * gst/gstplugin.h: don't include gstmacros.h, since it's private
+       * gst/gstquery.c: don't use memchunks
+       * gst/gstregistry.c: rename gst_registry_deinit()
+       * gst/gstregistry.h: same
+
+2005-09-19  David Schleef  <ds@schleef.org>
+
        * docs/libs/gstreamer-libs-docs.sgml: Remove docs for getbits
        * docs/libs/gstreamer-libs-sections.txt:
        * docs/libs/tmpl/gstgetbits.sgml:
index 67e94ce..2ee7f7b 100644 (file)
@@ -71,6 +71,7 @@ IGNORE_HFILES= \
        gthread-cothreads.h \
        faircothreads.h \
        types.h \
+       glib-compat.h \
        grammar.tab.h \
        gstmarshal.h \
        gstaggregator.h \
@@ -78,6 +79,7 @@ IGNORE_HFILES= \
        gstfdsink.h \
        gstfdsrc.h \
        gstidentity.h \
+       gstmacros.h \
        gstmd5sink.h \
        gstmultifilesrc.h \
        gstmultifdsink.h \
@@ -85,10 +87,12 @@ IGNORE_HFILES= \
        gstshaper.h \
        gststatistics.h \
        gsttee.h \
+       gsttrashstack.h \
        gsttypefindelement.h \
        gstspider.h \
        gstspideridentity.h \
        gstsearchfuncs.h \
+       gsttrashstack.h \
        gstxmlregistry.h
 
 # Images to copy into HTML directory.
index d0cce20..ca19df1 100644 (file)
@@ -27,8 +27,6 @@
 <!ENTITY GstIndexFactory SYSTEM "xml/gstindexfactory.xml">
 <!ENTITY GstInfo SYSTEM "xml/gstinfo.xml">
 <!ENTITY GstIterator SYSTEM "xml/gstiterator.xml">
-<!ENTITY GstMacros SYSTEM "xml/gstmacros.xml">
-<!ENTITY GstMemChunk SYSTEM "xml/gstmemchunk.xml">
 <!ENTITY GstMessage SYSTEM "xml/gstmessage.xml">
 <!ENTITY GstMiniObject SYSTEM "xml/gstminiobject.xml">
 <!ENTITY GstObject SYSTEM "xml/gstobject.xml">
 <!ENTITY GstQuery SYSTEM "xml/gstquery.xml">
 <!ENTITY GstQueue SYSTEM "xml/gstqueue.xml">
 <!ENTITY GstRegistry SYSTEM "xml/gstregistry.xml">
-<!ENTITY GstRegistryPool SYSTEM "xml/gstregistrypool.xml">
 <!ENTITY GstStructure SYSTEM "xml/gststructure.xml">
 <!ENTITY GstSystemClock SYSTEM "xml/gstsystemclock.xml">
 <!ENTITY GstTagList SYSTEM "xml/gsttaglist.xml">
 <!ENTITY GstTagSetter SYSTEM "xml/gsttagsetter.xml">
 <!ENTITY GstTrace SYSTEM "xml/gsttrace.xml">
-<!ENTITY GstTrashStack SYSTEM "xml/gsttrashstack.xml">
 <!ENTITY GstTypeFind SYSTEM "xml/gsttypefind.xml">
 <!ENTITY GstTypeFindFactory SYSTEM "xml/gsttypefindfactory.xml">
 <!ENTITY GstTypes SYSTEM "xml/gsttypes.xml">
     &GstQuery;
     &GstQueue;
     &GstRegistry;
-    &GstRegistryPool;
     &GstStructure;
     &GstSystemClock;
     &GstTagList;
 
     &GstCheck;
     &GstInfo;
-    &GstMacros;
-    &GstMemChunk;
     &GstTrace;
-    &GstTrashStack;
 
   </chapter>
 
index 5b8bc3a..b27aa3f 100644 (file)
@@ -81,6 +81,7 @@ gst_bin_flags_get_type
 <FILE>gstbus</FILE>
 <TITLE>GstBus</TITLE>
 GstBus
+GstBusFunc
 GstBusFlags
 GstBusSyncReply
 GstBusHandler
@@ -930,28 +931,6 @@ gst_iterator_result_get_type
 
 
 <SECTION>
-<FILE>gstmacros</FILE>
-<TITLE>GstMacros</TITLE>
-<SUBSECTION Private>
-GST_GNUC_CONSTRUCTOR
-GST_INLINE_FUNC
-GST_CAN_INLINE
-</SECTION>
-
-
-<SECTION>
-<FILE>gstmemchunk</FILE>
-<TITLE>GstMemChunk</TITLE>
-GstMemChunk
-gst_mem_chunk_new
-gst_mem_chunk_destroy
-gst_mem_chunk_alloc
-gst_mem_chunk_alloc0
-gst_mem_chunk_free
-</SECTION>
-
-
-<SECTION>
 <FILE>gstmessage</FILE>
 <TITLE>GstMessage</TITLE>
 GstMessage
@@ -1428,14 +1407,24 @@ gst_plugin_load_file
 gst_plugin_unload_plugin
 gst_plugin_add_feature
 gst_plugin_load
+gst_plugin_load_by_name
+gst_plugin_list_free
 <SUBSECTION Standard>
+GstPluginClass
 GST_PLUGIN
+GST_PLUGIN_CLASS
+GST_PLUGIN_GET_CLASS
 GST_TYPE_PLUGIN
 GST_TYPE_PLUGIN_ERROR
+GST_IS_PLUGIN
+GST_IS_PLUGIN_CLASS
+GstPluginFlags
+GST_TYPE_PLUGIN_FLAGS
 <SUBSECTION Private>
 gst_plugin_get_type
 <SUBSECTION Private>
 gst_plugin_error_get_type
+gst_plugin_flags_get_type
 </SECTION>
 
 
@@ -1453,6 +1442,8 @@ gst_plugin_feature_set_rank
 gst_plugin_feature_set_name
 gst_plugin_feature_get_rank
 gst_plugin_feature_get_name
+gst_plugin_feature_load
+gst_plugin_feature_list_free
 <SUBSECTION Standard>
 GstPluginFeatureClass
 GST_PLUGIN_FEATURE
@@ -1589,6 +1580,27 @@ gst_registry_find_feature
 gst_registry_load_plugin
 gst_registry_unload_plugin
 gst_registry_update_plugin
+gst_registry_scan_path
+gst_registry_get_feature_list
+gst_registry_xml_read_cache
+gst_registry_xml_write_cache
+gst_registry_scan_paths
+gst_registry_get_default
+gst_registry_lookup
+gst_registry_remove_feature
+gst_registry_get_feature_list_by_plugin
+gst_registry_lookup_feature
+gst_registry_get_plugin_list
+gst_registry_add_feature
+<SUBSECTION Default Registry>
+gst_default_registry_find_feature
+gst_default_registry_get_path_list
+gst_default_registry_add_plugin
+gst_default_registry_add_path
+gst_default_registry_scan_paths
+gst_default_registry_find_plugin
+gst_default_registry_get_plugin_list
+gst_default_registry_feature_filter
 <SUBSECTION Standard>
 GstRegistryClass
 GST_REGISTRY
@@ -1607,24 +1619,6 @@ gst_registry_return_get_type
 
 
 <SECTION>
-<FILE>gstregistrypool</FILE>
-<TITLE>GstRegistryPool</TITLE>
-gst_registry_pool_list
-gst_registry_pool_add
-gst_registry_pool_remove
-gst_registry_pool_add_plugin
-gst_registry_pool_load_all
-gst_registry_pool_plugin_filter
-gst_registry_pool_feature_filter
-gst_registry_pool_plugin_list
-gst_registry_pool_feature_list
-gst_registry_pool_find_plugin
-gst_registry_pool_find_feature
-gst_registry_pool_get_prefered
-</SECTION>
-
-
-<SECTION>
 <FILE>gststructure</FILE>
 <TITLE>GstStructure</TITLE>
 GstStructure
@@ -1904,17 +1898,6 @@ gst_alloc_trace_flags_get_type
 
 
 <SECTION>
-<FILE>gsttrashstack</FILE>
-<TITLE>GstTrashStack</TITLE>
-GstTrashStack
-GstTrashStackElement
-gst_vgpointer
-gst_vgulong
-SMP_LOCK
-</SECTION>
-
-
-<SECTION>
 <FILE>gsttypefind</FILE>
 <TITLE>GstTypeFind</TITLE>
 GstTypeFind
index ca8c2fb..7baef0a 100644 (file)
@@ -129,7 +129,6 @@ Flags for an object
 </para>
 
 @GST_OBJECT_DISPOSING: 
-@GST_OBJECT_DESTROYED: 
 @GST_OBJECT_FLOATING: 
 @GST_OBJECT_FLAG_LAST: subclasses can add additional flags starting from this flag
 
@@ -218,14 +217,6 @@ Acquire a reference to the mutex of this object.
 @obj: Object to get the mutex of.
 
 
-<!-- ##### MACRO GST_OBJECT_IS_DESTROYED ##### -->
-<para>
-
-</para>
-
-@obj: 
-
-
 <!-- ##### MACRO GST_OBJECT_IS_DISPOSING ##### -->
 <para>
 
index 6752244..3e1cf62 100644 (file)
@@ -285,3 +285,20 @@ to get a list of plugins that match certain criteria.
 @name: 
 
 
+<!-- ##### FUNCTION gst_plugin_load_by_name ##### -->
+<para>
+
+</para>
+
+@name: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gst_plugin_list_free ##### -->
+<para>
+
+</para>
+
+@list: 
+
+
index 0f433cd..04fc047 100644 (file)
@@ -96,3 +96,20 @@ to get a list of pluginfeature that match certain criteria.
 @Returns: 
 
 
+<!-- ##### FUNCTION gst_plugin_feature_load ##### -->
+<para>
+
+</para>
+
+@feature: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gst_plugin_feature_list_free ##### -->
+<para>
+
+</para>
+
+@list: 
+
+
index 86e1b17..013bed2 100644 (file)
@@ -4,13 +4,8 @@ API:
 
   - MAKE A DOCUMENT THAT LISTS ALL API CHANGES AND HOW TO DEAL WITH THEM
 
- - GstElementState should be a real enum, not something that looks like flags
-   changing state can be done with ++ and -- instead of >> and <<
-
  - replace object/structure set/get macros with actual functions.
 
- - events should all use GstStructure
-
  - reorganize headers (split app headers vs plugin headers maybe)
    while at it also make sure to only allow including of the main headers like
    glib, so we can freely shuffle stuff around
@@ -37,31 +32,17 @@ API:
    (Though the main reason for identities atm is to be able to connect without
     plugging - Company)
 
- - remove float support from dparams
-
- - dparams: should be converted into some kind of special pad and
-   object property combination.
-
  - read/write locks on buffers
 
  - be able to send events to unlinked pads (bug #114442)
 
  - caps should have a flag on fields to indicate that the field is optional
 
- - deprecate gst_buffer_merge() and replace with a function that takes
-   ownership of the buffers.  (bug #136408)
-
  - fakesrc handoff should be changed to return a GstData * or carry a
     GstData **, wo the user can provide own buffers and events.
 
- - remove GST_OBJECT_DESTROYED()
-
- - fix plugin code to load plugins with RTLD_LOCAL
-
  - don't install gstmarshal.h
 
- - remove unnecessary headers from gst.h (gstqueue.h in particular)
-
  - make sure GstClockTime is used wherever it should (e.g. gstplay)
 
  - make gst_bin_get_list virtual so subclasses can override it (e.g.
@@ -77,8 +58,6 @@ API:
    24 fps pulled down to 60 and straight video, etc) and make sure our
    video stream descriptions make sense.
 
- - remove GstMemChunk
-
  - do an audit to remove GtkObject-isms from gtk-1.2
 
 caps:
index 10a7e56..60d334b 100644 (file)
@@ -88,7 +88,6 @@ libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
        gstinfo.c               \
        gstinterface.c          \
        gstiterator.c           \
-       gstmemchunk.c           \
        gstmessage.c            \
        gstminiobject.c         \
        gstpad.c                \
@@ -106,7 +105,6 @@ libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
        gsttagsetter.c  \
        gsttask.c               \
        $(GST_TRACE_SRC)        \
-       gsttrashstack.c         \
        gsttypefind.c           \
        gsttypefindfactory.c    \
        $(GST_URI_SRC)          \
@@ -166,7 +164,6 @@ gst_headers =                       \
        gstinterface.h          \
        gstiterator.h           \
        gstmacros.h             \
-       gstmemchunk.h           \
        gstmessage.h            \
        gstminiobject.h         \
        gstpad.h                \
@@ -182,7 +179,6 @@ gst_headers =                       \
        gsttagsetter.h  \
        gsttask.h               \
        gsttrace.h              \
-       gsttrashstack.h         \
        gsttypefind.h           \
        gsttypefindfactory.h    \
        gsturi.h                \
index 9bcffe0..5f42cd4 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -919,7 +919,7 @@ gst_deinit (void)
   gst_object_unref (clock);
   gst_object_unref (clock);
 
-  gst_registry_deinit ();
+  _gst_registry_cleanup ();
 
   gst_initialized = FALSE;
   GST_INFO ("deinitialized GStreamer");
index 1067ffd..c1a3b34 100644 (file)
--- a/gst/gst.h
+++ b/gst/gst.h
@@ -42,7 +42,6 @@
 #include <gst/gstinfo.h>
 #include <gst/gstinterface.h>
 #include <gst/gstiterator.h>
-#include <gst/gstmarshal.h>
 #include <gst/gstmessage.h>
 #include <gst/gstminiobject.h>
 #include <gst/gstobject.h>
@@ -51,6 +50,7 @@
 #include <gst/gstplugin.h>
 #include <gst/gstquery.h>
 #include <gst/gstqueryutils.h>
+#include <gst/gstregistry.h>
 #include <gst/gststructure.h>
 #include <gst/gstsystemclock.h>
 #include <gst/gsttaglist.h>
@@ -66,7 +66,6 @@
 #include <gst/gstxml.h>
 
 #include <gst/gstparse.h>
-#include <gst/gstregistry.h>
 
 /* API compatibility stuff */
 #include <gst/gstcompat.h>
index 96058cb..de2c119 100644 (file)
@@ -39,6 +39,7 @@
 #include "gst_private.h"
 
 #include "gstchildproxy.h"
+#include "gstmarshal.h"
 #include <gobject/gvaluecollector.h>
 
 /* signals */
index 04d950d..acb3589 100644 (file)
@@ -40,7 +40,6 @@
 
 #include "gstclock.h"
 #include "gstinfo.h"
-#include "gstmemchunk.h"
 #include "gstutils.h"
 
 #ifndef GST_DISABLE_TRACE
@@ -60,8 +59,6 @@ enum
   ARG_EVENT_DIFF
 };
 
-static GstMemChunk *_gst_clock_entries_chunk;
-
 static void gst_clock_class_init (GstClockClass * klass);
 static void gst_clock_init (GstClock * clock);
 static void gst_clock_finalize (GObject * object);
@@ -83,7 +80,7 @@ gst_clock_entry_new (GstClock * clock, GstClockTime time,
 {
   GstClockEntry *entry;
 
-  entry = gst_mem_chunk_alloc (_gst_clock_entries_chunk);
+  entry = g_malloc0 (sizeof (GstClockEntry));
 #ifndef GST_DISABLE_TRACE
   gst_alloc_trace_new (_gst_clock_entry_trace, entry);
 #endif
@@ -130,7 +127,6 @@ _gst_clock_id_free (GstClockID id)
 #ifndef GST_DISABLE_TRACE
   gst_alloc_trace_free (_gst_clock_entry_trace, id);
 #endif
-  gst_mem_chunk_free (_gst_clock_entries_chunk, id);
 }
 
 /**
@@ -462,9 +458,6 @@ gst_clock_class_init (GstClockClass * klass)
   if (!g_thread_supported ())
     g_thread_init (NULL);
 
-  _gst_clock_entries_chunk = gst_mem_chunk_new ("GstClockEntries",
-      sizeof (GstClockEntry), sizeof (GstClockEntry) * 32, G_ALLOC_AND_FREE);
-
 #ifndef GST_DISABLE_TRACE
   _gst_clock_entry_trace =
       gst_alloc_trace_register (GST_CLOCK_ENTRY_TRACE_NAME);
index b336eb6..7f6f8ed 100644 (file)
@@ -118,6 +118,16 @@ gst_mini_object_init (GTypeInstance * instance, gpointer klass)
   mini_object->refcount = 1;
 }
 
+/**
+ * gst_mini_object_new:
+ * @type: the GType of the mini-object to create
+ *
+ * Creates a new mini-object of the desired type.
+ *
+ * MT safe
+ *
+ * Returns: the new mini-object.
+ */
 GstMiniObject *
 gst_mini_object_new (GType type)
 {
@@ -154,6 +164,16 @@ gst_mini_object_new (GType type)
   return mini_object;
 }
 
+/**
+ * gst_mini_object_copy:
+ * @mini_object: the mini-object to copy
+ *
+ * Creates a copy of the mini-object.
+ *
+ * MT safe
+ *
+ * Returns: the new mini-object.
+ */
 GstMiniObject *
 gst_mini_object_copy (const GstMiniObject * mini_object)
 {
@@ -164,6 +184,19 @@ gst_mini_object_copy (const GstMiniObject * mini_object)
   return mo_class->copy (mini_object);
 }
 
+/**
+ * gst_mini_object_is_writable:
+ * @mini_object: the mini-object to check
+ *
+ * Checks if a mini-object is writable.  A mini-object is writable
+ * if the reference count is one and the GST_MINI_OBJECT_FLAG_READONLY
+ * flag is not set.  Modification of a mini-object should only be
+ * done after verifying that it is writable.
+ * 
+ * MT safe
+ *
+ * Returns: TRUE if the object is writable.
+ */
 gboolean
 gst_mini_object_is_writable (const GstMiniObject * mini_object)
 {
@@ -171,6 +204,17 @@ gst_mini_object_is_writable (const GstMiniObject * mini_object)
       ((mini_object->flags & GST_MINI_OBJECT_FLAG_READONLY) == 0);
 }
 
+/**
+ * gst_mini_object_make_writable:
+ * @mini_object: the mini-object to make writable
+ *
+ * Checks if a mini-object is writable.  If not, a copy is made and
+ * the copy is returned.
+ *
+ * MT safe
+ *
+ * Returns: a mini-object (possibly a duplicate) that it writable.
+ */
 GstMiniObject *
 gst_mini_object_make_writable (GstMiniObject * mini_object)
 {
@@ -186,6 +230,14 @@ gst_mini_object_make_writable (GstMiniObject * mini_object)
   return ret;
 }
 
+/**
+ * gst_mini_object_ref:
+ * @mini_object: the mini-object
+ *
+ * Increase the reference count of the mini-object.
+ *
+ * Returns: the mini-object.
+ */
 GstMiniObject *
 gst_mini_object_ref (GstMiniObject * mini_object)
 {
@@ -237,6 +289,13 @@ gst_mini_object_free (GstMiniObject * mini_object)
   }
 }
 
+/**
+ * gst_mini_object_unref:
+ * @mini_object: the mini-object
+ *
+ * Decreases the reference count of the mini-object, possibly freeing
+ * the mini-object.
+ */
 void
 gst_mini_object_unref (GstMiniObject * mini_object)
 {
@@ -255,6 +314,15 @@ gst_mini_object_unref (GstMiniObject * mini_object)
   }
 }
 
+/**
+ * gst_mini_object_replace:
+ * @olddata: pointer to a pointer to a mini-object to be replaced
+ * @newdata: pointer to new mini-object
+ *
+ * Modifies a pointer to point to a new mini-object.  The modification
+ * is done atomically, and the reference counts are updated correctly.
+ * Either @newdata and the value pointed to by @olddata may be NULL.
+ */
 void
 gst_mini_object_replace (GstMiniObject ** olddata, GstMiniObject * newdata)
 {
index ed53ece..712763b 100644 (file)
@@ -416,7 +416,6 @@ gst_object_dispose (GObject * object)
   GST_CAT_LOG_OBJECT (GST_CAT_REFCOUNTING, object, "dispose");
 
   GST_LOCK (object);
-  GST_FLAG_SET (GST_OBJECT (object), GST_OBJECT_DESTROYED);
   GST_OBJECT_PARENT (object) = NULL;
   GST_UNLOCK (object);
 
index 30eea79..3f6cb67 100644 (file)
@@ -50,7 +50,6 @@ GST_EXPORT GType _gst_object_type;
 typedef enum
 {
   GST_OBJECT_DISPOSING   = 0,
-  GST_OBJECT_DESTROYED   = 1,
   GST_OBJECT_FLOATING,
 
   GST_OBJECT_FLAG_LAST   = 4
@@ -76,7 +75,6 @@ typedef enum
 #define GST_FLAG_UNSET(obj,flag)        G_STMT_START{ (GST_FLAGS (obj) &= ~(1<<(flag))); }G_STMT_END
 
 #define GST_OBJECT_IS_DISPOSING(obj)    (GST_FLAG_IS_SET (obj, GST_OBJECT_DISPOSING))
-#define GST_OBJECT_IS_DESTROYED(obj)    (GST_FLAG_IS_SET (obj, GST_OBJECT_DESTROYED))
 #define GST_OBJECT_IS_FLOATING(obj)     (GST_FLAG_IS_SET (obj, GST_OBJECT_FLOATING))
 
 typedef struct _GstObject GstObject;
index 2fd410c..3ce1ce4 100644 (file)
@@ -41,6 +41,7 @@
 #include "gstinfo.h"
 #include "gstfilter.h"
 #include "gstregistry.h"
+#include "gstmacros.h"
 
 
 #define GST_CAT_DEFAULT GST_CAT_PLUGIN_LOADING
index ec6e1d1..3dc4729 100644 (file)
@@ -28,8 +28,6 @@
 
 #include <time.h> /* time_t */
 #include <gmodule.h>
-#include <gst/gstpluginfeature.h>
-#include <gst/gstmacros.h>
 #include <gst/gstobject.h>
 
 G_BEGIN_DECLS
@@ -83,6 +81,7 @@ struct _GstPluginDesc {
 struct _GstPlugin {
   GstObject       object;
 
+  /*< private >*/
   GstPluginDesc        desc;
 
   GstPluginDesc *orig_desc;
@@ -102,6 +101,7 @@ struct _GstPlugin {
 struct _GstPluginClass {
   GstObjectClass  object_class;
 
+  /*< private >*/
 };
 
 
index ebae1f1..c5ea3f6 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "gst_private.h"
 #include "gstquery.h"
-#include "gstmemchunk.h"
 #include "gstenumtypes.h"
 
 GST_DEBUG_CATEGORY_STATIC (gst_query_debug);
@@ -52,8 +51,6 @@ static GHashTable *_nick_to_query = NULL;
 static GHashTable *_query_type_to_nick = NULL;
 static guint32 _n_values = 1;   /* we start from 1 because 0 reserved for NONE */
 
-static GstMemChunk *chunk;
-
 static GstQueryTypeDefinition standard_definitions[] = {
   {GST_QUERY_POSITION, "position", "Current Position"},
   {GST_QUERY_LATENCY, "latency", "Latency"},
@@ -92,9 +89,6 @@ _gst_query_initialize (void)
   g_static_mutex_unlock (&mutex);
 
   gst_query_get_type ();
-
-  chunk = gst_mem_chunk_new ("GstQueryChunk", sizeof (GstQuery),
-      sizeof (GstQuery) * 20, 0);
 }
 
 GType
index 4e419c8..5827605 100644 (file)
@@ -767,7 +767,7 @@ gst_registry_get_feature_list_by_plugin (GstRegistry * registry,
 }
 
 void
-gst_registry_deinit ()
+_gst_registry_cleanup ()
 {
   if (!_gst_registry_default)
     return;
index 599dc21..79c7a51 100644 (file)
@@ -25,6 +25,7 @@
 #define __GST_REGISTRY_H__
 
 #include <gst/gstplugin.h>
+#include <gst/gstpluginfeature.h>
 
 G_BEGIN_DECLS
 
@@ -101,7 +102,7 @@ gboolean            gst_registry_xml_write_cache    (GstRegistry * registry, const char *lo
 void                   gst_registry_scan_paths         (GstRegistry *registry);
 void                   _gst_registry_remove_cache_plugins (GstRegistry *registry);
 
-void                   gst_registry_deinit             (void);
+void                    _gst_registry_cleanup           (void);
 
 #define gst_default_registry_add_plugin(plugin) \
   gst_registry_add_plugin (gst_registry_get_default(), plugin)