-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Jan Horacek edited this page Dec 24, 2019
·
19 revisions
This wiki describes API is implemented by XpressNET library via public functions.
This allows XpressNET library to be used as .dll
or .so
dynamically.
This feature is used by hJOPserver.
This file describes XN library API, however, this API is designed to be used with any system supporting locomotive control (e.g. LocoNET). This is generalized by name trakce.
enum class TrkStatus {
Unknown,
Off,
On,
Programming,
};
using CommandCallbackFunc = void(*)(void *sender, void *data);
struct CommandCallback {
CommandCallbackFunc const func;
void *const data;
};
using Cb = CommandCallback;