Files
FTL/overTime.h
T
DL6ER ff12c1b601 Add overTime.h header
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-07-01 12:35:50 +02:00

28 lines
731 B
C

/* Pi-hole: A black hole for Internet advertisements
* (c) 2018 Pi-hole, LLC (https://pi-hole.net)
* Network-wide ad blocking via your own hardware.
*
* FTL Engine
* Over Time data header
*
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
#ifndef OVERTIME_H
#define OVERTIME_H
void initOverTime(void);
unsigned int getOverTimeID(const time_t timestamp);
/**
* Move the overTime slots so the oldest interval starts with mintime. The time
* given will be aligned to OVERTIME_INTERVAL.
*
* @param mintime The start of the oldest interval
*/
void moveOverTimeMemory(const time_t mintime);
extern overTimeData *overTime;
#endif //OVERTIME_H