diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-03-07 14:23:16 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-03-09 15:55:32 +0000 |
commit | dcb1a9b3a6e3b822299dc1dcf6f8722879a3e43e (patch) | |
tree | 62daff05bf2efb8aa716f71016a790c4f345132a /telepathy-glib/protocol.h | |
parent | 3ddd7624ed38d8eaf12acd5165c10da6d386768d (diff) | |
download | telepathy-glib-dcb1a9b3a6e3b822299dc1dcf6f8722879a3e43e.tar.gz |
tp_protocol_dup_params, tp_protocol_dup_param, tp_protocol_borrow_params: add
tp_protocol_dup_params might be less nice for C (you have to free the
list and the items), but is definitely nicer for Python and other g-i
bindings. It will probably be renamed to ...get_params in Telepathy 1.0.
tp_protocol_borrow_params is an efficient "C binding", but not as GObject'y.
tp_protocol_dup_param will replace get_param in Telepathy 1.0.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46358
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'telepathy-glib/protocol.h')
-rw-r--r-- | telepathy-glib/protocol.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/telepathy-glib/protocol.h b/telepathy-glib/protocol.h index 8b253908e..c73babda3 100644 --- a/telepathy-glib/protocol.h +++ b/telepathy-glib/protocol.h @@ -85,10 +85,15 @@ GQuark tp_protocol_get_feature_quark_parameters (void) G_GNUC_CONST; const TpConnectionManagerParam *tp_protocol_get_param (TpProtocol *self, const gchar *param); +TpConnectionManagerParam *tp_protocol_dup_param (TpProtocol *self, + const gchar *param); gboolean tp_protocol_has_param (TpProtocol *self, const gchar *param); gboolean tp_protocol_can_register (TpProtocol *self); GStrv tp_protocol_dup_param_names (TpProtocol *self) G_GNUC_WARN_UNUSED_RESULT; +GList *tp_protocol_dup_params (TpProtocol *self) G_GNUC_WARN_UNUSED_RESULT; +const TpConnectionManagerParam *tp_protocol_borrow_params (TpProtocol *self) + G_GNUC_WARN_UNUSED_RESULT; const gchar * const * /* gtk-doc sucks */ |