1258945Sroberto#ifndef KOD_MANAGEMENT_H
2258945Sroberto#define KOD_MANAGEMENT_H
3258945Sroberto
4258945Sroberto#include <time.h>
5258945Sroberto
6258945Srobertostruct kod_entry {
7258945Sroberto	char hostname[255];
8258945Sroberto	time_t timestamp;
9258945Sroberto	char type[5];
10258945Sroberto};
11258945Sroberto
12280849Scyint search_entry(const char *hostname, struct kod_entry **dst);
13280849Scyvoid add_entry(const char *hostname, const char *type);
14280849Scyvoid delete_entry(const char *hostname, const char *type);
15280849Scyvoid kod_init_kod_db(const char *db_file, int readonly);
16280849Scyint  write_kod_db(void);
17280849Scyvoid atexit_write_kod_db(void);
18258945Sroberto
19258945Sroberto
20258945Sroberto#endif
21