kod_management.h revision 280849
1184610Salfred#ifndef KOD_MANAGEMENT_H 2184610Salfred#define KOD_MANAGEMENT_H 3184610Salfred 4184610Salfred#include <time.h> 5184610Salfred 6184610Salfredstruct kod_entry { 7184610Salfred char hostname[255]; 8184610Salfred time_t timestamp; 9184610Salfred char type[5]; 10184610Salfred}; 11184610Salfred 12184610Salfredint search_entry(const char *hostname, struct kod_entry **dst); 13184610Salfredvoid add_entry(const char *hostname, const char *type); 14184610Salfredvoid delete_entry(const char *hostname, const char *type); 15184610Salfredvoid kod_init_kod_db(const char *db_file, int readonly); 16184610Salfredint write_kod_db(void); 17184610Salfredvoid atexit_write_kod_db(void); 18184610Salfred 19184610Salfred 20184610Salfred#endif 21184610Salfred