2021-01-01 03:52:25 +00:00
|
|
|
#include "zig.h"
|
|
|
|
|
|
|
|
extern EB_Error_Code hookCallback(
|
2021-01-09 23:22:43 +00:00
|
|
|
EB_Book* book,
|
|
|
|
EB_Appendix* appendix,
|
|
|
|
void* container,
|
|
|
|
EB_Hook_Code hookCode,
|
|
|
|
int argc,
|
|
|
|
const unsigned int argv[]
|
2021-01-01 03:52:25 +00:00
|
|
|
);
|
|
|
|
|
2021-01-01 04:35:21 +00:00
|
|
|
EB_Error_Code installHook(EB_Hookset* hookset, EB_Hook_Code hookCode) {
|
|
|
|
const EB_Hook hook = {hookCode, hookCallback};
|
|
|
|
return eb_set_hook(hookset, &hook);
|
2021-01-01 03:52:25 +00:00
|
|
|
}
|