Move registry backend API to private headers where we can. Add fixme-0.11 comments...
authorStefan Kost <ensonic@users.sourceforge.net>
Fri, 7 Mar 2008 11:12:59 +0000 (11:12 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Fri, 7 Mar 2008 11:12:59 +0000 (11:12 +0000)
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstconfig.h.in:
* gst/gstregistry.h:
* gst/gstregistrybinary.c:
* win32/common/gstconfig.h:
Move registry backend API to private headers where we can. Add
fixme-0.11 comments for the others. Add stubs for the xml backend when
using the binary to ensure they functions exists (they should not be
used though). Fixes #520756.

ChangeLog
common
configure.ac
gst/gst_private.h
gst/gstconfig.h.in
gst/gstregistry.h
gst/gstregistrybinary.c
win32/common/gstconfig.h

index 561d12d..56c5fd7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2008-03-07  Stefan Kost  <ensonic@users.sf.net>
+
+       * configure.ac:
+       * gst/gst_private.h:
+       * gst/gstconfig.h.in:
+       * gst/gstregistry.h:
+       * gst/gstregistrybinary.c:
+       * win32/common/gstconfig.h:
+         Move registry backend API to private headers where we can. Add
+         fixme-0.11 comments for the others. Add stubs for the xml backend when
+         using the binary to ensure they functions exists (they should not be
+         used though). Fixes #520756.
+
 2008-03-04  Jan Schmidt  <jan.schmidt@sun.com>
 
        * configure.ac:
diff --git a/common b/common
index 081a00a..e02bd43 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 081a00a5e25d069b15bb7f6092c8f951462cd8eb
+Subproject commit e02bd43fe6b9e45536eccbf5b7a5f9eae62030fd
index 3271d30..3c302dd 100644 (file)
@@ -195,16 +195,11 @@ AC_ARG_ENABLE(binary-registry,
   [USE_BINARY_REGISTRY=no]) dnl Default value
 
 if test "x$USE_BINARY_REGISTRY" = xyes; then
-  dnl for gstconfig.h:
-  GST_USING_BINARY_REGISTRY_DEFINE="#define GST_USING_BINARY_REGISTRY"
   dnl for config.h:
   AC_DEFINE(USE_BINARY_REGISTRY, 1,
     [Define if we should use binary registry instead xml registry])
-else
-  GST_USING_BINARY_REGISTRY_DEFINE="#undef GST_USING_BINARY_REGISTRY"
 fi
 AM_CONDITIONAL(USE_BINARY_REGISTRY, test "x$USE_BINARY_REGISTRY" = "xyes")
-AC_SUBST(GST_USING_BINARY_REGISTRY_DEFINE)
 
 dnl *** checks for platform ***
 
index fc532bb..26f51cf 100644 (file)
@@ -72,6 +72,17 @@ void _priv_gst_registry_cleanup (void);
 gboolean  priv_gst_structure_append_to_gstring (const GstStructure * structure,
                                                 GString            * s);
 
+/* registry cache backends */
+/* FIXME 0.11: use priv_ prefix */
+#ifdef USE_BINARY_REGISTRY
+gboolean               gst_registry_binary_read_cache  (GstRegistry * registry, const char *location);
+gboolean               gst_registry_binary_write_cache (GstRegistry * registry, const char *location);
+/* FIXME 0.11: this is in registry.h for backwards compatibility
+#else 
+gboolean               gst_registry_xml_read_cache     (GstRegistry * registry, const char *location);
+gboolean               gst_registry_xml_write_cache    (GstRegistry * registry, const char *location);
+*/
+#endif
 
 /*** debugging categories *****************************************************/
 
index b886b20..e14c154 100644 (file)
  */
 @GST_DISABLE_REGISTRY_DEFINE@
 
-@GST_USING_BINARY_REGISTRY_DEFINE@
-
 /**
  * GST_DISABLE_XML:
  *
index 00a518e..682393f 100644 (file)
@@ -111,13 +111,8 @@ GstPlugin *                gst_registry_lookup             (GstRegistry *registry, const char *filename
 GstPluginFeature *     gst_registry_lookup_feature     (GstRegistry *registry, const char *name);
 
 /* FIXME 0.11: do we really want to export these? (If yes, we should add a GError argument) */
-#ifdef GST_USING_BINARY_REGISTRY
-gboolean               gst_registry_binary_read_cache  (GstRegistry * registry, const char *location);
-gboolean               gst_registry_binary_write_cache (GstRegistry * registry, const char *location);
-#else 
 gboolean               gst_registry_xml_read_cache     (GstRegistry * registry, const char *location);
 gboolean               gst_registry_xml_write_cache    (GstRegistry * registry, const char *location);
-#endif
 
 /* convinience defines for the default registry */
 
index 8fdce5b..23c3218 100644 (file)
@@ -977,3 +977,18 @@ Error:
   }
   return res;
 }
+
+
+/* FIXME 0.11: these are here for backwards compatibility */
+
+gboolean
+gst_registry_xml_read_cache (GstRegistry * registry, const char *location)
+{
+  return FALSE;
+}
+
+gboolean
+gst_registry_xml_write_cache (GstRegistry * registry, const char *location)
+{
+  return FALSE;
+}
index b30a611..e92bcd5 100644 (file)
@@ -94,8 +94,6 @@
 /* DOES NOT WORK */
 /* #undef GST_DISABLE_REGISTRY */
 
-/* #undef GST_USING_BINARY_REGISTRY */
-
 /* DOES NOT WORK */
 /* #undef GST_DISABLE_ENUMTYPES */