Mercurial > pidgin
comparison src/log.h @ 11292:ef9280fdc511
[gaim-migrate @ 13492]
Apparently, users like to know when logging is failing. Who knew?
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Thu, 18 Aug 2005 04:14:07 +0000 |
| parents | 3924db2b1ca8 |
| children | cd0c8830d881 |
comparison
equal
deleted
inserted
replaced
| 11291:57fccea36e36 | 11292:ef9280fdc511 |
|---|---|
| 111 struct _GaimLog { | 111 struct _GaimLog { |
| 112 GaimLogType type; /**< The type of log this is */ | 112 GaimLogType type; /**< The type of log this is */ |
| 113 char *name; /**< The name of this log */ | 113 char *name; /**< The name of this log */ |
| 114 GaimAccount *account; /**< The account this log is taking | 114 GaimAccount *account; /**< The account this log is taking |
| 115 place on */ | 115 place on */ |
| 116 GaimConversation *conv; /**< The conversation being logged */ | |
| 116 time_t time; /**< The time this conversation | 117 time_t time; /**< The time this conversation |
| 117 started */ | 118 started */ |
| 118 GaimLogLogger *logger; /**< The logging mechanism this log | 119 GaimLogLogger *logger; /**< The logging mechanism this log |
| 119 is to use */ | 120 is to use */ |
| 120 void *logger_data; /**< Data used by the log logger */ | 121 void *logger_data; /**< Data used by the log logger */ |
| 168 * | 169 * |
| 169 * @param type The type of log this is. | 170 * @param type The type of log this is. |
| 170 * @param name The name of this conversation (screenname, chat name, | 171 * @param name The name of this conversation (screenname, chat name, |
| 171 * etc.) | 172 * etc.) |
| 172 * @param account The account the conversation is occurring on | 173 * @param account The account the conversation is occurring on |
| 174 * @param conv The conversation being logged | |
| 173 * @param time The time this conversation started | 175 * @param time The time this conversation started |
| 174 * @return The new log | 176 * @return The new log |
| 175 */ | 177 */ |
| 176 GaimLog *gaim_log_new(GaimLogType type, const char *name, | 178 GaimLog *gaim_log_new(GaimLogType type, const char *name, GaimAccount *account, |
| 177 GaimAccount *account, time_t time); | 179 GaimConversation *conv, time_t time); |
| 178 | 180 |
| 179 /** | 181 /** |
| 180 * Frees a log | 182 * Frees a log |
| 181 * | 183 * |
| 182 * @param log The log to destroy | 184 * @param log The log to destroy |
| 314 * file handle is retained. The log's logger_data value is | 316 * file handle is retained. The log's logger_data value is |
| 315 * set to a GaimLogCommonLoggerData struct containing the log | 317 * set to a GaimLogCommonLoggerData struct containing the log |
| 316 * file handle and log path. | 318 * file handle and log path. |
| 317 * | 319 * |
| 318 * @param log The log to write to. | 320 * @param log The log to write to. |
| 319 * @param time The time of the item being logged. | |
| 320 * @param ext The file extension to give to this log file. | 321 * @param ext The file extension to give to this log file. |
| 321 */ | 322 */ |
| 322 void gaim_log_common_writer(GaimLog *log, time_t time, const char *ext); | 323 void gaim_log_common_writer(GaimLog *log, const char *ext); |
| 323 | 324 |
| 324 /** | 325 /** |
| 325 * Returns a sorted GList of GaimLogs of the requested type. | 326 * Returns a sorted GList of GaimLogs of the requested type. |
| 326 * This function should only be used with logs that are written | 327 * This function should only be used with logs that are written |
| 327 * with gaim_log_common_writer(). | 328 * with gaim_log_common_writer(). |
