[farsight2/master] Make the cname argument to new_participant const
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:26:03 PST 2008
---
gst-libs/gst/farsight/fs-base-conference.c | 4 ++--
gst-libs/gst/farsight/fs-base-conference.h | 2 +-
gst-libs/gst/farsight/fs-conference-iface.c | 2 +-
gst-libs/gst/farsight/fs-conference-iface.h | 4 ++--
gst/fsrtpconference/fs-rtp-conference.c | 4 ++--
gst/fsrtpconference/fs-rtp-participant.c | 2 +-
gst/fsrtpconference/fs-rtp-participant.h | 2 +-
7 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/gst-libs/gst/farsight/fs-base-conference.c b/gst-libs/gst/farsight/fs-base-conference.c
index 8981aef..6502dea 100644
--- a/gst-libs/gst/farsight/fs-base-conference.c
+++ b/gst-libs/gst/farsight/fs-base-conference.c
@@ -73,7 +73,7 @@ static FsSession *fs_base_conference_new_session (FsConference *conf,
FsMediaType media_type,
GError **error);
static FsParticipant *fs_base_conference_new_participant (FsConference *conf,
- gchar *cname,
+ const gchar *cname,
GError **error);
void fs_base_conference_error (GObject *signal_src, GObject *error_src,
@@ -185,7 +185,7 @@ fs_base_conference_error (GObject *signal_src, GObject *error_src,
static FsParticipant *
fs_base_conference_new_participant (FsConference *conf,
- gchar *cname,
+ const gchar *cname,
GError **error)
{
FsBaseConference *baseconf = FS_BASE_CONFERENCE (conf);
diff --git a/gst-libs/gst/farsight/fs-base-conference.h b/gst-libs/gst/farsight/fs-base-conference.h
index e36e010..d5653fb 100644
--- a/gst-libs/gst/farsight/fs-base-conference.h
+++ b/gst-libs/gst/farsight/fs-base-conference.h
@@ -92,7 +92,7 @@ struct _FsBaseConferenceClass
FsMediaType media_type,
GError **error);
FsParticipant *(*new_participant) (FsBaseConference *conference,
- gchar *cname,
+ const gchar *cname,
GError **error);
/*< private >*/
diff --git a/gst-libs/gst/farsight/fs-conference-iface.c b/gst-libs/gst/farsight/fs-conference-iface.c
index 1417aea..288dcdf 100644
--- a/gst-libs/gst/farsight/fs-conference-iface.c
+++ b/gst-libs/gst/farsight/fs-conference-iface.c
@@ -140,7 +140,7 @@ fs_conference_new_session (FsConference *conference, FsMediaType media_type,
* is owned by the user and he must unref it when he is done with it.
*/
FsParticipant *
-fs_conference_new_participant (FsConference *conference, gchar *cname,
+fs_conference_new_participant (FsConference *conference, const gchar *cname,
GError **error)
{
FsConferenceClass *iface =
diff --git a/gst-libs/gst/farsight/fs-conference-iface.h b/gst-libs/gst/farsight/fs-conference-iface.h
index 5517ec8..f5ea2eb 100644
--- a/gst-libs/gst/farsight/fs-conference-iface.h
+++ b/gst-libs/gst/farsight/fs-conference-iface.h
@@ -68,7 +68,7 @@ struct _FsConferenceClass {
GError **error);
FsParticipant *(* new_participant) (FsConference *conference,
- gchar *cname,
+ const gchar *cname,
GError **error);
/*< private > */
@@ -151,7 +151,7 @@ FsSession *fs_conference_new_session (FsConference *conference,
GError **error);
FsParticipant *fs_conference_new_participant (FsConference *conference,
- gchar *cname,
+ const gchar *cname,
GError **error);
diff --git a/gst/fsrtpconference/fs-rtp-conference.c b/gst/fsrtpconference/fs-rtp-conference.c
index b0a8466..235dd77 100644
--- a/gst/fsrtpconference/fs-rtp-conference.c
+++ b/gst/fsrtpconference/fs-rtp-conference.c
@@ -127,7 +127,7 @@ static FsSession *fs_rtp_conference_new_session (FsBaseConference *conf,
FsMediaType media_type,
GError **error);
static FsParticipant *fs_rtp_conference_new_participant (FsBaseConference *conf,
- gchar *cname,
+ const gchar *cname,
GError **error);
static FsRtpSession *fs_rtp_conference_get_session_by_id_locked (
@@ -616,7 +616,7 @@ fs_rtp_conference_new_session (FsBaseConference *conf,
static FsParticipant *
fs_rtp_conference_new_participant (FsBaseConference *conf,
- gchar *cname,
+ const gchar *cname,
GError **error)
{
FsRtpConference *self = FS_RTP_CONFERENCE (conf);
diff --git a/gst/fsrtpconference/fs-rtp-participant.c b/gst/fsrtpconference/fs-rtp-participant.c
index c6bde15..fa933e5 100644
--- a/gst/fsrtpconference/fs-rtp-participant.c
+++ b/gst/fsrtpconference/fs-rtp-participant.c
@@ -80,7 +80,7 @@ fs_rtp_participant_init (FsRtpParticipant *self)
// self->priv = FS_RTP_PARTICIPANT_GET_PRIVATE (self);
}
-FsRtpParticipant *fs_rtp_participant_new (gchar *cname)
+FsRtpParticipant *fs_rtp_participant_new (const gchar *cname)
{
return g_object_new (FS_TYPE_RTP_PARTICIPANT, "cname", cname, NULL);
}
diff --git a/gst/fsrtpconference/fs-rtp-participant.h b/gst/fsrtpconference/fs-rtp-participant.h
index 1fd4781..c02991b 100644
--- a/gst/fsrtpconference/fs-rtp-participant.h
+++ b/gst/fsrtpconference/fs-rtp-participant.h
@@ -74,7 +74,7 @@ struct _FsRtpParticipant
GType fs_rtp_participant_get_type (void);
-FsRtpParticipant *fs_rtp_participant_new (gchar *cname);
+FsRtpParticipant *fs_rtp_participant_new (const gchar *cname);
G_END_DECLS
--
1.5.6.5
More information about the farsight-commits
mailing list