rtp: Add GstRTPProfile enum
authorSebastian Dröge <sebastian@centricular.com>
Wed, 20 May 2015 10:36:30 +0000 (13:36 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 20 May 2015 12:41:06 +0000 (15:41 +0300)
gst-libs/gst/rtp/Makefile.am
gst-libs/gst/rtp/gstrtpdefs.h [new file with mode: 0644]
gst-libs/gst/rtp/rtp.h

index bec9524aabad722fc6595ad4cc64256456da2ae2..3091e79d394e69d73a86a44f1986bfac12fb1556 100644 (file)
@@ -2,6 +2,7 @@ libgstrtpincludedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/rtp
 
 libgstrtpinclude_HEADERS = \
                           rtp.h \
+                          gstrtpdefs.h \
                           gstrtpbuffer.h \
                           gstrtcpbuffer.h \
                           gstrtppayloads.h \
@@ -20,10 +21,26 @@ libgstrtp_@GST_API_VERSION@_la_SOURCES = gstrtpbuffer.c \
                                gstrtpbasepayload.c \
                                gstrtpbasedepayload.c
 
+built_sources = gstrtp-enumtypes.c
+built_headers = gstrtp-enumtypes.h
+
 libgstrtp_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
 libgstrtp_@GST_API_VERSION@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS)
 libgstrtp_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
 
+nodist_libgstrtp_@GST_API_VERSION@_la_SOURCES = $(built_sources)
+nodist_libgstrtpinclude_HEADERS = gstrtp-enumtypes.h
+
+BUILT_SOURCES = $(built_headers) $(built_sources)
+CLEANFILES = $(BUILT_SOURCES)
+
+glib_gen_prefix = __gst_rtp
+glib_enum_define = gst_rtp
+glib_enum_headers = $(libgstrtpinclude_HEADERS)
+glib_gen_basename = gstrtp
+
+include $(top_srcdir)/common/gst-glib-gen.mak
+
 if HAVE_INTROSPECTION
 BUILT_GIRSOURCES = GstRtp-@GST_API_VERSION@.gir
 
diff --git a/gst-libs/gst/rtp/gstrtpdefs.h b/gst-libs/gst/rtp/gstrtpdefs.h
new file mode 100644 (file)
index 0000000..350f1c2
--- /dev/null
@@ -0,0 +1,49 @@
+/* GStreamer
+ * Copyright (C) <2005> Philippe Khalaf <burger@speedy.org>
+ *               <2005> Wim Taymans <wim@fluendo.com>
+ *
+ * gstrtpbuffer.h: various helper functions to manipulate buffers
+ *     with RTP payload.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef __GST_RTPDEFS_H__
+#define __GST_RTPDEFS_H__
+
+#include <gst/gst.h>
+
+/**
+ * GstRTPProfile:
+ * @GST_RTP_PROFILE_UNKNOWN: invalid profile
+ * @GST_RTP_PROFILE_AVP: the Audio/Visual profile (RFC 3551)
+ * @GST_RTP_PROFILE_SAVP: the secure Audio/Visual profile (RFC 3711)
+ * @GST_RTP_PROFILE_AVPF: the Audio/Visual profile with feedback (RFC 4585)
+ * @GST_RTP_PROFILE_SAVPF: the secure Audio/Visual profile with feedback (RFC 5124)
+ *
+ * The transfer profile to use.
+ *
+ * Since: 1.6
+ */
+typedef enum {
+  GST_RTP_PROFILE_UNKNOWN = 0,
+  GST_RTP_PROFILE_AVP,
+  GST_RTP_PROFILE_SAVP,
+  GST_RTP_PROFILE_AVPF,
+  GST_RTP_PROFILE_SAVPF
+} GstRTPProfile;
+
+#endif /* __GST_RTPDEFS_H__ */
index f0f8a71e7c699bd685a40fb195ce7a6cb1c0f0e8..546d4aef38ec86eeb3296c2caf9c6f5c64f7efe8 100644 (file)
@@ -22,6 +22,7 @@
 #ifndef __GST_RTP_H__
 #define __GST_RTP_H__
 
+#include <gst/rtp/gstrtpdefs.h>
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/rtp/gstrtcpbuffer.h>
 #include <gst/rtp/gstrtppayloads.h>
@@ -29,5 +30,6 @@
 #include <gst/rtp/gstrtpbaseaudiopayload.h>
 #include <gst/rtp/gstrtpbasepayload.h>
 #include <gst/rtp/gstrtpbasedepayload.h>
+#include <gst/rtp/gstrtp-enumtypes.h>
 
 #endif /* __GST_RTP_H__ */