im.pidgin.pidgin: 167b1c9f831eb7790b419ee62343bb62ad1be92b

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Wed Jan 16 02:20:37 EST 2008


-----------------------------------------------------------------
Revision: 167b1c9f831eb7790b419ee62343bb62ad1be92b
Ancestor: 947ccb889812585e6d53eac13fc12734d8481e33
Author: rekkanoryo at pidgin.im
Date: 2008-01-16T07:17:21
Branch: im.pidgin.pidgin

Modified files:
        libpurple/prpl.c libpurple/prpl.h

ChangeLog: 

const-ify paramteters to some of the new API I added.  I thought I did this already.

-------------- next part --------------
============================================================
--- libpurple/prpl.c	c3199f3d8915499e2d7ff833d7a5648e8d4eafdb
+++ libpurple/prpl.c	20e29dbf2ce48b137596ce894cb6887f667a1383
@@ -87,7 +87,7 @@ const char *
 }
 
 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 *
 }
 
 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 *
 }
 
 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 *
 }
 
 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 *
 }
 
 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);
 
============================================================
--- libpurple/prpl.h	3cf1510eb4041ce78682cd7e995816ba1fffa11d
+++ libpurple/prpl.h	2c4b1395b8971489caa0a417641240930fa7dfdc
@@ -491,7 +491,7 @@ void purple_attention_type_set_unlocaliz
  * @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 @@ const char *purple_attention_type_get_na
  * @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 @@ const char *purple_attention_type_get_in
  * @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 @@ const char *purple_attention_type_get_ou
  * @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 @@ const char *purple_attention_type_get_ic
  * @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);
 
 /*@}*/
 


More information about the Commits mailing list