aboutsummaryrefslogtreecommitdiff
path: root/sntp/kod_management.h
blob: 70903a52a2e4265961018706d67c5fdec8c4710d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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(char *hostname, struct kod_entry **dst);

void add_entry(char *hostname, char *type);
void delete_entry(char *hostname, char *type);
void kod_init_kod_db(const char *db_file);
void write_kod_db(void);


#endif