Files
xahaud/hook/examples/accept/accept.c
2022-06-07 11:23:58 +00:00

20 lines
379 B
C

/**
* This hook just accepts any transaction coming through it
*/
#define HAS_CALLBACK
#include "../hookapi.h"
int64_t cbak(uint32_t reserved) {
return 0;
}
int64_t hook(uint32_t reserved ) {
TRACESTR("Accept.c: Called.");
accept (0,0,0);
_g(1,1); // every hook needs to import guard function and use it at least once
// unreachable
return 0;
}