X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-pair.h;h=f2deaf33cb492cdc83011e51780da717cc19c12c;hp=412bf4a4e7ce8d02e127ff6b49254ec4d8d368a5;hb=00843109d0342129e01ba4b4848ad89eea5fe3e7;hpb=7682620c7cd97669d2d99283c038c63433c1d66d diff --git a/src/modest-pair.h b/src/modest-pair.h index 412bf4a..f2deaf3 100644 --- a/src/modest-pair.h +++ b/src/modest-pair.h @@ -71,11 +71,24 @@ void modest_pair_free (ModestPair *self); * modest_pair_list_free: * @pairs: a valid ModestPairList * - * convenience function to destroy all pairs in a list + * Convenience function to destroy all pairs in a list and the list itself. * */ void modest_pair_list_free (ModestPairList *pairs); +/** + * modest_pair_list_find_by_first + * @pairs: A valid ModestPairList + * @first: The first element of the pair to be found. + * @func: The function to call for each element. It should return 0 when the desired element is found. + * + * Find an element with a matching first entry. + * + * Returns: a previously allocated ModestPair instance, or NULL if none was found. + */ +ModestPair* modest_pair_list_find_by_first_as_string (ModestPairList *pairs, + const gchar* first); + G_END_DECLS #endif /* __MODEST_PAIR_H__ */