* mu: add the backend for freq information for contacts

This commit is contained in:
djcb
2013-06-16 23:02:19 +03:00
parent 401f30ee26
commit bfe74d1d11
5 changed files with 17 additions and 11 deletions

View File

@ -97,13 +97,15 @@ size_t mu_contacts_count (MuContacts *self);
/**
* call called for mu_contacts_foreach; returns the e-mail address,
* name (which may be NULL) , whether the message is 'personal', and
* the timestamp for the address
* name (which may be NULL) , whether the message is 'personal', the
* timestamp for the address (when it was last seen), and the
* frequency (in how many message did this contact participate)
*
*/
typedef void (*MuContactsForeachFunc) (const char *email, const char *name,
gboolean personal,
time_t tstamp, gpointer user_data);
time_t tstamp, unsigned freq,
gpointer user_data);
/**
* call a function for either each contact, or each contact satisfying