summaryrefslogtreecommitdiffstats
path: root/gst/rtpmanager/rtpsession.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2007-12-10 11:08:11 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-12-10 11:08:11 +0000
commit582f643ee4947de757bd8b429b521a939959a0c1 (patch)
tree06522fa3083c9563cf8776c52e605fcf49e6e6da /gst/rtpmanager/rtpsession.h
parent220e7f70e269374fd0466481bdcb4d4cb7e0bd00 (diff)
downloadgst-plugins-bad-582f643ee4947de757bd8b429b521a939959a0c1.tar.gz
gst-plugins-bad-582f643ee4947de757bd8b429b521a939959a0c1.tar.bz2
gst-plugins-bad-582f643ee4947de757bd8b429b521a939959a0c1.zip
gst/rtpmanager/: Update comment.
Original commit message from CVS: * gst/rtpmanager/gstrtpbin.c: (create_session): * gst/rtpmanager/rtpjitterbuffer.c: Update comment. * gst/rtpmanager/gstrtpsession.c: (gst_rtp_session_class_init), (gst_rtp_session_set_property), (gst_rtp_session_get_property): Define some GObject properties to set SDES and other configuration. * gst/rtpmanager/rtpsession.c: (rtp_session_class_init), (rtp_session_init), (rtp_session_finalize), (rtp_session_set_property), (rtp_session_get_property), (on_ssrc_sdes), (rtp_session_set_bandwidth), (rtp_session_get_bandwidth), (rtp_session_set_rtcp_fraction), (rtp_session_get_rtcp_fraction), (rtp_session_set_sdes_string), (rtp_session_get_sdes_string), (obtain_source), (rtp_session_get_internal_source), (rtp_session_process_sdes), (rtp_session_send_rtp), (rtp_session_next_timeout), (session_sdes), (is_rtcp_time): * gst/rtpmanager/rtpsession.h: Add signal when new SDES infor has been found for a source. Create properties for SDES and other info. Simplify the SDES API. Add method for getting the internal source object of the session. * gst/rtpmanager/rtpsource.c: (rtp_source_class_init), (rtp_source_finalize), (rtp_source_set_property), (rtp_source_get_property), (rtp_source_set_callbacks), (rtp_source_get_ssrc), (rtp_source_set_as_csrc), (rtp_source_is_as_csrc), (rtp_source_is_active), (rtp_source_is_validated), (rtp_source_is_sender), (rtp_source_received_bye), (rtp_source_get_bye_reason), (rtp_source_set_sdes), (rtp_source_set_sdes_string), (rtp_source_get_sdes), (rtp_source_get_sdes_string), (rtp_source_get_new_sr), (rtp_source_get_new_rb): * gst/rtpmanager/rtpsource.h: Add GObject properties for various things. Don't leak the bye reason.
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__ */