freebsd-skq/contrib/ntp/sntp/kod_management.h
Cy Schubert 2b15cb3d09 MFV ntp 4.2.8p1 (r258945, r275970, r276091, r276092, r276093, r278284)
Thanks to roberto for providing pointers to wedge this into HEAD.

Approved by:	roberto
2015-03-30 13:30:15 +00:00

21 lines
450 B
C

#ifndef KOD_MANAGEMENT_H
#define KOD_MANAGEMENT_H
#include <time.h>
struct kod_entry {
char hostname[255];
time_t timestamp;
char type[5];
};
int search_entry(const char *hostname, struct kod_entry **dst);
void add_entry(const char *hostname, const char *type);
void delete_entry(const char *hostname, const char *type);
void kod_init_kod_db(const char *db_file, int readonly);
int write_kod_db(void);
void atexit_write_kod_db(void);
#endif