Wed, 16 Jan 2008 07:17:21 +0000
const-ify paramteters to some of the new API I added. I thought I did this already.
| libpurple/prpl.c | file | annotate | diff | comparison | revisions | |
| libpurple/prpl.h | file | annotate | diff | comparison | revisions |
--- a/libpurple/prpl.c Wed Jan 16 06:58:48 2008 +0000 +++ b/libpurple/prpl.c Wed Jan 16 07:17:21 2008 +0000 @@ -87,7 +87,7 @@ } const char * -purple_attention_type_get_name(PurpleAttentionType *type) +purple_attention_type_get_name(const PurpleAttentionType *type) { g_return_val_if_fail(type != NULL, NULL); @@ -95,7 +95,7 @@ } const char * -purple_attention_type_get_incoming_desc(PurpleAttentionType *type) +purple_attention_type_get_incoming_desc(const PurpleAttentionType *type) { g_return_val_if_fail(type != NULL, NULL); @@ -103,7 +103,7 @@ } const char * -purple_attention_type_get_outgoing_desc(PurpleAttentionType *type) +purple_attention_type_get_outgoing_desc(const PurpleAttentionType *type) { g_return_val_if_fail(type != NULL, NULL); @@ -111,7 +111,7 @@ } const char * -purple_attention_type_get_icon_name(PurpleAttentionType *type) +purple_attention_type_get_icon_name(const PurpleAttentionType *type) { g_return_val_if_fail(type != NULL, NULL); @@ -122,7 +122,7 @@ } const char * -purple_attention_type_get_unlocalized_name(PurpleAttentionType *type) +purple_attention_type_get_unlocalized_name(const PurpleAttentionType *type) { g_return_val_if_fail(type != NULL, NULL);
--- a/libpurple/prpl.h Wed Jan 16 06:58:48 2008 +0000 +++ b/libpurple/prpl.h Wed Jan 16 07:17:21 2008 +0000 @@ -491,7 +491,7 @@ * @return The name. * @since 2.4.0 */ -const char *purple_attention_type_get_name(PurpleAttentionType *type); +const char *purple_attention_type_get_name(const PurpleAttentionType *type); /** * Get the attention type's description shown when the event is received. @@ -500,7 +500,7 @@ * @return The description. * @since 2.4.0 */ -const char *purple_attention_type_get_incoming_desc(PurpleAttentionType *type); +const char *purple_attention_type_get_incoming_desc(const PurpleAttentionType *type); /** * Get the attention type's description shown when the event is sent. @@ -509,7 +509,7 @@ * @return The description. * @since 2.4.0 */ -const char *purple_attention_type_get_outgoing_desc(PurpleAttentionType *type); +const char *purple_attention_type_get_outgoing_desc(const PurpleAttentionType *type); /** * Get the attention type's icon name. @@ -519,7 +519,7 @@ * @note Icons are optional for attention events. * @since 2.4.0 */ -const char *purple_attention_type_get_icon_name(PurpleAttentionType *type); +const char *purple_attention_type_get_icon_name(const PurpleAttentionType *type); /** * Get the attention type's unlocalized name; this is useful for some UIs. @@ -528,7 +528,7 @@ * @return The unlocalized name. * @since 2.4.0 */ -const char *purple_attention_type_get_unlocalized_name(PurpleAttentionType *type); +const char *purple_attention_type_get_unlocalized_name(const PurpleAttentionType *type); /*@}*/