From bfc13c8e51862662804dcc9d14bf3a7f9f0027bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 20 May 2015 13:36:30 +0300 Subject: [PATCH] rtp: Add GstRTPProfile enum --- gst-libs/gst/rtp/Makefile.am | 17 +++++++++++++++ gst-libs/gst/rtp/gstrtpdefs.h | 49 +++++++++++++++++++++++++++++++++++++++++++ gst-libs/gst/rtp/rtp.h | 2 ++ 3 files changed, 68 insertions(+) create mode 100644 gst-libs/gst/rtp/gstrtpdefs.h diff --git a/gst-libs/gst/rtp/Makefile.am b/gst-libs/gst/rtp/Makefile.am index bec9524..3091e79 100644 --- a/gst-libs/gst/rtp/Makefile.am +++ b/gst-libs/gst/rtp/Makefile.am @@ -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 index 0000000..350f1c2 --- /dev/null +++ b/gst-libs/gst/rtp/gstrtpdefs.h @@ -0,0 +1,49 @@ +/* GStreamer + * Copyright (C) <2005> Philippe Khalaf + * <2005> Wim Taymans + * + * 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 + +/** + * 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__ */ diff --git a/gst-libs/gst/rtp/rtp.h b/gst-libs/gst/rtp/rtp.h index f0f8a71..546d4ae 100644 --- a/gst-libs/gst/rtp/rtp.h +++ b/gst-libs/gst/rtp/rtp.h @@ -22,6 +22,7 @@ #ifndef __GST_RTP_H__ #define __GST_RTP_H__ +#include #include #include #include @@ -29,5 +30,6 @@ #include #include #include +#include #endif /* __GST_RTP_H__ */ -- 2.7.4