#ifndef LOG_THROTTLE_H
#define LOG_THROTTLE_H
struct log_throttle_settings {
unsigned int throttle_at_max_per_interval;
/* Throttling continues until there's only this many or below
unsigned int unthrottle_at_max_per_interval;
/* Interval unit in milliseconds. The throttled-callback is also called
at this interval. Default (0) is 1000 milliseconds. */
unsigned int interval_msecs;
};
typedef void
struct log_throttle *
log_throttle_init(set + \
/* Increase event count. Returns TRUE if the event should be logged,
FALSE if it's throttled. ioloop_timeval is used to determine the current
time. */
#endif