diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-09-21 12:34:12 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-10-09 14:08:32 +0200 |
commit | 271bb6fc606fc5068a7b7a8f22b0052aca2fb900 (patch) | |
tree | f87588fd0949bb0973bf39f965c82bfeb001da6c /src/afb-hook.c | |
parent | 34fa1fb6de1c449b81b9a19fda21c2963eb57f3f (diff) |
Make afb_event_drop obsolete
The function is now replaced by the function afb_event_unref.
In the same time, the function afb_event_addref is made available.
Change-Id: I9aa30e80e64e82f3b16ab359982337771b287185
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hook.c')
-rw-r--r-- | src/afb-hook.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/afb-hook.c b/src/afb-hook.c index 09e6062a..3c015dcf 100644 --- a/src/afb-hook.c +++ b/src/afb-hook.c @@ -1239,11 +1239,6 @@ static void hook_evt_name_default_cb(void *closure, const struct afb_hookid *hoo _hook_evt_(evt, id, "name -> %s", result); } -static void hook_evt_drop_default_cb(void *closure, const struct afb_hookid *hookid, const char *evt, int id) -{ - _hook_evt_(evt, id, "drop"); -} - static void hook_evt_addref_default_cb(void *closure, const struct afb_hookid *hookid, const char *evt, int id) { _hook_evt_(evt, id, "addref"); @@ -1261,7 +1256,6 @@ static struct afb_hook_evt_itf hook_evt_default_itf = { .hook_evt_broadcast_before = hook_evt_broadcast_before_default_cb, .hook_evt_broadcast_after = hook_evt_broadcast_after_default_cb, .hook_evt_name = hook_evt_name_default_cb, - .hook_evt_drop = hook_evt_drop_default_cb, .hook_evt_addref = hook_evt_addref_default_cb, .hook_evt_unref = hook_evt_unref_default_cb }; @@ -1318,11 +1312,6 @@ void afb_hook_evt_name(const char *evt, int id, const char *result) _HOOK_EVT_(name, evt, id, result); } -void afb_hook_evt_drop(const char *evt, int id) -{ - _HOOK_EVT_(drop, evt, id); -} - void afb_hook_evt_addref(const char *evt, int id) { _HOOK_EVT_(addref, evt, id); |