summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Le Magourou <pierre.lemagourou@openwide.fr>2014-10-20 16:03:40 +0200
committerCedric BAIL <cedric@osg.samsung.com>2014-10-20 18:32:28 +0200
commita86a8e1e4a14ce6a36acde8ebb7b825e5372ecc5 (patch)
treecb031d590048497ab35011c7d016f2024b198d72
parent321f6482cdb7bb13e4097cafe384b936eb6f4cd4 (diff)
downloadefl-a86a8e1e4a14ce6a36acde8ebb7b825e5372ecc5.tar.gz
eldbus: update missing eldbus_pending.h API documentation.
-rw-r--r--src/lib/eldbus/eldbus_pending.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/lib/eldbus/eldbus_pending.h b/src/lib/eldbus/eldbus_pending.h
index 98c0085657..8cb8e969ae 100644
--- a/src/lib/eldbus/eldbus_pending.h
+++ b/src/lib/eldbus/eldbus_pending.h
@@ -8,23 +8,86 @@
* @{
*/
+/**
+ * @brief Set data to a Eldbus_Pending object.
+ *
+ * @param pending The Eldbus_Pending object on which the data is set.
+ * @param key A string corresponding to the key associated with the data.
+ * @param data The data to set to the Eldbus_Pending object.
+ */
EAPI void eldbus_pending_data_set(Eldbus_Pending *pending, const char *key, const void *data) EINA_ARG_NONNULL(1, 2, 3);
+
+/**
+ * @brief Get the data set to a Eldbus_Pending object.
+ *
+ * @param pending The Eldbus_Pending object on which the data is set.
+ * @param key A string corresponding to the key associated with the data.
+ * @return The data set to the Eldbus_Pending object.
+ */
EAPI void *eldbus_pending_data_get(const Eldbus_Pending *pending, const char *key) EINA_ARG_NONNULL(1, 2);
+
+/**
+ * @brief Delete the data set to a Eldbus_Pending object.
+ *
+ * @param pending The Eldbus_Pending object on which the data is set.
+ * @param key A string corresponding to the key associated with the data.
+ */
EAPI void *eldbus_pending_data_del(Eldbus_Pending *pending, const char *key) EINA_ARG_NONNULL(1, 2);
+
+/**
+ * @brief Cancel the pending message.
+ *
+ * @param pending The Eldbus_Pending object corresponding to the pending message.
+ */
EAPI void eldbus_pending_cancel(Eldbus_Pending *pending) EINA_ARG_NONNULL(1);
+/**
+ * @brief Get the destination of the pending message.
+ *
+ * @param pending The Eldbus_Pending object.
+ * @return A string corresponding to the destination of the message.
+ */
EAPI const char *eldbus_pending_destination_get(const Eldbus_Pending *pending) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+
+/**
+ * @brief Get the path of the pending message.
+ *
+ * @param pending The Eldbus_Pending object.
+ * @return A string corresponding to the path of the message.
+ */
EAPI const char *eldbus_pending_path_get(const Eldbus_Pending *pending) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+
+/**
+ * @brief Get the interface of the pending message.
+ *
+ * @param pending The Eldbus_Pending object.
+ * @return A string corresponding to the interface of the message.
+ */
EAPI const char *eldbus_pending_interface_get(const Eldbus_Pending *pending) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+
+/**
+ * @brief Get the method of the pending message.
+ *
+ * @param pending The Eldbus_Pending object.
+ * @return A string corresponding to the method of the message.
+ */
EAPI const char *eldbus_pending_method_get(const Eldbus_Pending *pending) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
/**
* @brief Add a callback function to be called when pending will be freed.
+ *
+ * @param pending The Eldbus_Pending object on which the callback is registered.
+ * @param cb The callback to register.
+ * @param data The data to pass to the callback.
*/
EAPI void eldbus_pending_free_cb_add(Eldbus_Pending *pending, Eldbus_Free_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2);
/**
* @brief Remove callback registered in eldbus_pending_free_cb_add().
+ *
+ * @param pending The Eldbus_Pending object on which the callback was registered.
+ * @param cb The callback that was registered.
+ * @param data The data passed to the callback.
*/
EAPI void eldbus_pending_free_cb_del(Eldbus_Pending *pending, Eldbus_Free_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2);