| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 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 |
| 31 |
gst_webrtc_sctp_transport_get_property (GObject * object, guint prop_id, |
| 32 |
GValue * value, GParamSpec * pspec) |
| 33 |
{ |
| 34 |
|
| 35 |
g_assert_not_reached (); |
| 36 |
} |
| 37 |
|
| 38 |
static void |
| 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 |
| 77 |
gst_webrtc_sctp_transport_init (GstWebRTCSCTPTransport * nice) |
| 78 |
{ |
| 79 |
} |