no-logging.c 726 B

123456789101112131415161718192021
  1. /*
  2. * Stub module implementing the logging API for tools that don't do
  3. * session logging.
  4. */
  5. #include "putty.h"
  6. void logtraffic(LogContext *ctx, unsigned char c, int logmode) {}
  7. void logflush(LogContext *ctx) {}
  8. void logevent(LogContext *ctx, const char *event) {}
  9. void log_free(LogContext *ctx) {}
  10. void log_reconfig(LogContext *ctx, Conf *conf) {}
  11. void log_packet(LogContext *ctx, int direction, int type,
  12. const char *texttype, const void *data, size_t len,
  13. int n_blanks, const struct logblank_t *blanks,
  14. const unsigned long *seq,
  15. unsigned downstream_id, const char *additional_log_text) {}
  16. LogContext *log_init(LogPolicy *lp, Conf *conf)
  17. { return NULL; }