]> git.meshlink.io Git - meshlink-tiny/commit
Use a key/value store with configurable storage callbacks. feature/storage-callbacks
authorGuus Sliepen <guus@meshlink.io>
Sun, 14 Nov 2021 15:35:09 +0000 (16:35 +0100)
committerGuus Sliepen <guus@meshlink.io>
Thu, 2 Dec 2021 21:42:40 +0000 (22:42 +0100)
commitf4293a03ffa93c1c6e7062790fc63837cd0efa82
tree9f6c585befb4e8004dfd12b653a98d026bef2355
parent0e1b8267961b673d6ff4746e133d3d85ed8c3c5a
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.
13 files changed:
examples/chat.c
src/conf.c
src/conf.h
src/devtools.c
src/devtools.h
src/meshlink-tiny.h
src/meshlink.c
src/meshlink.sym
src/meshlink_internal.h
src/net_setup.c
test/basic.c
test/encrypted.c
test/invite-join.c