comparison libpurple/accountopt.c @ 18037:e3e42a99070e

jabber can contain @ symbols and / in the resource, so we have to look for the split characters from the beginning of the username I'm not particularly happy with the name 'reverse' for this, but I'm not feeling creative enough at the moment to come up with something better. If someone comes up with something better before 2.1.0, feel free to change it.
author Nathan Walp <nwalp@pidgin.im>
date Mon, 04 Jun 2007 04:37:07 +0000
parents 32c366eeeb99
children ab6d2763b8d8
comparison
equal deleted inserted replaced
18036:ee9f7ee0be66 18037:e3e42a99070e
306 split = g_new0(PurpleAccountUserSplit, 1); 306 split = g_new0(PurpleAccountUserSplit, 1);
307 307
308 split->text = g_strdup(text); 308 split->text = g_strdup(text);
309 split->field_sep = sep; 309 split->field_sep = sep;
310 split->default_value = g_strdup(default_value); 310 split->default_value = g_strdup(default_value);
311 split->reverse = TRUE;
311 312
312 return split; 313 return split;
313 } 314 }
314 315
315 void 316 void
343 { 344 {
344 g_return_val_if_fail(split != NULL, 0); 345 g_return_val_if_fail(split != NULL, 0);
345 346
346 return split->field_sep; 347 return split->field_sep;
347 } 348 }
349
350 gboolean
351 purple_account_user_split_get_reverse(const PurpleAccountUserSplit *split)
352 {
353 g_return_val_if_fail(split != NULL, FALSE);
354
355 return split->reverse;
356 }
357
358 void
359 purple_account_user_split_set_reverse(PurpleAccountUserSplit *split, gboolean reverse)
360 {
361 g_return_if_fail(split != NULL);
362
363 split->reverse = reverse;
364 }