add 2 chapters to

Lars Rohwedder 7 years ago
parent 94c2a7132e
commit 0cb2c71a6e

@ -21,6 +21,7 @@ Maybe Debian Jessie's version 2.0 also works well, I never tried.
* edit the library and include paths server/Makefile so p≡p & libevent will be found
* run "make" in the server/ path
3. Running
* run ./mt-server
@ -28,3 +29,39 @@ Maybe Debian Jessie's version 2.0 also works well, I never tried.
* call some functions ("version()" or "get_gpg_path()" should work just fine)
4. Extending / Customizing
* The 'FunctionMap function' in defines which functions are
callable via the JSON-RPC interface. The existing entries show the syntax
of that map.
* At the moment only functions with a non-void return type ere supported.
It is possible to extend the FunctionMap to support also void-returning
functions if desired, but it would require more template specializations
in function_map.hh etc. The alternative is a helper function that calls
the void function and just returns a dummy value.
* The current implementation supports input and output parameters, no "inout".
* For each type there must exist specializations of the template classes
"In" (for input parameters) and "Out" (for output parameters).
The linker will tell you, which specializations are needed. ;-)
* The specializations for "generic types" are in
* The specializations for "p≡p-specific types" are in
* Add unit tests (I'd suggest GoogleTest/gtest? Any complaints?)
* Fix the bugs that are found by the Unit tests, if any.
* Let's generate all the tedious boiler plate code
* the content of
* perhaps the FunctionMap 'function' in
* perhaps the JavaScript side of the HTML test page to ensure to be
consistent with the server side in
* Adapt the "p≡p Transport API", when it is final.
(either manually or by code generator, if ready)