+2005-07-05 Wim Taymans <wim@fluendo.com>
+
+ * configure.ac:
+ * libs/gst/dataprotocol/Makefile.am:
+ * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_validate_packet):
+ * libs/gst/dataprotocol/dataprotocol.h:
+ * pkgconfig/Makefile.am:
+ * pkgconfig/gstreamer-dataprotocol-uninstalled.pc.in:
+ * pkgconfig/gstreamer-dataprotocol.pc.in:
+ Ported dataprotol to 0.9.
+ Added pkgconfig files.
+
2005-07-05 Andy Wingo <wingo@pobox.com>
* gst/base/gstbasetransform.c (gst_base_transform_setcaps):
pkgconfig/gstreamer-base-uninstalled.pc
pkgconfig/gstreamer-control.pc
pkgconfig/gstreamer-control-uninstalled.pc
+pkgconfig/gstreamer-dataprotocol.pc
+pkgconfig/gstreamer-dataprotocol-uninstalled.pc
gstreamer.spec,
echo "$infomessages", infomessages="$infomessages"
)
-plugin_LTLIBRARIES = libgstdataprotocol.la
+lib_LTLIBRARIES = libgstdataprotocol-@GST_MAJORMINOR@.la
-libgstdataprotocol_includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/dataprotocol
-libgstdataprotocol_include_HEADERS = \
+libgstdataprotocol_@GST_MAJORMINOR@_includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/dataprotocol
+libgstdataprotocol_@GST_MAJORMINOR@_include_HEADERS = \
dataprotocol.h
noinst_HEADERS = dp-private.h
-libgstdataprotocol_la_SOURCES = \
+libgstdataprotocol_@GST_MAJORMINOR@_la_SOURCES = \
dataprotocol.c
# remove GST_ENABLE_NEW when dataprotocol has been declared API-stable
-libgstdataprotocol_la_CFLAGS = $(GST_OBJ_CFLAGS) -I$(top_srcdir)/libs -DGST_ENABLE_NEW
-libgstdataprotocol_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-libgstdataprotocol_la_LIBADD = $(GST_OBJ_LIBS)
+libgstdataprotocol_@GST_MAJORMINOR@_la_CFLAGS = $(GST_OBJ_CFLAGS) -I$(top_srcdir)/libs -DGST_ENABLE_NEW
+libgstdataprotocol_@GST_MAJORMINOR@_la_LDFLAGS = @GST_LIB_LDFLAGS@
+libgstdataprotocol_@GST_MAJORMINOR@_la_LIBADD = $(GST_OBJ_LIBS)
*
* Initialize GStreamer Data Protocol library.
*
- * Should be called before using these functions; either from source linking
- * to this source file or from plugin_init.
+ * Should be called before using these functions from source linking
+ * to this source file.
*/
void
gst_dp_init (void)
return TRUE;
}
-
-/*** PLUGIN STUFF ***/
-static gboolean
-plugin_init (GstPlugin * plugin)
-{
- gst_dp_init ();
-
- return TRUE;
-}
-
-GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
- GST_VERSION_MINOR,
- "gstdataprotocol",
- "a data protocol to serialize buffers, caps and events",
- plugin_init, VERSION, GST_LICENSE, GST_PACKAGE, GST_ORIGIN)
* Boston, MA 02111-1307, USA.
*/
-#ifdef GST_ENABLE_NEW
#ifndef __GST_DATA_PROTOCOL_H__
#define __GST_DATA_PROTOCOL_H__
GST_DP_PAYLOAD_EVENT_NONE = 64,
} GstDPPayloadType;
+void gst_dp_init (void);
+
/* payload information from header */
guint32 gst_dp_header_payload_length (const guint8 * header);
GstDPPayloadType
G_END_DECLS
#endif /* __GST_DATA_PROTOCOL_H__ */
-#endif /* GST_ENABLE_NEW */
pcfiles = \
gstreamer-@GST_MAJORMINOR@.pc \
gstreamer-base-@GST_MAJORMINOR@.pc \
- gstreamer-control-@GST_MAJORMINOR@.pc
+ gstreamer-control-@GST_MAJORMINOR@.pc \
+ gstreamer-dataprotocol-@GST_MAJORMINOR@.pc
pcfiles_uninstalled = \
gstreamer-@GST_MAJORMINOR@-uninstalled.pc \
gstreamer-base-@GST_MAJORMINOR@-uninstalled.pc \
- gstreamer-control-@GST_MAJORMINOR@-uninstalled.pc
+ gstreamer-control-@GST_MAJORMINOR@-uninstalled.pc \
+ gstreamer-dataprotocol-@GST_MAJORMINOR@-uninstalled.pc
all-local: $(pcfiles) $(pcfiles_uninstalled)
gstreamer-base.pc.in \
gstreamer-base-uninstalled.pc.in \
gstreamer-control.pc.in \
- gstreamer-control-uninstalled.pc.in
+ gstreamer-control-uninstalled.pc.in \
+ gstreamer-dataprotocol.pc.in \
+ gstreamer-dataprotocol-uninstalled.pc.in
CLEANFILES = $(pcfiles) $(pcfiles_uninstalled)
--- /dev/null
+# the standard variables don't make sense for an uninstalled copy
+prefix=
+exec_prefix=
+libdir=${pcfiledir}/../libs
+includedir=${pcfiledir}/..
+gstdataprotocol_libs=-lgstdataprotocol-@GST_MAJORMINOR@
+
+Name: GStreamer dataprotocol library, uninstalled
+Description: Dataprotocol for plug-ins
+Requires: gstreamer-@GST_MAJORMINOR@ = @VERSION@
+Version: @VERSION@
+
+Libs: ${libdir}/gst/dataprotocol/libgstdataprotocol-@GST_MAJORMINOR@.la
+Cflags: -I${includedir} -I${includedir}/libs @GST_PKG_CFLAGS@
--- /dev/null
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/gstreamer-@GST_MAJORMINOR@
+
+Name: GStreamer dataprotocol library
+Description: Dataprotocol for plug-ins
+Requires: gstreamer-@GST_MAJORMINOR@
+Version: @VERSION@
+Libs: -L${libdir} -lgstdataprotocol-@GST_MAJORMINOR@
+Cflags: -I${includedir} @GST_PKG_CFLAGS@