DCSModulesAPI
1.0.0
DCS sub project containing all the control modules as libraries.
|
Autogenerated class responsible for registering any function calls that might be requested via tcp/ip. More...
#include <registry.h>
Classes | |
struct | SVParams |
Auto-generated class that allows for buffer <-> parameters conversion. More... | |
struct | SVReturn |
Holds messages return types. More... | |
Public Types | |
typedef void(* | EventCallbackFunc) (u8 *data, u8 *userData) |
Static Public Member Functions | |
static DCS_API const u16 | Get (const char *func_signature) |
Get a function id [SV_CALL_*] by function name. Syntax: ["ns::func"] Example: "DCS::Threading::GetMaxHardwareConcurrency" -> Returns: SV_CALL_DCS_Threading_GetMaxHardwareConcurrency. | |
static DCS_API const i32 | SetupEvent (unsigned char *buffer, u8 id, EventCallbackFunc f, u8 *userData=nullptr) |
Set up event to subscribe by ID SV_EVT_*. | |
static DCS_API const i32 | RemoveEvent (unsigned char *buffer, u8 id) |
Set up event to unsubscribe by ID SV_EVT_*. | |
static DCS_API const EventCallbackFunc | GetEventCallback (u8 id) |
static DCS_API const bool | CheckEvent (u8 id) |
static DCS_API const u8 | GetEvent (const char *func) |
static DCS_API u8 * | GetEventUserData (u8 id) |
static DCS_API void | SetEvent (u8 id) |
static DCS_API void | UnsetEvent (u8 id) |
static DCS_API SVReturn | Execute (SVParams params) |
Autogenerated class responsible for registering any function calls that might be requested via tcp/ip.
An hash table is auto generated via the DCS_REGISTER_CALL token. Any function declarated with it shall be registered in the hash table and attributed an id callable via the Registry::Execute*() function family.