Function events_add_hook()

Insert hook into the event drivers interrupt hook queue.

enum status_code events_add_hook(
		struct events_resource * resource,
		struct events_hook * hook)

Inserts a hook into the event drivers interrupt hook queue.

Table 1. Parameters
Data direction Parameter name Description

[in]

resource

Pointer to an events_resource struct instance

[in]

hook

Pointer to an events_hook struct instance

Returns

Status of the insertion procedure.

Table 2. Return Values
Return value Description

STATUS_OK

Insertion of hook went successful