1 /* GStreamer
2 * Copyright (C) 2017, Collabora Ltd.
3 * Author:Justin Kim <justin.kim@collabora.com>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24
25 #include "gstsrtelements.h"
26 #include "gstsrtsrc.h"
27 #include "gstsrtsink.h"
28
29 #ifndef GST_REMOVE_DEPRECATED
30
31 #define GST_TYPE_SRT_CLIENT_SRC gst_srt_client_src_get_type()
32 #define GST_TYPE_SRT_SERVER_SRC gst_srt_server_src_get_type()
33
34 #define GST_TYPE_SRT_CLIENT_SINK gst_srt_client_sink_get_type()
35 #define GST_TYPE_SRT_SERVER_SINK gst_srt_server_sink_get_type()
36
37 typedef GstSRTSrc GstSRTClientSrc;
38 typedef GstSRTSrcClass GstSRTClientSrcClass;
39
40 typedef GstSRTSrc GstSRTServerSrc;
41 typedef GstSRTSrcClass GstSRTServerSrcClass;
42
43 typedef GstSRTSink GstSRTClientSink;
44 typedef GstSRTSinkClass GstSRTClientSinkClass;
45
46 typedef GstSRTSink GstSRTServerSink;
47 typedef GstSRTSinkClass GstSRTServerSinkClass;
48
49 static GType gst_srt_client_src_get_type (void);
50 static GType gst_srt_server_src_get_type (void);
51 static GType gst_srt_client_sink_get_type (void);
52 static GType gst_srt_server_sink_get_type (void);
53
54 G_DEFINE_TYPE (GstSRTClientSrc, gst_srt_client_src, GST_TYPE_SRT_SRC);
55 GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (srtclientsrc, "srtclientsrc",
56 GST_RANK_NONE, GST_TYPE_SRT_CLIENT_SRC, srt_element_init (plugin));
57
58 G_DEFINE_TYPE (GstSRTServerSrc, gst_srt_server_src, GST_TYPE_SRT_SRC);
59 GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (srtserversrc, "srtserversrc",
60 GST_RANK_NONE, GST_TYPE_SRT_SERVER_SRC, srt_element_init (plugin));
61
62 G_DEFINE_TYPE (GstSRTClientSink, gst_srt_client_sink, GST_TYPE_SRT_SINK);
63 GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (srtclientsink, "srtclientsink",
64 GST_RANK_NONE, GST_TYPE_SRT_CLIENT_SINK, srt_element_init (plugin));
65
66 G_DEFINE_TYPE (GstSRTServerSink, gst_srt_server_sink, GST_TYPE_SRT_SINK);
67 GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (srtserversink, "srtserversink",
68 GST_RANK_NONE, GST_TYPE_SRT_SERVER_SINK, srt_element_init (plugin));
69
70 static void
gst_srt_client_src_init(GstSRTClientSrc * src)71 gst_srt_client_src_init (GstSRTClientSrc * src)
72 {
73 }
74
75 static void
gst_srt_client_src_class_init(GstSRTClientSrcClass * klass)76 gst_srt_client_src_class_init (GstSRTClientSrcClass * klass)
77 {
78 }
79
80 static void
gst_srt_server_src_init(GstSRTServerSrc * src)81 gst_srt_server_src_init (GstSRTServerSrc * src)
82 {
83 }
84
85 static void
gst_srt_server_src_class_init(GstSRTServerSrcClass * klass)86 gst_srt_server_src_class_init (GstSRTServerSrcClass * klass)
87 {
88 }
89
90 static void
gst_srt_client_sink_init(GstSRTClientSink * sink)91 gst_srt_client_sink_init (GstSRTClientSink * sink)
92 {
93 }
94
95 static void
gst_srt_client_sink_class_init(GstSRTClientSinkClass * klass)96 gst_srt_client_sink_class_init (GstSRTClientSinkClass * klass)
97 {
98 }
99
100 static void
gst_srt_server_sink_init(GstSRTServerSink * sink)101 gst_srt_server_sink_init (GstSRTServerSink * sink)
102 {
103 }
104
105 static void
gst_srt_server_sink_class_init(GstSRTServerSinkClass * klass)106 gst_srt_server_sink_class_init (GstSRTServerSinkClass * klass)
107 {
108 }
109
110 #endif
111