summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2013-12-03 17:53:33 +0100
committerDaniel Mack <zonque@gmail.com>2013-12-03 17:53:37 +0100
commitfd55f9d04bea50d2f3aac99ec1d9c5d974ace0c6 (patch)
treec617e56e528aaebabd42aa7ecdc48c2be6fb25d6
parent5de527009ed7f3dd65fc74f761e5d40b58813f2d (diff)
downloadkdbus-bus-fd55f9d04bea50d2f3aac99ec1d9c5d974ace0c6.tar.gz
kdbus-bus-fd55f9d04bea50d2f3aac99ec1d9c5d974ace0c6.tar.bz2
kdbus-bus-fd55f9d04bea50d2f3aac99ec1d9c5d974ace0c6.zip
kernel-doc for notify.c
-rw-r--r--notify.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/notify.c b/notify.c
index 12c1dd0fffb..380c1aa6956 100644
--- a/notify.c
+++ b/notify.c
@@ -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)
{