diff options
Diffstat (limited to 'src/include/usr/hwpf/fapi/fapiHwpExecutor.H')
-rw-r--r-- | src/include/usr/hwpf/fapi/fapiHwpExecutor.H | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/include/usr/hwpf/fapi/fapiHwpExecutor.H b/src/include/usr/hwpf/fapi/fapiHwpExecutor.H new file mode 100644 index 000000000..d10e8f4a3 --- /dev/null +++ b/src/include/usr/hwpf/fapi/fapiHwpExecutor.H @@ -0,0 +1,26 @@ +/** + * @file fapiHwpExecutor.H + * + * @brief Defines the FAPI HWP Executor Macro. + * + * The FAPI HWP Executor macro is called when a PLAT invoker function or a HWP + * wants to execute a HWP. + */ + +#ifndef FAPIHWPEXECUTOR_H_ +#define FAPIHWPEXECUTOR_H_ + +#include <fapiPlatHwpExecutor.H> + +/** + * @brief HWP Executor macro + * + * This macro calls a PLAT macro which will do any platform specific work to + * execute the HWP (e.g. dlopening a shared library) and then calls a function + * on the ReturnCode to store the error target if there is an error + */ +#define FAPI_EXEC_HWP(RC, FUNC, TARGET, _args_...) \ + FAPI_PLAT_EXEC_HWP(RC, FUNC, TARGET, ##_args_); \ + RC.setErrTarget(TARGET) + +#endif // FAPIHWPEXECUTOR_H_ |