]> git.meshlink.io Git - meshlink/commit - src/meshlink++.h
Add an error callback.
authorGuus Sliepen <guus@meshlink.io>
Mon, 7 Oct 2019 19:00:01 +0000 (21:00 +0200)
committerGuus Sliepen <guus@meshlink.io>
Mon, 7 Oct 2019 19:00:01 +0000 (21:00 +0200)
commit4216a7e7a1897c0e34ce82e7c2c4cc82070c7b10
tree420479188d48d3a251ad5827a192c5b3772f09ae
parent1e2076334fd067db863956c7bda77fcbcc9a52fc
Add an error callback.

Normally, API functions report potential errors. However, it might happen
that the background thread runs into a serious error that prevents
MeshLink from operating as expected. Add a callback that is called in those
cases.

Currently, the only time it is called is when it can not create or modify
config files in the background thread.
src/meshlink++.h
src/meshlink.c
src/meshlink.h
src/meshlink.sym
src/meshlink_internal.h
src/net_setup.c