pidgin: 1b285d0b: Add accessors for _PurpleAccount.ui_data

kstange at pidgin.im kstange at pidgin.im
Sat Oct 1 19:45:47 EDT 2011


----------------------------------------------------------------------
Revision: 1b285d0b375fbd5e778db6bb852a7b089feb16a3
Parent:   94f5fe4ce1870ce0ce88d15705ca8d9d9efb2145
Author:   kstange at pidgin.im
Date:     10/01/11 19:41:15
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/1b285d0b375fbd5e778db6bb852a7b089feb16a3

Changelog: 

Add accessors for _PurpleAccount.ui_data

Changes against parent 94f5fe4ce1870ce0ce88d15705ca8d9d9efb2145

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

-------------- next part --------------
============================================================
--- libpurple/account.c	06b8c78b90f6979f1e544a3c7e691142cca151ae
+++ libpurple/account.c	50ec9da150f3403e296418d564662eea9759ff68
@@ -2471,6 +2471,24 @@ purple_account_get_ui_bool(const PurpleA
 	return setting->value.boolean;
 }
 
+gpointer
+purple_account_get_ui_data(const PurpleAccount *account)
+{
+        g_return_val_if_fail(account != NULL, NULL);
+
+        return account->ui_data;
+}
+
+void
+purple_request_field_set_ui_data(PurpleAccount *account,
+                                 gpointer ui_data)
+{
+        g_return_if_fail(acount != NULL);
+
+        account->ui_data = ui_data;
+}
+
+
 PurpleLog *
 purple_account_get_log(PurpleAccount *account, gboolean create)
 {
============================================================
--- libpurple/account.h	1245d385c4af707974699c298ebeb20b8bec959d
+++ libpurple/account.h	0559f07996744acc2624a2a517c87712ad86d57b
@@ -603,6 +603,25 @@ void purple_account_set_ui_bool(PurpleAc
 							  const char *name, gboolean value);
 
 /**
+ * Returns the UI data associated with this account.
+ *
+ * @param account The account.
+ *
+ * @return The UI data associated with this object.  This is a
+ *         convenience field provided to the UIs--it is not
+ *         used by the libuprple core.
+ */
+gpointer purple_account_get_ui_data(const PurpleAccount *account);
+
+/**
+ * Set the UI data associated with this account.
+ *
+ * @param account The account.
+ * @param ui_data A pointer to associate with this object.
+ */
+void purple_account_set_ui_data(PurpleAccount *account, gpointer ui_data);
+
+/**
  * Returns whether or not the account is connected.
  *
  * @param account The account.
============================================================
--- ChangeLog.API	3393768b049f024990b0c5953ed1a84f463f506f
+++ ChangeLog.API	ebac01676bdccbd6f39693d82c5b9939ac5c2fd8
@@ -4,6 +4,8 @@ version 3.0.0 (??/??/????):
 	libpurple:
 		Added:
 		* pidgin_create_webview
+		* purple_account_get_ui_data
+		* purple_account_set_ui_data
 		* purple_conv_chat_cb_get_alias
 		* purple_conv_chat_cb_get_flags
 		* purple_conv_chat_cb_is_buddy


More information about the Commits mailing list