pidgin: 3aea3aa8: Hide structs PurpleAccountOption and Pur...

andrew.victor at mxit.com andrew.victor at mxit.com
Sat Oct 1 18:31:18 EDT 2011


----------------------------------------------------------------------
Revision: 3aea3aa828153db0eda55a40755f4a579f0f4e2b
Parent:   adf0f379818a066c40338a0be7251042bbb959dd
Author:   andrew.victor at mxit.com
Date:     10/01/11 13:10:45
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/3aea3aa828153db0eda55a40755f4a579f0f4e2b

Changelog: 

Hide structs PurpleAccountOption and PurpleAccountUserSplit.


Changes against parent adf0f379818a066c40338a0be7251042bbb959dd

  patched  ChangeLog.API
  patched  libpurple/accountopt.c
  patched  libpurple/accountopt.h

-------------- next part --------------
============================================================
--- libpurple/accountopt.c	936c7a55e737721760d3f576695d3f5a981b53c3
+++ libpurple/accountopt.c	a3ce387f8f2eb11f75d03bc4a091891ec120a515
@@ -28,6 +28,51 @@
 #include "accountopt.h"
 #include "util.h"
 
+/**
+ * An option for an account.
+ *
+ * This is set by protocol plugins, and appears in the account settings
+ * dialogs.
+ */
+struct _PurpleAccountOption
+{
+	PurplePrefType type;      /**< The type of value.                     */
+
+	char *text;             /**< The text that will appear to the user. */
+	char *pref_name;        /**< The name of the associated preference. */
+
+	union
+	{
+		gboolean boolean;   /**< The default boolean value.             */
+		int integer;        /**< The default integer value.             */
+		char *string;       /**< The default string value.              */
+		GList *list;        /**< The default list value.                */
+
+	} default_value;
+
+	gboolean masked;        /**< Whether the value entered should be
+	                         *   obscured from view (for passwords and
+	                         *   similar options)
+	                         */
+};
+
+/**
+ * A username split.
+ *
+ * This is used by some protocols to separate the fields of the username
+ * into more human-readable components.
+ */
+struct _PurpleAccountUserSplit
+{
+	char *text;             /**< The text that will appear to the user. */
+	char *default_value;    /**< The default value.                     */
+	char  field_sep;        /**< The field separator.                   */
+	gboolean reverse;       /**< TRUE if the separator should be found
+							  starting a the end of the string, FALSE
+							  otherwise                                 */
+};
+
+
 PurpleAccountOption *
 purple_account_option_new(PurplePrefType type, const char *text,
 						const char *pref_name)
============================================================
--- libpurple/accountopt.h	2761d8a1eb1e58b7fcf0bdf4e697c1e8380f885c
+++ libpurple/accountopt.h	6fb3f74e2639a79103025c11b27cbb0702eaf2ed
@@ -28,51 +28,16 @@
 
 #include "prefs.h"
 
-/**
- * An option for an account.
- *
- * This is set by protocol plugins, and appears in the account settings
- * dialogs.
- */
-typedef struct
-{
-	PurplePrefType type;      /**< The type of value.                     */
+/**************************************************************************/
+/** Data Structures                                                       */
+/**************************************************************************/
 
-	char *text;             /**< The text that will appear to the user. */
-	char *pref_name;        /**< The name of the associated preference. */
+/** @copydoc _PurpleAccountOption */
+typedef struct _PurpleAccountOption		PurpleAccountOption;
+/** @copydoc _PurpleAccountUserSplit */
+typedef struct _PurpleAccountUserSplit	PurpleAccountUserSplit;
 
-	union
-	{
-		gboolean boolean;   /**< The default boolean value.             */
-		int integer;        /**< The default integer value.             */
-		char *string;       /**< The default string value.              */
-		GList *list;        /**< The default list value.                */
 
-	} default_value;
-
-	gboolean masked;        /**< Whether the value entered should be
-	                         *   obscured from view (for passwords and
-	                         *   similar options)
-	                         */
-} PurpleAccountOption;
-
-/**
- * A username split.
- *
- * This is used by some protocols to separate the fields of the username
- * into more human-readable components.
- */
-typedef struct
-{
-	char *text;             /**< The text that will appear to the user. */
-	char *default_value;    /**< The default value.                     */
-	char  field_sep;        /**< The field separator.                   */
-	gboolean reverse;       /**< TRUE if the separator should be found
-							  starting a the end of the string, FALSE
-							  otherwise                                 */
-
-} PurpleAccountUserSplit;
-
 #ifdef __cplusplus
 extern "C" {
 #endif
============================================================
--- ChangeLog.API	aeaa79078aeb1a9f1e0fa34cc04d82388f832be8
+++ ChangeLog.API	3393768b049f024990b0c5953ed1a84f463f506f
@@ -203,6 +203,8 @@ version 3.0.0 (??/??/????):
 		* struct _PurpleRoomlist
 		* struct _PurpleRoomlistField
 		* struct _PurpleRoomlistRoom
+		* struct PurpleAccountOption
+		* struct PurpleAccountUserSplit
 		* wpurple_g_access
 		* xmlnode_set_attrib_with_namespace
 		* xmlnode_set_attrib_with_prefix


More information about the Commits mailing list