/cpw/tomkiewicz/masterpassword: 311304585994: Fill documentation

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Sat May 11 13:15:52 EDT 2013


Changeset: 31130458599404e471f923c8f127b7fcc3b6e222
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2013-05-11 19:15 +0200
Branch:	 soc.2008.masterpassword
URL: https://hg.pidgin.im/cpw/tomkiewicz/masterpassword/rev/311304585994

Description:

Fill documentation

diffstat:

 libpurple/keyring.h |  32 ++++++++++++++++++++++++++++----
 1 files changed, 28 insertions(+), 4 deletions(-)

diffs (54 lines):

diff --git a/libpurple/keyring.h b/libpurple/keyring.h
--- a/libpurple/keyring.h
+++ b/libpurple/keyring.h
@@ -171,10 +171,22 @@ typedef gboolean (*PurpleKeyringExportPa
 	const gchar **mode, gchar **data, GError **error,
 	GDestroyNotify *destroy);
 
-/* TODO: documentation */
+/**
+ * Read keyring settings.
+ *
+ * @return New copy of current settings (must be free'd with
+ *         purple_request_fields_destroy).
+ */
 typedef PurpleRequestFields * (*PurpleKeyringReadSettings)(void);
 
-/* TODO: documentation */
+/**
+ * Applies modified keyring settings.
+ *
+ * @param notify_handle A handle that can be passed to purple_notify_message.
+ * @param fields        Modified settings (originally taken from
+ *                      PurpleKeyringReadSettings).
+ * @return TRUE, if succeeded, FALSE otherwise.
+ */
 typedef gboolean (*PurpleKeyringApplySettings)(void *notify_handle,
 	PurpleRequestFields *fields);
 
@@ -318,11 +330,23 @@ void
 purple_keyring_set_password(PurpleAccount *account, const gchar *password,
 	PurpleKeyringSaveCallback cb, gpointer data);
 
-/* TODO: documentation */
+/**
+ * Reads settings from current keyring.
+ *
+ * @return New copy of current settings (must be free'd with
+ *         purple_request_fields_destroy).
+ */
 PurpleRequestFields *
 purple_keyring_read_settings(void);
 
-/* TODO: documentation */
+/**
+ * Applies modified settings to current keyring.
+ *
+ * @param notify_handle A handle that can be passed to purple_notify_message.
+ * @param fields        Modified settings (originally taken from
+ *                      PurpleKeyringReadSettings).
+ * @return TRUE, if succeeded, FALSE otherwise.
+ */
 gboolean
 purple_keyring_apply_settings(void *notify_handle, PurpleRequestFields *fields);
 



More information about the Commits mailing list