Mercurial > pidgin
diff src/log.h @ 13388:0a8b72b12cef
[gaim-migrate @ 15761]
Implement a total_size function for the text and HTML loggers. This way, when we call gaim_log_get_total_size(), we don't have to create and then immediately destroy a bunch of GaimLog instances.
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Fri, 03 Mar 2006 08:45:59 +0000 |
| parents | fcde3faa1f57 |
| children | 51d436a267ac |
line wrap: on
line diff
--- a/src/log.h Fri Mar 03 07:02:59 2006 +0000 +++ b/src/log.h Fri Mar 03 08:45:59 2006 +0000 @@ -349,6 +349,25 @@ GaimLogLogger *logger); /** + * Returns the total size of all the logs for a given user, with + * a given extension. This is the "common" implemention of a + * logger's total_size function. + * This function should only be used with logs that are written + * with gaim_log_common_writer(). + * + * @param type The type of the logs being sized. + * @param name The name of the logs to size + * (e.g. the username or chat name). + * @param account The account of the log. + * @param ext The file extension this log format uses. + * + * @return The size of all the logs with the specified extension + * for the specified user. + */ +int gaim_log_common_total_sizer(GaimLogType type, const char *name, + GaimAccount *account, const char *ext); + +/** * Returns the size of a given GaimLog. * This function should only be used with logs that are written * with gaim_log_common_writer().
