diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-07-28 19:08:43 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-07-28 19:08:43 -0700 |
commit | a56723cbb6424e1d49289efceeb9c251eed324bb (patch) | |
tree | 79f97da29cc8e1aa972ec978703622a61a34ae5b /src/cstore/cstore-c.cpp | |
parent | de31f1befb8a92cecadd0c716f7313bd578511f9 (diff) | |
download | vyatta-cfg-a56723cbb6424e1d49289efceeb9c251eed324bb.tar.gz vyatta-cfg-a56723cbb6424e1d49289efceeb9c251eed324bb.zip |
add cstore-specific header file
Diffstat (limited to 'src/cstore/cstore-c.cpp')
-rw-r--r-- | src/cstore/cstore-c.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/cstore/cstore-c.cpp b/src/cstore/cstore-c.cpp index 3215707..0e25b3c 100644 --- a/src/cstore/cstore-c.cpp +++ b/src/cstore/cstore-c.cpp @@ -18,8 +18,8 @@ #include <vector> #include <string> -#include "cstore-c.h" -#include "cstore/unionfs/cstore-unionfs.hpp" +#include <cstore/cstore-c.h> +#include <cstore/unionfs/cstore-unionfs.hpp> void * cstore_init(void) @@ -80,12 +80,13 @@ cstore_cfg_path_exists(void *handle, const char *path_comps[], int num_comps) } int -cstore_get_var_ref(void *handle, const char *ref_str, clind_val *cval, - int from_active) +cstore_get_var_ref(void *handle, const char *ref_str, vtw_type_e *type, + char **val, int from_active) { if (handle) { Cstore *cs = (Cstore *) handle; - return (cs->getVarRef(ref_str, *cval, from_active) ? 1 : 0); + *val = cs->getVarRef(ref_str, *type, from_active); + return (*val ? 1 : 0); } return 0; } |