Base module
Action
Default action type for executing synchronized callbacks.
#include <icy/ipc.h>
struct ActionDefined in src/base/include/icy/ipc.h:33
Public Attributes
| Return | Name | Description |
|---|---|---|
Callback | target | The callable to invoke when the action is dispatched. |
void * | arg | Optional opaque pointer passed to the callback. |
std::string | data | Optional string payload passed to the callback. |
target
Callback targetType: Callback
Defined in src/base/include/icy/ipc.h:37
The callable to invoke when the action is dispatched.
arg
void * argDefined in src/base/include/icy/ipc.h:38
Optional opaque pointer passed to the callback.
data
std::string dataDefined in src/base/include/icy/ipc.h:39
Optional string payload passed to the callback.
Public Methods
| Return | Name | Description |
|---|---|---|
Action inline | Constructs an Action with the given callback, optional argument, and optional data. |
Action
inline
inline Action(Callback target, void * arg = nullptr, const std::string & data = "")Defined in src/base/include/icy/ipc.h:45
Constructs an Action with the given callback, optional argument, and optional data.
Parameters
| Parameter | Type | Description |
|---|---|---|
target | Callback | Callback to invoke on dispatch. |
arg | void * | Opaque pointer passed to the callback (default: nullptr). |
data | const std::string & | String payload passed to the callback (default: empty). |
Public Types
| Name | Description |
|---|---|
Callback |
Callback
using Callback = std::function< void(const Action &)>Type: std::function< void(const Action &)>
