[farsight2/master] Make _emit_error functions take const arguments

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


---
 gst-libs/gst/farsight/fs-session.c            |    6 ++++--
 gst-libs/gst/farsight/fs-session.h            |    6 ++++--
 gst-libs/gst/farsight/fs-stream-transmitter.c |    4 +++-
 gst-libs/gst/farsight/fs-stream-transmitter.h |    4 +++-
 gst-libs/gst/farsight/fs-stream.c             |    6 ++++--
 gst-libs/gst/farsight/fs-stream.h             |    6 ++++--
 gst-libs/gst/farsight/fs-transmitter.c        |    4 +++-
 gst-libs/gst/farsight/fs-transmitter.h        |    4 ++--
 8 files changed, 27 insertions(+), 13 deletions(-)

diff --git a/gst-libs/gst/farsight/fs-session.c b/gst-libs/gst/farsight/fs-session.c
index 872c938..d430124 100644
--- a/gst-libs/gst/farsight/fs-session.c
+++ b/gst-libs/gst/farsight/fs-session.c
@@ -568,8 +568,10 @@ fs_session_set_codec_preferences (FsSession *session,
  * called by subclasses.
  */
 void
-fs_session_emit_error (FsSession *session, gint error_no,
-                       gchar *error_msg, gchar *debug_msg)
+fs_session_emit_error (FsSession *session,
+    gint error_no,
+    const gchar *error_msg,
+    const gchar *debug_msg)
 {
   g_signal_emit (session, signals[ERROR_SIGNAL], 0, session, error_no,
       error_msg, debug_msg);
diff --git a/gst-libs/gst/farsight/fs-session.h b/gst-libs/gst/farsight/fs-session.h
index ab5a29e..7d26849 100644
--- a/gst-libs/gst/farsight/fs-session.h
+++ b/gst-libs/gst/farsight/fs-session.h
@@ -183,8 +183,10 @@ gboolean fs_session_set_codec_preferences (FsSession *session,
 
 gchar **fs_session_list_transmitters (FsSession *session);
 
-void fs_session_emit_error (FsSession *session, gint error_no,
-                            gchar *error_msg, gchar *debug_msg);
+void fs_session_emit_error (FsSession *session,
+    gint error_no,
+    const gchar *error_msg,
+    const gchar *debug_msg);
 
 G_END_DECLS
 
diff --git a/gst-libs/gst/farsight/fs-stream-transmitter.c b/gst-libs/gst/farsight/fs-stream-transmitter.c
index a78cbf7..5999163 100644
--- a/gst-libs/gst/farsight/fs-stream-transmitter.c
+++ b/gst-libs/gst/farsight/fs-stream-transmitter.c
@@ -457,7 +457,9 @@ fs_stream_transmitter_stop (FsStreamTransmitter *streamtransmitter)
  */
 void
 fs_stream_transmitter_emit_error (FsStreamTransmitter *streamtransmitter,
-  gint error_no, gchar *error_msg, gchar *debug_msg)
+    gint error_no,
+    const gchar *error_msg,
+    const gchar *debug_msg)
 {
   g_signal_emit (streamtransmitter, signals[ERROR_SIGNAL], 0, error_no,
       error_msg, debug_msg);
diff --git a/gst-libs/gst/farsight/fs-stream-transmitter.h b/gst-libs/gst/farsight/fs-stream-transmitter.h
index 7aa7007..447832f 100644
--- a/gst-libs/gst/farsight/fs-stream-transmitter.h
+++ b/gst-libs/gst/farsight/fs-stream-transmitter.h
@@ -119,7 +119,9 @@ fs_stream_transmitter_gather_local_candidates (
 void fs_stream_transmitter_stop (FsStreamTransmitter *streamtransmitter);
 
 void fs_stream_transmitter_emit_error (FsStreamTransmitter *streamtransmitter,
-  gint error_no, gchar *error_msg, gchar *debug_msg);
+    gint error_no,
+    const gchar *error_msg,
+    const gchar *debug_msg);
 
 G_END_DECLS
 
diff --git a/gst-libs/gst/farsight/fs-stream.c b/gst-libs/gst/farsight/fs-stream.c
index fe20e6a..5b22037 100644
--- a/gst-libs/gst/farsight/fs-stream.c
+++ b/gst-libs/gst/farsight/fs-stream.c
@@ -487,8 +487,10 @@ fs_stream_set_remote_codecs (FsStream *stream,
  * called by subclasses.
  */
 void
-fs_stream_emit_error (FsStream *stream, gint error_no,
-                      gchar *error_msg, gchar *debug_msg)
+fs_stream_emit_error (FsStream *stream,
+    gint error_no,
+    const gchar *error_msg,
+    const gchar *debug_msg)
 {
   g_signal_emit (stream, signals[ERROR_SIGNAL], 0, error_no, error_msg,
       debug_msg);
diff --git a/gst-libs/gst/farsight/fs-stream.h b/gst-libs/gst/farsight/fs-stream.h
index c8b200e..dab2304 100644
--- a/gst-libs/gst/farsight/fs-stream.h
+++ b/gst-libs/gst/farsight/fs-stream.h
@@ -156,8 +156,10 @@ gboolean fs_stream_force_remote_candidates (FsStream *stream,
 gboolean fs_stream_set_remote_codecs (FsStream *stream,
                                       GList *remote_codecs, GError **error);
 
-void fs_stream_emit_error (FsStream *stream, gint error_no,
-                           gchar *error_msg, gchar *debug_msg);
+void fs_stream_emit_error (FsStream *stream,
+    gint error_no,
+    const gchar *error_msg,
+    const gchar *debug_msg);
 
 void fs_stream_emit_src_pad_added (FsStream *stream,
     GstPad *pad,
diff --git a/gst-libs/gst/farsight/fs-transmitter.c b/gst-libs/gst/farsight/fs-transmitter.c
index 5eb45f4..769f0fd 100644
--- a/gst-libs/gst/farsight/fs-transmitter.c
+++ b/gst-libs/gst/farsight/fs-transmitter.c
@@ -341,7 +341,9 @@ fs_transmitter_get_stream_transmitter_type (FsTransmitter *transmitter)
  */
 void
 fs_transmitter_emit_error (FsTransmitter *transmitter,
-  gint error_no, gchar *error_msg, gchar *debug_msg)
+    gint error_no,
+    const gchar *error_msg,
+    const gchar *debug_msg)
 {
   g_signal_emit (transmitter, signals[ERROR_SIGNAL], 0, error_no,
       error_msg, debug_msg);
diff --git a/gst-libs/gst/farsight/fs-transmitter.h b/gst-libs/gst/farsight/fs-transmitter.h
index d063f2b..c5956bf 100644
--- a/gst-libs/gst/farsight/fs-transmitter.h
+++ b/gst-libs/gst/farsight/fs-transmitter.h
@@ -111,8 +111,8 @@ GType fs_transmitter_get_stream_transmitter_type (FsTransmitter *transmitter);
 
 void fs_transmitter_emit_error (FsTransmitter *transmitter,
     gint error_no,
-    gchar *error_msg,
-    gchar *debug_msg);
+    const gchar *error_msg,
+    const gchar *debug_msg);
 
 char **fs_transmitter_list_available (void);
 
-- 
1.5.6.5




More information about the farsight-commits mailing list