[farsight2/master] Replace select_candidate_pair with force_remote_candidates in FsStreamTransmitter
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:23:57 PST 2008
---
gst-libs/gst/farsight/fs-stream-transmitter.c | 27 ++++++++++++-------------
gst-libs/gst/farsight/fs-stream-transmitter.h | 12 ++++------
2 files changed, 18 insertions(+), 21 deletions(-)
diff --git a/gst-libs/gst/farsight/fs-stream-transmitter.c b/gst-libs/gst/farsight/fs-stream-transmitter.c
index d2f9288..5064a42 100644
--- a/gst-libs/gst/farsight/fs-stream-transmitter.c
+++ b/gst-libs/gst/farsight/fs-stream-transmitter.c
@@ -358,34 +358,33 @@ fs_stream_transmitter_set_remote_candidates (
}
/**
- * fs_stream_transmitter_select_candidate_pair:
+ * fs_stream_transmitter_force_remote_candidates:
* @streamtransmitter: a #FsStreamTransmitter
- * @local_foundation: The foundation of the local candidates to be selected
- * @remote_foundation: The foundation of the remote candidates to be selected
- * @error: location of a #GErrorh, or NULL if no error occured
+ * @remote_candidates: a #GList of #FsCandidate to force
+ * @error: location of a #GError, or NULL if no error occured
*
- * This function selects one pair of candidates to be selected to start
- * sending media on.
+ * This function forces data to be sent immediately to the selected remote
+ * candidate, by-passing any connectivity checks. There should be at most
+ * one candidate per component.
*
- * Returns: TRUE if the candidate pair could be selected, FALSE otherwise
+ * Returns: %TRUE if the candidates could be forced, %FALSE otherwise
*/
gboolean
-fs_stream_transmitter_select_candidate_pair (
+fs_stream_transmitter_force_remote_candidates (
FsStreamTransmitter *streamtransmitter,
- const gchar *local_foundation,
- const gchar *remote_foundation,
+ GList *remote_candidates,
GError **error)
{
FsStreamTransmitterClass *klass =
FS_STREAM_TRANSMITTER_GET_CLASS (streamtransmitter);
- if (klass->select_candidate_pair) {
- return klass->select_candidate_pair (streamtransmitter,
- local_foundation, remote_foundation, error);
+ if (klass->force_remote_candidates) {
+ return klass->force_remote_candidates (streamtransmitter,
+ remote_candidates, error);
} else {
g_set_error (error, FS_ERROR, FS_ERROR_NOT_IMPLEMENTED,
- "select_candidate_pair not defined in stream transmitter class");
+ "force_remote_candidates not defined in stream transmitter class");
}
return FALSE;
diff --git a/gst-libs/gst/farsight/fs-stream-transmitter.h b/gst-libs/gst/farsight/fs-stream-transmitter.h
index 8339a32..43ad9ff 100644
--- a/gst-libs/gst/farsight/fs-stream-transmitter.h
+++ b/gst-libs/gst/farsight/fs-stream-transmitter.h
@@ -58,7 +58,7 @@ typedef struct _FsStreamTransmitterPrivate FsStreamTransmitterPrivate;
* FsStreamTransmitterClass:
* @parent_class: Our parent
* @set_remote_candidates: Sets the remote candidates
- * @select_candidate_pair: Select the candidate pair
+ * @force_remote_canidates: Forces certain remote candidates
* @gather_local_candidates: Starts the gathering of local candidates
* @stop: Stop the stream transmitter synchronously
*
@@ -73,9 +73,8 @@ struct _FsStreamTransmitterClass
gboolean (*set_remote_candidates) (FsStreamTransmitter *streamtransmitter,
GList *candidates, GError **error);
- gboolean (*select_candidate_pair) (FsStreamTransmitter *streamtransmitter,
- const gchar *local_foundation,
- const gchar *remote_foundation,
+ gboolean (*force_remote_candidates) (FsStreamTransmitter *streamtransmitter,
+ GList *remote_candidates,
GError **error);
gboolean (*gather_local_candidates) (FsStreamTransmitter *streamtransmitter,
GError **error);
@@ -106,10 +105,9 @@ gboolean fs_stream_transmitter_set_remote_candidates (
GList *candidates,
GError **error);
-gboolean fs_stream_transmitter_select_candidate_pair (
+gboolean fs_stream_transmitter_force_remote_candidates (
FsStreamTransmitter *streamtransmitter,
- const gchar *local_foundation,
- const gchar *remote_foundation,
+ GList *remote_candidates,
GError **error);
gboolean
--
1.5.6.5
More information about the farsight-commits
mailing list