diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-12-16 15:45:59 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-12-16 16:18:59 +0100 |
commit | 8375259908c5a997f8a01767cb72bc111cb51330 (patch) | |
tree | 7c7a8caffef23dabd79fece13c59f7748a8895d0 | |
parent | 78cf4c971f1eb56df690e8c50478bfa3958ca801 (diff) |
check type of self in getters
-rw-r--r-- | telepathy-glib/text-channel.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/telepathy-glib/text-channel.c b/telepathy-glib/text-channel.c index e736d1389..b37fb36a2 100644 --- a/telepathy-glib/text-channel.c +++ b/telepathy-glib/text-channel.c @@ -1001,6 +1001,8 @@ tp_text_channel_new (TpConnection *conn, const gchar * const * tp_text_channel_get_supported_content_types (TpTextChannel *self) { + g_return_val_if_fail (TP_IS_TEXT_CHANNEL (self), NULL); + return (const gchar * const *) self->priv->supported_content_types; } @@ -1018,6 +1020,8 @@ TpMessagePartSupportFlags tp_text_channel_get_message_part_support_flags ( TpTextChannel *self) { + g_return_val_if_fail (TP_IS_TEXT_CHANNEL (self), 0); + return self->priv->message_part_support_flags; } @@ -1035,6 +1039,8 @@ TpDeliveryReportingSupportFlags tp_text_channel_get_delivery_reporting_support ( TpTextChannel *self) { + g_return_val_if_fail (TP_IS_TEXT_CHANNEL (self), 0); + return self->priv->delivery_reporting_support; } |