1*2b15cb3dSCy Schubert #ifndef KOD_MANAGEMENT_H 2*2b15cb3dSCy Schubert #define KOD_MANAGEMENT_H 3*2b15cb3dSCy Schubert 4*2b15cb3dSCy Schubert #include <time.h> 5*2b15cb3dSCy Schubert 6*2b15cb3dSCy Schubert struct kod_entry { 7*2b15cb3dSCy Schubert char hostname[255]; 8*2b15cb3dSCy Schubert time_t timestamp; 9*2b15cb3dSCy Schubert char type[5]; 10*2b15cb3dSCy Schubert }; 11*2b15cb3dSCy Schubert 12*2b15cb3dSCy Schubert int search_entry(const char *hostname, struct kod_entry **dst); 13*2b15cb3dSCy Schubert void add_entry(const char *hostname, const char *type); 14*2b15cb3dSCy Schubert void delete_entry(const char *hostname, const char *type); 15*2b15cb3dSCy Schubert void kod_init_kod_db(const char *db_file, int readonly); 16*2b15cb3dSCy Schubert int write_kod_db(void); 17*2b15cb3dSCy Schubert void atexit_write_kod_db(void); 18*2b15cb3dSCy Schubert 19*2b15cb3dSCy Schubert 20*2b15cb3dSCy Schubert #endif 21