comparison libpurple/log.h @ 25410:52b2e7260340

A patch from Chris Connett to change the log size sorting method to weight logs by date. In other words, to sort them by *recent* activity as opposed to total log size. Fixes #5447
author Richard Laager <rlaager@wiktel.com>
date Mon, 26 Jan 2009 04:19:00 +0000
parents f296be2a1039
children 6e1967b0f90b
comparison
equal deleted inserted replaced
25409:bc8d1607f9b8 25410:52b2e7260340
292 * @return The size in bytes 292 * @return The size in bytes
293 */ 293 */
294 int purple_log_get_total_size(PurpleLogType type, const char *name, PurpleAccount *account); 294 int purple_log_get_total_size(PurpleLogType type, const char *name, PurpleAccount *account);
295 295
296 /** 296 /**
297 * Returns the activity score of a log, based on total size in bytes,
298 * which is then decayed based on age
299 *
300 * @param type The type of the log
301 * @param name The name of the log
302 * @param account The account
303 * @return The activity score
304 *
305 * @since 2.6.0
306 */
307 int purple_log_get_activity_score(PurpleLogType type, const char *name, PurpleAccount *account);
308
309 /**
297 * Tests whether a log is deletable 310 * Tests whether a log is deletable
298 * 311 *
299 * A return value of @c FALSE indicates that purple_log_delete() will fail on this 312 * A return value of @c FALSE indicates that purple_log_delete() will fail on this
300 * log, unless something changes between the two calls. A return value of @c TRUE, 313 * log, unless something changes between the two calls. A return value of @c TRUE,
301 * however, does not guarantee the log can be deleted. 314 * however, does not guarantee the log can be deleted.