X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-hook.h;h=7228384d6994db62beea54b484cb691cdc1ddc95;hb=65353dce81a629e042800bb7b86fcd869a76727e;hp=f2b51e7c15da58c2ca5504fbf519d57ee65065c3;hpb=043c27c3a8fd323d59e41288b6fd24f0e9bfa9a3;p=src%2Fapp-framework-binder.git diff --git a/src/afb-hook.h b/src/afb-hook.h index f2b51e7c..7228384d 100644 --- a/src/afb-hook.h +++ b/src/afb-hook.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016-2019 "IoT.bzh" + * Copyright (C) 2015-2020 "IoT.bzh" * Author José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,6 +17,8 @@ #pragma once +#if WITH_AFB_HOOK /***********************************************************/ + #include #include @@ -413,12 +415,10 @@ extern void afb_hook_unref_evt(struct afb_hook_evt *hook); #define afb_hook_flag_session_create 0x000001 #define afb_hook_flag_session_close 0x000002 #define afb_hook_flag_session_destroy 0x000004 -#define afb_hook_flag_session_renew 0x000008 -#define afb_hook_flag_session_addref 0x000010 -#define afb_hook_flag_session_unref 0x000020 +#define afb_hook_flag_session_addref 0x000008 +#define afb_hook_flag_session_unref 0x000010 -#define afb_hook_flags_session_common (afb_hook_flag_session_create|afb_hook_flag_session_close\ - |afb_hook_flag_session_renew) +#define afb_hook_flags_session_common (afb_hook_flag_session_create|afb_hook_flag_session_close) #define afb_hook_flags_session_all (afb_hook_flags_session_common|afb_hook_flag_session_destroy\ |afb_hook_flag_session_addref|afb_hook_flag_session_unref) @@ -426,7 +426,6 @@ struct afb_hook_session_itf { void (*hook_session_create)(void *closure, const struct afb_hookid *hookid, struct afb_session *session); void (*hook_session_close)(void *closure, const struct afb_hookid *hookid, struct afb_session *session); void (*hook_session_destroy)(void *closure, const struct afb_hookid *hookid, struct afb_session *session); - void (*hook_session_renew)(void *closure, const struct afb_hookid *hookid, struct afb_session *session); void (*hook_session_addref)(void *closure, const struct afb_hookid *hookid, struct afb_session *session); void (*hook_session_unref)(void *closure, const struct afb_hookid *hookid, struct afb_session *session); }; @@ -434,7 +433,6 @@ struct afb_hook_session_itf { extern void afb_hook_session_create(struct afb_session *session); extern void afb_hook_session_close(struct afb_session *session); extern void afb_hook_session_destroy(struct afb_session *session); -extern void afb_hook_session_renew(struct afb_session *session); extern void afb_hook_session_addref(struct afb_session *session); extern void afb_hook_session_unref(struct afb_session *session); @@ -459,3 +457,4 @@ extern struct afb_hook_global *afb_hook_addref_global(struct afb_hook_global *ho extern void afb_hook_unref_global(struct afb_hook_global *hook); +#endif /* WITH_AFB_HOOK *******************************************************/