rtp: Add GstRTPProfile enum

This commit is contained in:
Sebastian Dröge 2015-05-20 13:36:30 +03:00
parent 2511bca11c
commit bfc13c8e51
3 changed files with 68 additions and 0 deletions

View 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

View file

@ -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__ */

View 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__ */