Mercurial > pidgin.yaz
comparison libpurple/prpl.c @ 22122:f55f84a1e3f7
const-ify paramteters to some of the new API I added. I thought I did this already.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Wed, 16 Jan 2008 07:17:21 +0000 |
parents | eab7d03edfcb |
children | 49850f7ca393 eb8c8a926589 |
comparison
equal
deleted
inserted
replaced
22121:0a0fa9fd5feb | 22122:f55f84a1e3f7 |
---|---|
85 | 85 |
86 type->unlocalized_name = ulname; | 86 type->unlocalized_name = ulname; |
87 } | 87 } |
88 | 88 |
89 const char * | 89 const char * |
90 purple_attention_type_get_name(PurpleAttentionType *type) | 90 purple_attention_type_get_name(const PurpleAttentionType *type) |
91 { | 91 { |
92 g_return_val_if_fail(type != NULL, NULL); | 92 g_return_val_if_fail(type != NULL, NULL); |
93 | 93 |
94 return type->name; | 94 return type->name; |
95 } | 95 } |
96 | 96 |
97 const char * | 97 const char * |
98 purple_attention_type_get_incoming_desc(PurpleAttentionType *type) | 98 purple_attention_type_get_incoming_desc(const PurpleAttentionType *type) |
99 { | 99 { |
100 g_return_val_if_fail(type != NULL, NULL); | 100 g_return_val_if_fail(type != NULL, NULL); |
101 | 101 |
102 return type->incoming_description; | 102 return type->incoming_description; |
103 } | 103 } |
104 | 104 |
105 const char * | 105 const char * |
106 purple_attention_type_get_outgoing_desc(PurpleAttentionType *type) | 106 purple_attention_type_get_outgoing_desc(const PurpleAttentionType *type) |
107 { | 107 { |
108 g_return_val_if_fail(type != NULL, NULL); | 108 g_return_val_if_fail(type != NULL, NULL); |
109 | 109 |
110 return type->outgoing_description; | 110 return type->outgoing_description; |
111 } | 111 } |
112 | 112 |
113 const char * | 113 const char * |
114 purple_attention_type_get_icon_name(PurpleAttentionType *type) | 114 purple_attention_type_get_icon_name(const PurpleAttentionType *type) |
115 { | 115 { |
116 g_return_val_if_fail(type != NULL, NULL); | 116 g_return_val_if_fail(type != NULL, NULL); |
117 | 117 |
118 if(type->icon_name == NULL || *(type->icon_name) == '\0') | 118 if(type->icon_name == NULL || *(type->icon_name) == '\0') |
119 return NULL; | 119 return NULL; |
120 | 120 |
121 return type->icon_name; | 121 return type->icon_name; |
122 } | 122 } |
123 | 123 |
124 const char * | 124 const char * |
125 purple_attention_type_get_unlocalized_name(PurpleAttentionType *type) | 125 purple_attention_type_get_unlocalized_name(const PurpleAttentionType *type) |
126 { | 126 { |
127 g_return_val_if_fail(type != NULL, NULL); | 127 g_return_val_if_fail(type != NULL, NULL); |
128 | 128 |
129 return type->unlocalized_name; | 129 return type->unlocalized_name; |
130 } | 130 } |