chiark / gitweb /
journal-remote: split out µhttpd support and main() into a separate file
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 16 May 2018 08:21:58 +0000 (10:21 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commita1517bda5fc61271bc01ba7424b70e94a56e35a9
treef5a4ba7b8366f5d26b90a9e46d0c6b5a5a988939
parent646433bd0a89a471cebff2f89dccc9f2e5fe3543
journal-remote: split out µhttpd support and main() into a separate file

This is in preparation to reusing the RemoteServer in other concepts.
I tried to keep changes to minimum:
- arg_* global variables are now passed as state in RemoteServer
- exported functions get the "journal_remote_" prefix
- some variables are renamed

In particular, there is an ugly global RemoveServer* variable. It was originally
added because µhttpd did not allow state to be passed to the callbacks. I'm not
sure if this has been remediated in µhttpd, but either way, this is not changed
here, the global variable is only renamed for clarity.
meson.build