Base module

Action

Default action type for executing synchronized callbacks.

Action

#include <icy/ipc.h>

Default action type for executing synchronized callbacks.

Public Attributes

ReturnNameDescription
CallbacktargetThe callable to invoke when the action is dispatched.
void *argOptional opaque pointer passed to the callback.
std::stringdataOptional string payload passed to the callback.

target

Callback target

The callable to invoke when the action is dispatched.


arg

void * arg

Optional opaque pointer passed to the callback.


data

std::string data

Optional string payload passed to the callback.

Public Methods

ReturnNameDescription
Action inlineConstructs an Action with the given callback, optional argument, and optional data.

Action

inline

inline Action(Callback target, void * arg, const std::string & data)

Constructs an Action with the given callback, optional argument, and optional data.

Parameters

  • target Callback to invoke on dispatch.

  • arg Opaque pointer passed to the callback (default: nullptr).

  • data String payload passed to the callback (default: empty).

Public Types

NameDescription
Callback

Callback

std::function< void(const Action &)> Callback()