summaryrefslogtreecommitdiffstats
path: root/gst/rtpmanager/rtpsession.h
diff options
context:
space:
mode:
Diffstat (limited to 'gst/rtpmanager/rtpsession.h')
-rw-r--r--gst/rtpmanager/rtpsession.h34
1 files changed, 8 insertions, 26 deletions
diff --git a/gst/rtpmanager/rtpsession.h b/gst/rtpmanager/rtpsession.h
index 359a7417..0c99d53f 100644
--- a/gst/rtpmanager/rtpsession.h
+++ b/gst/rtpmanager/rtpsession.h
@@ -162,15 +162,6 @@ struct _RTPSession {
RTPSource *source;
- /* info for creating reports */
- gchar *cname;
- gchar *name;
- gchar *email;
- gchar *phone;
- gchar *location;
- gchar *tool;
- gchar *note;
-
/* for sender/receiver counting */
guint32 key;
guint32 mask_idx;
@@ -210,6 +201,7 @@ struct _RTPSessionClass {
void (*on_ssrc_collision) (RTPSession *sess, RTPSource *source);
void (*on_ssrc_validated) (RTPSession *sess, RTPSource *source);
void (*on_ssrc_active) (RTPSession *sess, RTPSource *source);
+ void (*on_ssrc_sdes) (RTPSession *sess, RTPSource *source);
void (*on_bye_ssrc) (RTPSession *sess, RTPSource *source);
void (*on_bye_timeout) (RTPSession *sess, RTPSource *source);
void (*on_timeout) (RTPSession *sess, RTPSource *source);
@@ -227,22 +219,12 @@ gdouble rtp_session_get_bandwidth (RTPSession *sess);
void rtp_session_set_rtcp_fraction (RTPSession *sess, gdouble fraction);
gdouble rtp_session_get_rtcp_fraction (RTPSession *sess);
-void rtp_session_set_cname (RTPSession *sess, const gchar *cname);
-gchar* rtp_session_get_cname (RTPSession *sess);
-void rtp_session_set_name (RTPSession *sess, const gchar *name);
-gchar* rtp_session_get_name (RTPSession *sess);
-void rtp_session_set_email (RTPSession *sess, const gchar *email);
-gchar* rtp_session_get_email (RTPSession *sess);
-void rtp_session_set_phone (RTPSession *sess, const gchar *phone);
-gchar* rtp_session_get_phone (RTPSession *sess);
-void rtp_session_set_location (RTPSession *sess, const gchar *location);
-gchar* rtp_session_get_location (RTPSession *sess);
-void rtp_session_set_tool (RTPSession *sess, const gchar *tool);
-gchar* rtp_session_get_tool (RTPSession *sess);
-void rtp_session_set_note (RTPSession *sess, const gchar *note);
-gchar* rtp_session_get_note (RTPSession *sess);
+gboolean rtp_session_set_sdes_string (RTPSession *sess, GstRTCPSDESType type,
+ const gchar *cname);
+gchar* rtp_session_get_sdes_string (RTPSession *sess, GstRTCPSDESType type);
/* handling sources */
+RTPSource* rtp_session_get_internal_source (RTPSession *sess);
gboolean rtp_session_add_source (RTPSession *sess, RTPSource *src);
guint rtp_session_get_num_sources (RTPSession *sess);
guint rtp_session_get_num_active_sources (RTPSession *sess);
@@ -255,13 +237,13 @@ GstFlowReturn rtp_session_process_rtp (RTPSession *sess, GstBuffer
GstFlowReturn rtp_session_process_rtcp (RTPSession *sess, GstBuffer *buffer);
/* processing packets for sending */
-GstFlowReturn rtp_session_send_rtp (RTPSession *sess, GstBuffer *buffer, guint64 ntptime);
+GstFlowReturn rtp_session_send_rtp (RTPSession *sess, GstBuffer *buffer, guint64 ntpnstime);
/* stopping the session */
GstFlowReturn rtp_session_send_bye (RTPSession *sess, const gchar *reason);
/* get interval for next RTCP interval */
-GstClockTime rtp_session_next_timeout (RTPSession *sess, GstClockTime time);
-GstFlowReturn rtp_session_on_timeout (RTPSession *sess, GstClockTime time, guint64 ntpnstime);
+GstClockTime rtp_session_next_timeout (RTPSession *sess, GstClockTime time);
+GstFlowReturn rtp_session_on_timeout (RTPSession *sess, GstClockTime time, guint64 ntpnstime);
#endif /* __RTP_SESSION_H__ */