/pidgin/main: 323b1884d008: Improve TLS Certificate API document...

Mike Ruprecht <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 323b1884d008384a07961dec4f992c1780ac30d2
Author:	 Mike Ruprecht <[email protected]>
Date:	 2016-04-07 01:27 -0500
Branch:	 purple-ssl-to-gio
URL: https://hg.pidgin.im/pidgin/main/rev/323b1884d008

Description:

Improve TLS Certificate API documentation and add transfer annotations

Using the filename as the @short_description is not very useful. This
patch changes it to an actual description, adds a full description
afterwards, and adds a few missing Gtk-Doc transfer annotations.

diffstat:

 libpurple/tls-certificate.h |  16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diffs (48 lines):

diff --git a/libpurple/tls-certificate.h b/libpurple/tls-certificate.h
--- a/libpurple/tls-certificate.h
+++ b/libpurple/tls-certificate.h
@@ -26,8 +26,14 @@
 /**
  * SECTION:tls-certificate
  * @section_id: libpurple-tls-certificate
- * @short_description: <filename>tls-certificate.h</filename>
+ * @short_description: TLS certificate trust and storage API
  * @title: TLS Certificate API
+ *
+ * The TLS Certificate API provides functions for trusting and storing
+ * certificates for use with TLS/SSL connections. This allows certificates,
+ * which aren't considered valid by the TLS implementation, to be manually
+ * trusted by the user, distrusted at a later time, and queried by the UI.
+ * It also provides functions to simply wire this system into Gio.
  */
 
 #include <gio/gio.h>
@@ -39,7 +45,7 @@
  * purple_tls_certificate_trust() and friends. These IDs can then be passed
  * to purple_certificate_path() or used directly, if desired.
  *
- * Returns: The #GList of IDs described above
+ * Returns: (element-type utf8): The #GList of IDs described above
  *          Free with purple_certificate_free_ids()
  */
 GList *
@@ -100,7 +106,8 @@ purple_tls_certificate_distrust(const gc
  * Connects the Purple TLS certificate subsystem to @conn so it will accept
  * certificates trusted by purple_tls_certificate_trust() and friends.
  *
- * Returns: @conn, similar to g_object_connect()
+ * Returns: (transfer: none) (type GObject.Object): @conn, similar to
+ *          g_object_connect()
  */
 gpointer
 purple_tls_certificate_attach_to_tls_connection(GTlsConnection *conn);
@@ -113,7 +120,8 @@ purple_tls_certificate_attach_to_tls_con
  * connections it creates will accept certificates trusted by
  * purple_tls_certificate_trust() and friends.
  *
- * Returns: @client, similar to g_object_connect()
+ * Returns: (transfer: none) (type GObject.Object): @client, similar to
+ *          g_object_connect()
  */
 gpointer
 purple_tls_certificate_attach_to_socket_client(GSocketClient *client);

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.