diff src/prpl.h @ 1401:bf041349b11e

[gaim-migrate @ 1411] abliity to set accounts away independent of each other. also allows for all the other states (like in yahoo and icq). probably breaks MSN, so don't use it until rob fixes it. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 10 Jan 2001 22:15:24 +0000
parents 776bb4c6c0b8
children de21a6790603
line wrap: on
line diff
--- a/src/prpl.h	Wed Jan 10 19:56:39 2001 +0000
+++ b/src/prpl.h	Wed Jan 10 22:15:24 2001 +0000
@@ -40,6 +40,8 @@
  * plugins can't do (for example, TOC and Oscar and Jabber can do HTML in messages,
  * but IRC etc can't, so TOC/Oscar/Jabber have _HTML set but not IRC. */
 
+#define GAIM_AWAY_CUSTOM "Custom"
+
 typedef void (*proto_init)(struct prpl *);
 
 struct prpl {
@@ -49,6 +51,7 @@
 
 	/* returns the XPM associated with the given user class */
 	char **(* list_icon)(int);
+	GList *(* away_states)();
 
 	/* when UI plugins come, these will have to be reconciled by returning
 	 * structs indicating what kinds of information they want displayed. */
@@ -63,7 +66,7 @@
 	void (* send_im)	(struct gaim_connection *, char *who, char *message, int away);
 	void (* set_info)	(struct gaim_connection *, char *info);
 	void (* get_info)	(struct gaim_connection *, char *who);
-	void (* set_away)	(struct gaim_connection *, char *message);
+	void (* set_away)	(struct gaim_connection *, char *state, char *message);
 	void (* get_away_msg)	(struct gaim_connection *, char *who);
 	void (* set_dir)	(struct gaim_connection *, char *first,
 							   char *middle,