mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-08 13:39:25 -04:00
23 lines
524 B
C
23 lines
524 B
C
/* $NetBSD: kod_management.h,v 1.3 2015/07/10 14:20:33 christos Exp $ */
|
|
|
|
#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
|