PMEMKV_JSON_CONFIG(3) | PMEMKV Programmer's Manual | PMEMKV_JSON_CONFIG(3) |
pmemkv_json_config - helper configuration API for libpmemkv
#include <libpmemkv_json_config.h> int pmemkv_config_from_json(pmemkv_config *config, const char *jsonconfig); const char *pmemkv_config_from_json_errormsg(void);
For general description of pmemkv and available engines see libpmemkv(7). For description of pmemkv core API see libpmemkv(3). For description of configuration API for libpmemkv see libpmemkv_config(3).
pmemkv_json_config is a helper library that provides two functions:
The `pmemkv_config_from_json' function depends on RapidJSON library what is the direct cause of the creation of this small library.
The building of this library is enabled by default. It can be disabled by setting the BUILD_JSON_CONFIG CMake variable to OFF:
cmake .. -DBUILD_JSON_CONFIG=OFF
The pmemkv_config_from_json() function returns status. Possible return values are:
An example can be found in libpmemkv_config(3).
libpmemkv(7), libpmemkv(3), libpmemkv_config(3) and <https://pmem.io>
2021-02-15 | PMEMKV - pmemkv_json_config version 1.4 |