Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

nvpair_database.h

Go to the documentation of this file.
00001 
00002 #ifndef NVPAIR_DATABASE_H
00003 #define NVPAIR_DATABASE_H
00004 
00005 #include "nvpair.h"
00006 #include "int_sizes.h"
00007 
00021 struct nvpair_database * nvpair_database_open( const char *filename );
00022 
00026 void nvpair_database_close( struct nvpair_database *db );
00027 
00033 int nvpair_database_insert( struct nvpair_database *db, INT64_T *key, struct nvpair *nv );
00034 
00040 struct nvpair * nvpair_database_remove( struct nvpair_database *db, INT64_T key );
00041 
00047 struct nvpair * nvpair_database_lookup( struct nvpair_database *db, INT64_T key );
00048 
00056 int nvpair_database_update_string( struct nvpair_database *db, INT64_T key, const char *name, const char *value );
00057 
00065 int nvpair_database_update_integer( struct nvpair_database *db, INT64_T key, const char *name, INT64_T value );
00066 
00073 const char * nvpair_database_lookup_string( struct nvpair_database *db, INT64_T key, const char *name );
00074 
00081 INT64_T nvpair_database_lookup_integer( struct nvpair_database *db, INT64_T key, const char *name );
00082 
00086 void nvpair_database_firstkey( struct nvpair_database *db );
00087 
00094 int nvpair_database_nextkey( struct nvpair_database *db, INT64_T *key, struct nvpair **nv );
00095 
00096 #endif

Generated on Thu Jul 2 15:49:25 2009 for cctools by  doxygen 1.3.9.1