Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
improves documentation
[src/app-framework-binder.git]
/
include
/
afb
/
afb-plugin.h
diff --git
a/include/afb/afb-plugin.h
b/include/afb/afb-plugin.h
index
3d16c7a
..
2b065b0
100644
(file)
--- a/
include/afb/afb-plugin.h
+++ b/
include/afb/afb-plugin.h
@@
-212,6
+212,10
@@
static inline struct sd_bus *afb_daemon_get_system_bus(struct afb_daemon daemon)
* Broadcasts widely the event of 'name' with the data 'object'.
* 'object' can be NULL.
* 'daemon' MUST be the daemon given in interface when activating the plugin.
* Broadcasts widely the event of 'name' with the data 'object'.
* 'object' can be NULL.
* 'daemon' MUST be the daemon given in interface when activating the plugin.
+ *
+ * For conveniency, the function calls 'json_object_put' for 'object'.
+ * Thus, in the case where 'object' should remain available after
+ * the function returns, the function 'json_object_get' shall be used.
*/
static inline void afb_daemon_broadcast_event(struct afb_daemon daemon, const char *name, struct json_object *object)
{
*/
static inline void afb_daemon_broadcast_event(struct afb_daemon daemon, const char *name, struct json_object *object)
{