Mercurial > pidgin.yaz
diff src/log.h @ 13119:fcde3faa1f57
[gaim-migrate @ 15481]
This adds support for displaying log timestamps in their original timezone. If your OS's definition of struct tm sucks, then the log timestamps will show up in your local timezone, but converted, so the time is accurate. Yay! Anyway, this all works, as I've renamed lots of my log files locally, but currently, there's no code to save new logs in this name format. That's held up on a portability issue and backwards compatibility issue.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 04 Feb 2006 20:55:52 +0000 |
parents | 1b71ad2eccdb |
children | 0a8b72b12cef |
line wrap: on
line diff
--- a/src/log.h Sat Feb 04 05:17:46 2006 +0000 +++ b/src/log.h Sat Feb 04 20:55:52 2006 +0000 @@ -112,13 +112,20 @@ GaimLogType type; /**< The type of log this is */ char *name; /**< The name of this log */ GaimAccount *account; /**< The account this log is taking - place on */ + place on */ GaimConversation *conv; /**< The conversation being logged */ time_t time; /**< The time this conversation - started */ + started, converted to the local timezone */ + GaimLogLogger *logger; /**< The logging mechanism this log - is to use */ + is to use */ void *logger_data; /**< Data used by the log logger */ + struct tm *tm; /**< The time this conversation + started, saved with original + timezone data, if available and + if struct tm has the BSD + timezone fields, else @c NULL. + Do NOT modify anything in this struct.*/ }; /** @@ -173,10 +180,12 @@ * @param account The account the conversation is occurring on * @param conv The conversation being logged * @param time The time this conversation started + * @param tm The time this conversation started, with timezone data, + * if available and if struct tm has the BSD timezone fields. * @return The new log */ GaimLog *gaim_log_new(GaimLogType type, const char *name, GaimAccount *account, - GaimConversation *conv, time_t time); + GaimConversation *conv, time_t time, const struct tm *tm); /** * Frees a log