• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  * Copyright (C) 2018 Matthew Waters <matthew@centricular.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 
20 #ifdef HAVE_CONFIG_H
21 # include "config.h"
22 #endif
23 
24 #include "sctptransport.h"
25 #include "webrtc-priv.h"
26 
27 G_DEFINE_ABSTRACT_TYPE (GstWebRTCSCTPTransport, gst_webrtc_sctp_transport,
28     GST_TYPE_OBJECT);
29 
30 static void
gst_webrtc_sctp_transport_get_property(GObject * object,guint prop_id,GValue * value,GParamSpec * pspec)31 gst_webrtc_sctp_transport_get_property (GObject * object, guint prop_id,
32     GValue * value, GParamSpec * pspec)
33 {
34   /* all properties should by handled by the plugin class */
35   g_assert_not_reached ();
36 }
37 
38 static void
gst_webrtc_sctp_transport_class_init(GstWebRTCSCTPTransportClass * klass)39 gst_webrtc_sctp_transport_class_init (GstWebRTCSCTPTransportClass * klass)
40 {
41   GObjectClass *gobject_class = (GObjectClass *) klass;
42   guint property_id_dummy = 0;
43 
44   gobject_class->get_property = gst_webrtc_sctp_transport_get_property;
45 
46   g_object_class_install_property (gobject_class,
47       ++property_id_dummy,
48       g_param_spec_object ("transport",
49           "WebRTC DTLS Transport",
50           "DTLS transport used for this SCTP transport",
51           GST_TYPE_WEBRTC_DTLS_TRANSPORT,
52           G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
53 
54   g_object_class_install_property (gobject_class,
55       ++property_id_dummy,
56       g_param_spec_enum ("state",
57           "WebRTC SCTP Transport state", "WebRTC SCTP Transport state",
58           GST_TYPE_WEBRTC_SCTP_TRANSPORT_STATE,
59           GST_WEBRTC_SCTP_TRANSPORT_STATE_NEW,
60           G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
61 
62   g_object_class_install_property (gobject_class,
63       ++property_id_dummy,
64       g_param_spec_uint64 ("max-message-size",
65           "Maximum message size",
66           "Maximum message size as reported by the transport", 0, G_MAXUINT64,
67           0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
68 
69   g_object_class_install_property (gobject_class,
70       ++property_id_dummy,
71       g_param_spec_uint ("max-channels",
72           "Maximum number of channels", "Maximum number of channels",
73           0, G_MAXUINT16, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
74 }
75 
76 static void
gst_webrtc_sctp_transport_init(GstWebRTCSCTPTransport * nice)77 gst_webrtc_sctp_transport_init (GstWebRTCSCTPTransport * nice)
78 {
79 }
80