00001 /* 00002 Copyright (C) 2012- The University of Notre Dame 00003 This software is distributed under the GNU General Public License. 00004 See the file COPYING for details. 00005 */ 00006 00007 #ifndef NVPAIR_DATABASE_H 00008 #define NVPAIR_DATABASE_H 00009 00057 #include "nvpair.h" 00058 00064 struct nvpair_database * nvpair_database_create( const char *logdir ); 00065 00073 void nvpair_database_insert( struct nvpair_database *db, const char *key, struct nvpair *nv ); 00074 00081 struct nvpair * nvpair_database_lookup( struct nvpair_database *db, const char *key ); 00082 00090 struct nvpair * nvpair_database_remove( struct nvpair_database *db, const char *key ); 00091 00099 void nvpair_database_firstkey( struct nvpair_database *db ); 00100 00109 int nvpair_database_nextkey( struct nvpair_database *db, char **key, struct nvpair **nv ); 00110 00111 #endif