diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-07-15 14:59:06 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-07-15 14:59:06 +0100 |
commit | 6bfc392a998de57c19def1d7929bde785dc31b86 (patch) | |
tree | b5ed4a429b2fd9dc997d2b173539418fc3f7887b /telepathy-glib/base-protocol.c | |
parent | 0a4a1594704253ffffa587a16a69b2a5674bc1a2 (diff) | |
download | telepathy-glib-6bfc392a998de57c19def1d7929bde785dc31b86.tar.gz |
protocol_identify_account: use tp_base_protocol_sanitize_parameters
This means implementations of @identify_account no longer need to worry
about receiving unexpected parameters, or parameters of unexpected types.
Diffstat (limited to 'telepathy-glib/base-protocol.c')
-rw-r--r-- | telepathy-glib/base-protocol.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/telepathy-glib/base-protocol.c b/telepathy-glib/base-protocol.c index 3b7a6a08c..c5019d920 100644 --- a/telepathy-glib/base-protocol.c +++ b/telepathy-glib/base-protocol.c @@ -1066,7 +1066,14 @@ protocol_identify_account (TpSvcProtocol *protocol, if (cls->identify_account != NULL) { - ret = cls->identify_account (self, parameters, &error); + GHashTable *sanitized = tp_base_protocol_sanitize_parameters (self, + parameters, TRUE, &error); + + if (sanitized != NULL) + { + ret = cls->identify_account (self, sanitized, &error); + g_hash_table_unref (sanitized); + } } else { |