aboutsummaryrefslogtreecommitdiffstats
path: root/include/afb/afb-binding.hpp
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-21 12:34:12 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-09 14:08:32 +0200
commit271bb6fc606fc5068a7b7a8f22b0052aca2fb900 (patch)
treef87588fd0949bb0973bf39f965c82bfeb001da6c /include/afb/afb-binding.hpp
parent34fa1fb6de1c449b81b9a19fda21c2963eb57f3f (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 'include/afb/afb-binding.hpp')
-rw-r--r--include/afb/afb-binding.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/afb/afb-binding.hpp b/include/afb/afb-binding.hpp
index 1fc8b497..6e062b2e 100644
--- a/include/afb/afb-binding.hpp
+++ b/include/afb/afb-binding.hpp
@@ -110,7 +110,8 @@ public:
int broadcast(json_object *object) const;
int push(json_object *object) const;
- void drop();
+ void unref();
+ void addref();
const char *name() const;
};
@@ -261,7 +262,8 @@ inline void event::invalidate() { event_.itf = NULL; event_.closure = NULL; }
inline int event::broadcast(json_object *object) const { return afb_event_broadcast(event_, object); }
inline int event::push(json_object *object) const { return afb_event_push(event_, object); }
-inline void event::drop() { afb_event_drop(event_); invalidate(); }
+inline void event::unref() { afb_event_unref(event_); invalidate(); }
+inline void event::addref() { afb_event_addref(event_); }
inline const char *event::name() const { return afb_event_name(event_); }
/* args */