libpurple/savedstatuses.c

branch
soc.2013.gobjectification
changeset 34785
99bcdb44c75f
parent 32438
dc8991868906
child 34788
38d1b844ddb6
equal deleted inserted replaced
34784:d0eafa17c727 34785:99bcdb44c75f
1170 purple_account_set_status(account, purple_status_type_get_id(status_type), 1170 purple_account_set_status(account, purple_status_type_get_id(status_type),
1171 TRUE, NULL); 1171 TRUE, NULL);
1172 } 1172 }
1173 } 1173 }
1174 1174
1175 static PurpleSavedStatus *
1176 purple_savedstatus_copy(PurpleSavedStatus *savedstatus)
1177 {
1178 PurpleSavedStatus *savedstatus_copy = g_new(PurpleSavedStatus, 1);
1179 *savedstatus_copy = *savedstatus;
1180
1181 return savedstatus_copy;
1182 }
1183
1184 GType
1185 purple_savedstatus_get_type(void)
1186 {
1187 static GType type = 0;
1188
1189 if (type == 0) {
1190 type = g_boxed_type_register_static("PurpleSavedStatus",
1191 (GBoxedCopyFunc)purple_savedstatus_copy,
1192 (GBoxedFreeFunc)g_free);
1193 }
1194
1195 return type;
1196 }
1197
1175 void * 1198 void *
1176 purple_savedstatuses_get_handle(void) 1199 purple_savedstatuses_get_handle(void)
1177 { 1200 {
1178 static int handle; 1201 static int handle;
1179 1202

mercurial