Closed snej closed 10 years ago
In the public API in forestdb.h, please add the const qualifier to function parameters that take pointers but do not modify the memory pointed to. For example,
forestdb.h
const
fdb_status fdb_open(fdb_handle *handle, char *filename, fdb_config *config);
should be
fdb_status fdb_open(fdb_handle *handle, const char *filename, const fdb_config *config);
This issue was fixed by adapting fdb_open API, so that a config JSON doc is passed to fdb_open API.
In the public API in
forestdb.h
, please add theconst
qualifier to function parameters that take pointers but do not modify the memory pointed to. For example,should be