Base module
Action
Default action type for executing synchronized callbacks.
Action
#include <icy/ipc.h>struct ActionDefined in src/base/include/icy/ipc.h:33
Default action type for executing synchronized callbacks.
List of all members
| Name | Kind | Owner |
|---|---|---|
target | variable | Declared here |
arg | variable | Declared here |
data | variable | Declared here |
Action | function | Declared here |
Callback | typedef | Declared here |
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 targetDefined 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
targetCallback to invoke on dispatch.argOpaque pointer passed to the callback (default: nullptr).dataString payload passed to the callback (default: empty).
Public Types
| Name | Description |
|---|---|
Callback |
Callback
using Callback = std::function< void(const Action &)>