Function events_del_hook()

Remove hook from the event drivers interrupt hook queue.

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

Removes a hook from 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 removal procedure.

Table 2. Return Values
Return value Description

STATUS_OK

Removal of hook went successful

STATUS_ERR_NO_MEMORY

There are no hooks instances in the event driver interrupt hook list

STATUS_ERR_NOT_FOUND

Interrupt hook not found in the event drivers interrupt hook list