]> git.meshlink.io Git - meshlink/commit
Use a key/value store with configurable storage callbacks.
authorGuus Sliepen <guus@meshlink.io>
Sun, 9 Oct 2022 19:02:31 +0000 (21:02 +0200)
committerGuus Sliepen <guus@meshlink.io>
Fri, 14 Oct 2022 14:29:21 +0000 (16:29 +0200)
commit2edc54a7728084cc024b12e64a1c7c7eb533bb93
tree9b9c5abde5dc04c9454a4fa9774cbd839e650904
parent22cdfa47418f42bde9e51bfbc864f2aefc05667e
Use a key/value store with configurable storage callbacks.

For greater flexibility with how configuration files are stored, we
assume a key/value store, and allow the application to provide callbacks
for storing and loading values, and listing all the keys. By default, we
use the filesystem as a backing store, with one file per key in a flat
directory.
20 files changed:
configure.ac
src/conf.c
src/conf.h
src/devtools.c
src/devtools.h
src/meshlink++.h
src/meshlink.c
src/meshlink.h
src/meshlink.sym
src/meshlink_internal.h
src/net_setup.c
src/protocol_auth.c
test/Makefile.am
test/basic.c
test/basicpp.cpp
test/blacklist.c
test/encrypted.c
test/invite-join.c
test/storage-callbacks.cpp [new file with mode: 0644]
test/utils.h