struct afb_api_itf api_itf_null = {
.call = NULL,
.service_start = NULL,
+#if WITH_AFB_HOOK
.update_hooks = NULL,
+#endif
.get_logmask = NULL,
.set_logmask = NULL,
.describe = NULL,
struct afb_api_itf set_api_itf = {
.call = NULL,
.service_start = set_cb_start,
+#if WITH_AFB_HOOK
.update_hooks = set_cb0,
+#endif
.get_logmask = set_cb_getmask,
.set_logmask = set_cb_setmask,
.describe = NULL,
afb_apiset_start_all_services(a);
ck_assert_int_eq(nn, set_count);
+#if WITH_AFB_HOOK
set_count = 0;
afb_apiset_update_hooks(a, NULL);
ck_assert_int_eq(nn, set_count);
+#endif
for (mask = 1 ; !(mask >> 10) ; mask <<= 1) {
set_count = 0;
struct afb_api_itf clitf = {
.call = NULL,
.service_start = clacb_start,
+#if WITH_AFB_HOOK
.update_hooks = NULL,
+#endif
.get_logmask = NULL,
.set_logmask = NULL,
.describe = NULL,