10#ifndef EngageNetworkDevice_h
11#define EngageNetworkDevice_h
19#if !defined(ENGAGE_API)
23 #define ENGAGE_API __declspec(dllexport) extern
25 #define ENGAGE_API extern
28 #define ENGAGE_API __attribute__ ((visibility ("default")))
125 const char *jsonMetaData,
static const int ENGAGE_NETWORK_DEVICE_RESULT_OK
Everything is fine.
static const int ENGAGE_NETWORK_DEVICE_INVALID_CONFIGURATION
Unable to register device due to invalid configuration.
ENGAGE_API int16_t engageNetworkDeviceUnregister(int16_t deviceId)
[SYNC] Unregisters a network device
EngageNetworkDeviceCtlOp_t
Network Device Control Operation enum.
@ enetStart
Start operation.
@ enetStop
Stop operation.
static const int ENGAGE_NETWORK_DEVICE_INVALID_OPERATION
An invalid operation has been attempted.
int(* PFN_ENGAGE_NETWORK_DEVICE_CTL)(int16_t deviceId, EngageNetworkDeviceCtlOp_t op, const char *jsonMetaData, uintptr_t p1, uintptr_t p2, uintptr_t p3, uintptr_t p4, uintptr_t p5)
Network Device Control instance control pointer.
static const int ENGAGE_NETWORK_DEVICE_INVALID_DEVICE_ID
Invalid deviceId.
static const int ENGAGE_NETWORK_DEVICE_INVALID_INSTANCE_ID
Invalid instanceId.
ENGAGE_API int16_t engageNetworkDeviceRegister(const char *jsonConfiguration, PFN_ENGAGE_NETWORK_DEVICE_CTL pfnCtl)
[SYNC] Registers a network device with the Engine
static const int ENGAGE_NETWORK_DEVICE_INVALID_COMBINED_DEVICE_ID_AND_INSTANCE_ID
Invalid deviceId and instanceId.
static const int ENGAGE_NETWORK_DEVICE_GENERAL_ERROR
A general error occurred.