xref: /netbsd-src/external/bsd/ntp/dist/sntp/kod_management.h (revision cdfa2a7ef92791ba9db70a584a1d904730e6fb46)
1 /*	$NetBSD: kod_management.h,v 1.5 2020/05/25 20:47:32 christos Exp $	*/
2 
3 #ifndef KOD_MANAGEMENT_H
4 #define KOD_MANAGEMENT_H
5 
6 #include <time.h>
7 
8 struct kod_entry {
9 	char hostname[255];
10 	time_t timestamp;
11 	char type[5];
12 };
13 
14 int search_entry(const char *hostname, struct kod_entry **dst);
15 void add_entry(const char *hostname, const char *type);
16 void delete_entry(const char *hostname, const char *type);
17 void kod_init_kod_db(const char *db_file, int readonly);
18 int  write_kod_db(void);
19 void atexit_write_kod_db(void);
20 
21 
22 #endif
23