Mercurial > pidgin
comparison libpurple/accountopt.h @ 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 |
---|---|
62 typedef struct | 62 typedef struct |
63 { | 63 { |
64 char *text; /**< The text that will appear to the user. */ | 64 char *text; /**< The text that will appear to the user. */ |
65 char *default_value; /**< The default value. */ | 65 char *default_value; /**< The default value. */ |
66 char field_sep; /**< The field separator. */ | 66 char field_sep; /**< The field separator. */ |
67 gboolean reverse; /**< TRUE if the separator should be found | |
68 starting a the end of the string, FALSE | |
69 otherwise */ | |
67 | 70 |
68 } PurpleAccountUserSplit; | 71 } PurpleAccountUserSplit; |
69 | 72 |
70 #ifdef __cplusplus | 73 #ifdef __cplusplus |
71 extern "C" { | 74 extern "C" { |
351 * | 354 * |
352 * @return The field separator. | 355 * @return The field separator. |
353 */ | 356 */ |
354 char purple_account_user_split_get_separator(const PurpleAccountUserSplit *split); | 357 char purple_account_user_split_get_separator(const PurpleAccountUserSplit *split); |
355 | 358 |
359 /** | |
360 * Returns the 'reverse' value for an account split. | |
361 * | |
362 * @param split The account username split. | |
363 * | |
364 * @return The 'reverse' value. | |
365 */ | |
366 gboolean purple_account_user_split_get_reverse(const PurpleAccountUserSplit *split); | |
367 | |
368 /** | |
369 * Sets the 'reverse' value for an account split. | |
370 * | |
371 * @param split The account username split. | |
372 * @param reverse The 'reverse' value | |
373 */ | |
374 void purple_account_user_split_set_reverse(PurpleAccountUserSplit *split, gboolean reverse); | |
375 | |
356 /*@}*/ | 376 /*@}*/ |
357 | 377 |
358 #ifdef __cplusplus | 378 #ifdef __cplusplus |
359 } | 379 } |
360 #endif | 380 #endif |