X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Finclude%2Flttv%2Fhook.h;h=e3417d0124ce1f0cabd50ab2580118fcfee7796d;hb=fcdf0ec203524819d926c57c9aa4d2fb6a268ca1;hp=b5e6ed8d97b42ee19e0574a91995456a76b89ec2;hpb=8445ab65087e37b1aadd1bb20f9a3b5b6625b3cf;p=lttv.git diff --git a/ltt/branches/poly/include/lttv/hook.h b/ltt/branches/poly/include/lttv/hook.h index b5e6ed8d..e3417d01 100644 --- a/ltt/branches/poly/include/lttv/hook.h +++ b/ltt/branches/poly/include/lttv/hook.h @@ -6,8 +6,8 @@ /* A hook is a function to call with the supplied hook data, and with call site specific data (e.g., hooks for events are called with a pointer to the current event). */ - -typedef bool (*lttv_hook)(void *hook_data, void *call_data); +// MD compile fix: int instead of bool as return value +typedef int (*lttv_hook)(void *hook_data, void *call_data); /* A list of hooks allows registering hooks to be called later. */ @@ -29,9 +29,9 @@ void lttv_hooks_get(lttv_hooks *h, unsigned i, lttv_hook *f, void **hook_data); void lttv_hooks_remove_by_position(lttv_hooks *h, unsigned i); -bool lttv_hooks_call(lttv_hooks *h, void *call_data); +int lttv_hooks_call(lttv_hooks *h, void *call_data); -bool lttv_hooks_call_check(lttv_hooks *h, void *call_data); +int lttv_hooks_call_check(lttv_hooks *h, void *call_data); /* Sometimes different hooks need to be called based on the case. The