diff libpurple/account.h @ 32714:a34977b4d858

Add accessors for _PurpleAccount.ui_data
author Kevin Stange <kevin@simguy.net>
date Sat, 01 Oct 2011 23:41:15 +0000
parents c774000690b4
children cb486df263ef
line wrap: on
line diff
--- a/libpurple/account.h	Sat Oct 01 23:24:50 2011 +0000
+++ b/libpurple/account.h	Sat Oct 01 23:41:15 2011 +0000
@@ -603,6 +603,25 @@
 							  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.