equal
deleted
inserted
replaced
419 guint hlog_is_enabled(void) |
419 guint hlog_is_enabled(void) |
420 { |
420 { |
421 return UseFileLogging; |
421 return UseFileLogging; |
422 } |
422 } |
423 |
423 |
424 inline void hlog_write_message(const char *bjid, time_t timestamp, int sent, |
424 void hlog_write_message(const char *bjid, time_t timestamp, int sent, |
425 const char *msg) |
425 const char *msg) |
426 { |
426 { |
427 guchar info; |
427 guchar info; |
428 /* sent=1 message sent by mcabber |
428 /* sent=1 message sent by mcabber |
429 * sent=0 message received by mcabber |
429 * sent=0 message received by mcabber |
430 * sent=-1 local info message |
430 * sent=-1 local info message |
436 else |
436 else |
437 info = 'I'; |
437 info = 'I'; |
438 write_histo_line(bjid, timestamp, 'M', info, msg); |
438 write_histo_line(bjid, timestamp, 'M', info, msg); |
439 } |
439 } |
440 |
440 |
441 inline void hlog_write_status(const char *bjid, time_t timestamp, |
441 void hlog_write_status(const char *bjid, time_t timestamp, |
442 enum imstatus status, const char *status_msg) |
442 enum imstatus status, const char *status_msg) |
443 { |
443 { |
444 // XXX Check status value? |
444 // XXX Check status value? |
445 write_histo_line(bjid, timestamp, 'S', toupper(imstatus2char[status]), |
445 write_histo_line(bjid, timestamp, 'S', toupper(imstatus2char[status]), |
446 status_msg); |
446 status_msg); |
447 } |
447 } |