[Telepathy-commits] [telepathy-mission-control/master] Make fields in McAccountChannelRequestData const
Alberto Mardegan
alberto.mardegan at nokia.com
Mon Nov 17 00:05:22 PST 2008
The McAccountChannelRequestData fields are meant to be constant.
Update also the example.
---
examples/mc-example-3.c | 2 +-
libmcclient/mc-account.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/mc-example-3.c b/examples/mc-example-3.c
index 38b5654..0d4f470 100644
--- a/examples/mc-example-3.c
+++ b/examples/mc-example-3.c
@@ -109,7 +109,7 @@ request_channel (McAccount *account, GQuark type, const gchar *contact)
MC_ACCOUNT_CRD_INIT (&req);
MC_ACCOUNT_CRD_SET (&req, channel_type, type);
- MC_ACCOUNT_CRD_SET (&req, target_id, (gchar *)contact);
+ MC_ACCOUNT_CRD_SET (&req, target_id, contact);
MC_ACCOUNT_CRD_SET (&req, target_handle_type, TP_HANDLE_TYPE_CONTACT);
id = mc_account_channel_request (account, &req, time(0),
NULL,
diff --git a/libmcclient/mc-account.h b/libmcclient/mc-account.h
index b807ab5..af5a3b7 100644
--- a/libmcclient/mc-account.h
+++ b/libmcclient/mc-account.h
@@ -220,7 +220,7 @@ typedef struct {
GQuark fld_channel_type;
guint fld_target_handle;
TpHandleType fld_target_handle_type;
- gchar *fld_target_id;
+ const gchar *fld_target_id;
} McAccountChannelRequestData;
enum
--
1.5.6.5
More information about the Telepathy-commits
mailing list