diff options
author | Daniel Mack <zonque@gmail.com> | 2013-12-03 17:53:33 +0100 |
---|---|---|
committer | Daniel Mack <zonque@gmail.com> | 2013-12-03 17:53:37 +0100 |
commit | fd55f9d04bea50d2f3aac99ec1d9c5d974ace0c6 (patch) | |
tree | c617e56e528aaebabd42aa7ecdc48c2be6fb25d6 | |
parent | 5de527009ed7f3dd65fc74f761e5d40b58813f2d (diff) | |
download | kdbus-bus-fd55f9d04bea50d2f3aac99ec1d9c5d974ace0c6.tar.gz kdbus-bus-fd55f9d04bea50d2f3aac99ec1d9c5d974ace0c6.tar.bz2 kdbus-bus-fd55f9d04bea50d2f3aac99ec1d9c5d974ace0c6.zip |
kernel-doc for notify.c
-rw-r--r-- | notify.c | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -71,16 +71,46 @@ exit_unref_conn: return ret; } +/** + * kdbus_notify_reply_timeout - send a timeout reply + * @ep: The endpoint to use for sending + * @src_id: The id to use as sender address + * @cookie The cookie to set in the reply. + * + * Sends a message that has a KDBUS_ITEM_REPLY_TIMEOUT item attached. + * Returns 0 on success, or a negative error code. + */ int kdbus_notify_reply_timeout(struct kdbus_ep *ep, u64 src_id, u64 cookie) { return kdbus_notify_reply(ep, src_id, cookie, KDBUS_ITEM_REPLY_TIMEOUT); } +/** + * kdbus_notify_reply_dead - send a 'dead' reply + * @ep: The endpoint to use for sending + * @src_id: The id to use as sender address + * @cookie The cookie to set in the reply. + * + * Sends a message that has a KDBUS_ITEM_REPLY_DEAD item attached. + * Returns 0 on success, or a negative error code. + */ int kdbus_notify_reply_dead(struct kdbus_ep *ep, u64 src_id, u64 cookie) { return kdbus_notify_reply(ep, src_id, cookie, KDBUS_ITEM_REPLY_DEAD); } +/** + * kdbus_notify_name_change - send a notification about a name owner change + * @ep: The endpoint to use for sending + * @type: The type if the notification; KDBUS_ITEM_NAME_ADD, + * KDBUS_ITEM_NAME_CHANGE or KDBUS_ITEM_NAME_REMOVE + * @old_id: The id of the connection that used to own the name + * @new_id: The id of the new owner connection + * @flags: The flags to pass in the KDBUS_ITEM flags field + * @name: The name that was removed or assigned to a new owner + * + * Returns 0 on success, or a negative error code. + */ int kdbus_notify_name_change(struct kdbus_ep *ep, u64 type, u64 old_id, u64 new_id, u64 flags, const char *name) @@ -118,6 +148,16 @@ int kdbus_notify_name_change(struct kdbus_ep *ep, u64 type, return ret; } +/** + * kdbus_notify_id_change - send a notification about a unique ID change + * @ep: The endpoint to use for sending + * @type: The type if the notification; KDBUS_MATCH_ID_ADD or + * KDBUS_MATCH_ID_REMOVE + * @id: The id of the connection that was added or removed + * @flags: The flags to pass in the KDBUS_ITEM flags field + * + * Returns 0 on success, or a negative error code. + */ int kdbus_notify_id_change(struct kdbus_ep *ep, u64 type, u64 id, u64 flags) { |