aboutsummaryrefslogtreecommitdiff
path: root/contrib/ntp/sntp/kod_management.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/sntp/kod_management.h')
-rw-r--r--contrib/ntp/sntp/kod_management.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/ntp/sntp/kod_management.h b/contrib/ntp/sntp/kod_management.h
new file mode 100644
index 000000000000..37089f2096b8
--- /dev/null
+++ b/contrib/ntp/sntp/kod_management.h
@@ -0,0 +1,20 @@
+#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