Rtos API example

Embed: (wiki syntax)

« Back to documentation index

handlers_t Struct Reference

handlers_t Struct Reference
[Frameworks]

A table of handlers. More...

#include <utest_default_handlers.h>

Inherited by DefaultHandlers.


Detailed Description

A table of handlers.

This structure stores all modifyable handlers and provides accessors to filter out the default handler. So if this structure contains handlers, and you want to use these handlers as a default backup, you can use the `get_handler` function to choose the right handler.

Example:

 const handler_t defaults = { ... }; // your default handlers
 // will return the handler in defaults.
 test_setup_handler_t handler = defaults.get_handler(default_handler);
 // you will still need to manually check the handler before executing it
 if (handler != ignore_handler) handler(...);

 extern test_teardown_handler_t custom_handler(...);
 // will return `custom_handler`
 test_teardown_handler_t handler = defaults.get_handler(custom_handler);
 // you will still need to manually check the handler before executing it
 if (handler != ignore_handler) handler(...);

Definition at line 101 of file utest_default_handlers.h.