]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/sntp/kod_management.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / sntp / kod_management.h
1 #ifndef KOD_MANAGEMENT_H
2 #define KOD_MANAGEMENT_H
3
4 #include <time.h>
5
6 struct kod_entry {
7         char hostname[255];
8         time_t timestamp;
9         char type[5];
10 };
11
12 int search_entry(const char *hostname, struct kod_entry **dst);
13 void add_entry(const char *hostname, const char *type);
14 void delete_entry(const char *hostname, const char *type);
15 void kod_init_kod_db(const char *db_file, int readonly);
16 int  write_kod_db(void);
17 void atexit_write_kod_db(void);
18
19
20 #endif