Main API of the stack for client and server.
void(* oc_programming_mode_cb_t)(size_t device, bool programming_mode, void *data)
Set the programming mode callback NOTE: It is the responsibility of this callback (if registered),...
void(* oc_restart_cb_t)(size_t device, void *data)
Callback invoked by the stack to invoke a restart.
void(* oc_hostname_cb_t)(size_t device, oc_string_t host_name, void *data)
Callback invoked by the stack to set the host name.
void(* oc_reset_cb_t)(size_t device, int reset_value, void *data)
Callback invoked by the stack initialization to perform any application reset.
void(* oc_factory_presets_cb_t)(size_t device, void *data)
Callback invoked by the stack initialization to perform any "factory settings", e....
void(* oc_lsm_change_cb_t)(size_t device, oc_lsm_state_t lsm_state, void *data)
Callback invoked by the stack to inform the change of the lsm.
oc_programming_mode_t * oc_get_programming_mode_cb(void)
retrieve the programming mode info, e.g.
struct oc_hostname_t oc_hostname_t
The hostname info.
struct oc_restart_t oc_restart_t
The restart info.
oc_factory_presets_t * oc_get_factory_presets_cb(void)
retrieve the factory reset info, e.g.
bool oc_drop_command(size_t device)
Get status of dropping of logical device.
oc_hostname_t * oc_get_hostname_cb(void)
retrieve the hostname info, e.g.
struct oc_programming_mode_t oc_programming_mode_t
The programming mode info.
struct oc_loadstate_t oc_loadstate_t
The lsm change info.
oc_loadstate_t * oc_get_lsm_change_cb(void)
retrieve the lsm change info, e.g.
bool oc_main_initialized(void)
is main initialized
struct oc_factory_presets_t oc_factory_presets_t
The factory presets info.
oc_reset_t * oc_get_reset_cb(void)
retrieve the reset info, e.g.
struct oc_reset_t oc_reset_t
The reset info.
oc_restart_t * oc_get_restart_cb(void)
retrieve the restart info, e.g.
void oc_set_drop_commands(size_t device, bool drop)
Set acceptance of new commands(GET/PUT/POST/DELETE) for logical device.
The factory presets info.
void * data
the callback user data
oc_factory_presets_cb_t cb
the callback
void * data
the callback user data
oc_hostname_cb_t cb
the callback
void * data
the callback user data
oc_lsm_change_cb_t cb
the callback
The programming mode info.
oc_programming_mode_cb_t cb
the callback
void * data
the callback user data
void * data
the callback user data
oc_reset_cb_t cb
the callback
void * data
the callback user data
oc_restart_cb_t cb
the callback