[farsight2/master] Pass the name of the transmitter when creating a new stream

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:18:53 PST 2008


---
 gst-libs/gst/farsight/fs-session.c |    6 ++++--
 gst-libs/gst/farsight/fs-session.h |    8 +++++---
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/gst-libs/gst/farsight/fs-session.c b/gst-libs/gst/farsight/fs-session.c
index 6f2835e..2294fa4 100644
--- a/gst-libs/gst/farsight/fs-session.c
+++ b/gst-libs/gst/farsight/fs-session.c
@@ -387,6 +387,7 @@ _remove_stream_ptr (FsSession *session, FsStream *stream)
  * @participant: #FsParticipant of a participant for the new stream
  * @direction: #FsStreamDirection describing the direction of the new stream that will
  * be created for this participant
+ * @transmitter: Name of the type of transmitter to use for this session
  * @error: location of a #GError, or NULL if no error occured
  *
  * This function creates a stream for the given participant into the active session.
@@ -396,7 +397,8 @@ _remove_stream_ptr (FsSession *session, FsStream *stream)
  */
 FsStream *
 fs_session_new_stream (FsSession *session, FsParticipant *participant,
-                            FsStreamDirection direction, GError **error)
+                       FsStreamDirection direction, gchar *transmitter,
+                       GError **error)
 {
   FsSessionClass *klass = FS_SESSION_GET_CLASS (session);
   FsStream *new_stream = NULL;
@@ -407,7 +409,7 @@ fs_session_new_stream (FsSession *session, FsParticipant *participant,
 
   if (klass->new_stream) {
     new_stream = klass->new_stream (session, participant, direction,
-        error);
+                                    transmitter, error);
 
     if (!new_stream)
       return NULL;
diff --git a/gst-libs/gst/farsight/fs-session.h b/gst-libs/gst/farsight/fs-session.h
index f458c94..83b8120 100644
--- a/gst-libs/gst/farsight/fs-session.h
+++ b/gst-libs/gst/farsight/fs-session.h
@@ -104,9 +104,10 @@ struct _FsSessionClass
 
   /*virtual functions */
   FsStream *(* new_stream) (FsSession *session,
-                             FsParticipant *participant,
-                             FsStreamDirection direction,
-                             GError **error);
+                            FsParticipant *participant,
+                            FsStreamDirection direction,
+                            gchar *transmitter,
+                            GError **error);
 
   gboolean (* start_telephony_event) (FsSession *session, guint8 event,
                                       guint8 volume, FsDTMFMethod method);
@@ -138,6 +139,7 @@ GType fs_session_get_type (void);
 FsStream *fs_session_new_stream (FsSession *session,
                                  FsParticipant *participant,
                                  FsStreamDirection direction,
+                                 gchar *transmitter,
                                  GError **error);
 
 gboolean fs_session_start_telephony_event (FsSession *session, guint8 event,
-- 
1.5.6.5




More information about the farsight-commits mailing list