cctools
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
dttools
src
nvpair_database.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2008- The University of Notre Dame
3
This software is distributed under the GNU General Public License.
4
See the file COPYING for details.
5
*/
6
7
#ifndef NVPAIR_DATABASE_H
8
#define NVPAIR_DATABASE_H
9
10
#include "
nvpair.h
"
11
#include "int_sizes.h"
12
26
struct
nvpair_database *
nvpair_database_open
(
const
char
*filename);
27
31
void
nvpair_database_close
(
struct
nvpair_database *db);
32
38
int
nvpair_database_insert
(
struct
nvpair_database *db, UINT64_T * key,
struct
nvpair *nv);
39
45
struct
nvpair *
nvpair_database_remove
(
struct
nvpair_database *db, UINT64_T key);
46
52
struct
nvpair *
nvpair_database_lookup
(
struct
nvpair_database *db, UINT64_T key);
53
61
int
nvpair_database_update_string
(
struct
nvpair_database *db, UINT64_T key,
const
char
*name,
const
char
*value);
62
70
int
nvpair_database_update_integer
(
struct
nvpair_database *db, UINT64_T key,
const
char
*name, INT64_T value);
71
78
const
char
*
nvpair_database_lookup_string
(
struct
nvpair_database *db, UINT64_T key,
const
char
*name);
79
86
INT64_T
nvpair_database_lookup_integer
(
struct
nvpair_database *db, UINT64_T key,
const
char
*name);
87
91
void
nvpair_database_firstkey
(
struct
nvpair_database *db);
92
99
int
nvpair_database_nextkey
(
struct
nvpair_database *db, UINT64_T * key,
struct
nvpair **nv);
100
101
#endif
Generated on Sun Mar 16 2014 07:12:21 for cctools by
1.8.1.2