changeset 5679:0a0116686d51

[gaim-migrate @ 6097] let the prpls know about the new API changes committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 02 Jun 2003 22:24:07 +0000
parents 619bca773b2e
children 71cc0d5376c2
files src/protocols/irc/irc.c src/protocols/jabber/jabber.c src/protocols/msn/switchboard.c src/protocols/msn/switchboard.h src/protocols/napster/napster.c src/protocols/oscar/oscar.c src/protocols/toc/toc.c
diffstat 7 files changed, 62 insertions(+), 62 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Mon Jun 02 22:17:30 2003 +0000
+++ b/src/protocols/irc/irc.c	Mon Jun 02 22:24:07 2003 +0000
@@ -199,13 +199,13 @@
 	return (utf8);
 }
 
-static struct gaim_conversation *
+static GaimConversation *
 irc_find_chat(GaimConnection *gc, const char *name)
 {
 	GSList *bcs = gc->buddy_chats;
 
 	while (bcs) {
-		struct gaim_conversation *b = bcs->data;
+		GaimConversation *b = bcs->data;
 		if (!gaim_utf8_strcasecmp(b->name, name))
 			return b;
 		bcs = bcs->next;
@@ -477,7 +477,7 @@
 	gchar buffer[IRC_BUF_LEN];
 	gchar buf[128];
 	int n = 0;
-	struct gaim_conversation *convo;
+	GaimConversation *convo;
 	gaim_debug(GAIM_DEBUG_MISC, "irc", "THIS IS TOO MUCH EFFORT\n");
 	n = read (chat->fd, buffer, IRC_BUF_LEN);
 	if (n > 0) {
@@ -540,7 +540,7 @@
 void 
 dcc_chat_callback (gpointer data, gint source, GaimInputCondition condition) {
 	struct dcc_chat *chat = data;
-	struct gaim_conversation *convo;
+	GaimConversation *convo;
 	char buf[IRC_BUF_LEN];
 
 	convo = gaim_conversation_new(GAIM_CONV_IM, chat->gc->account, chat->nick);
@@ -657,8 +657,8 @@
 static void 
 handle_names(GaimConnection *gc, char *chan, char *names)
 {
-	struct gaim_conversation *c = irc_find_chat(gc, chan);
-	struct gaim_chat *chat;
+	GaimConversation *c = irc_find_chat(gc, chan);
+	GaimChat *chat;
 	char **buf, **tmp;
 
 	if (!c) return;
@@ -677,7 +677,7 @@
 static void 
 handle_notopic(GaimConnection *gc, char *text)
 {
-	struct gaim_conversation *c;
+	GaimConversation *c;
 
 	if ((c = irc_find_chat(gc, text))) {
 		char buf[IRC_BUF_LEN];
@@ -691,7 +691,7 @@
 static void 
 handle_topic(GaimConnection *gc, char *text)
 {
-	struct gaim_conversation *c;
+	GaimConversation *c;
 	char *po = strchr(text, ' '), *buf;
 
 	if (!po)
@@ -744,7 +744,7 @@
 static void 
 irc_chan_mode(GaimConnection *gc, char *room, char sign, char mode, char *argstr, char *who)
 {
-	struct gaim_conversation *c = irc_find_chat(gc, room);
+	GaimConversation *c = irc_find_chat(gc, room);
 	char buf[IRC_BUF_LEN];
 	char *nick = g_strndup(who, strchr(who, '!') - who);
 
@@ -759,7 +759,7 @@
 static void 
 irc_user_mode(GaimConnection *gc, char *room, char sign, char mode, char *nick)
 {
-	struct gaim_conversation *c = irc_find_chat(gc, room);
+	GaimConversation *c = irc_find_chat(gc, room);
 	GList *r;
 
 	if (mode != 'o' && mode != 'v' && mode != 'h')
@@ -830,7 +830,7 @@
 	struct irc_data *id = gc->proto_data;
 	int offset = n324 ? 4 : 3;
 	char *chan = word[offset];
-	struct gaim_conversation *c = irc_find_chat(gc, chan);
+	GaimConversation *c = irc_find_chat(gc, chan);
 	char *modes = word[offset + 1];
 	int len = strlen(word_eol[offset]) - 1;
 	char sign = *modes++;
@@ -1140,10 +1140,10 @@
 }
 
 static void 
-irc_rem_chat_bud(GaimConnection *gc, char *nick, struct gaim_conversation *b, char *reason)
+irc_rem_chat_bud(GaimConnection *gc, char *nick, GaimConversation *b, char *reason)
 {
 
-	struct gaim_chat *chat;
+	GaimChat *chat;
 
 	if (b) {
 		GList *r;
@@ -1169,7 +1169,7 @@
 	} else {
 		GSList *bcs = gc->buddy_chats;
 		while (bcs) {
-			struct gaim_conversation *bc = bcs->data;
+			GaimConversation *bc = bcs->data;
 			irc_rem_chat_bud(gc, nick, bc, reason);
 			bcs = bcs->next;
 		}
@@ -1183,8 +1183,8 @@
 	char buf[IRC_BUF_LEN];
 
 	while (bcs) {
-		struct gaim_conversation *b = bcs->data;
-		struct gaim_chat *chat;
+		GaimConversation *b = bcs->data;
+		GaimChat *chat;
 		GList *r;
 
 		chat = GAIM_CHAT(b);
@@ -1218,7 +1218,7 @@
 handle_privmsg(GaimConnection *gc, char *to, char *nick, char *msg)
 {
 	if (is_channel(gc, to)) {
-		struct gaim_conversation *c = irc_find_chat(gc, to);
+		GaimConversation *c = irc_find_chat(gc, to);
 		if (!c)
 			return;
 		irc_got_chat_in(gc, gaim_chat_get_id(GAIM_CHAT(c)),
@@ -1603,7 +1603,7 @@
 		irc_parse_join(gc, nick, word, word_eol);
 	} else if (!strcmp(cmd, "KICK")) {
 		if (!strcmp(gaim_connection_get_display_name(gc), word[4])) {
-			struct gaim_conversation *c = irc_find_chat(gc, word[3]);
+			GaimConversation *c = irc_find_chat(gc, word[3]);
 			if (!c)
 				return FALSE;
 			gc->buddy_chats = g_slist_remove(gc->buddy_chats, c);
@@ -1614,7 +1614,7 @@
 		} else {
 			char *reason = *word_eol[5] == ':' ? word_eol[5] + 1 : word_eol[5];
 			char *msg = g_strdup_printf(_("Kicked by %s: %s"), nick, reason);
-			struct gaim_conversation *c = irc_find_chat(gc, word[3]);
+			GaimConversation *c = irc_find_chat(gc, word[3]);
 			irc_rem_chat_bud(gc, word[4], c, msg);
 			g_free(msg);
 		}
@@ -1725,7 +1725,7 @@
 {
 	char *chan = *word[3] == ':' ? word[3] + 1 : word[3];
 	static int id = 1;
-	struct gaim_conversation *c;
+	GaimConversation *c;
 	char *hostmask, *p;
 
 	if (!gaim_utf8_strcasecmp(gaim_connection_get_display_name(gc), nick)) {
@@ -1753,7 +1753,7 @@
 irc_parse_topic(GaimConnection *gc, char *nick,
                 char *word[], char *word_eol[])
 {
-	struct gaim_conversation *c = irc_find_chat(gc, word[3]);
+	GaimConversation *c = irc_find_chat(gc, word[3]);
 	char *topic = irc_recv_convert(gc, *word_eol[4] == ':' ? word_eol[4] + 1 : word_eol[4]);
 	char buf[IRC_BUF_LEN];
 
@@ -1772,8 +1772,8 @@
                char *word[], char *word_eol[])
 {
 	char *chan = cmd + 5;
-	struct gaim_conversation *c;
-	struct gaim_chat *chat;
+	GaimConversation *c;
+	GaimChat *chat;
 	char *reason = word_eol[4];
 	GList *r;
 
@@ -2200,8 +2200,8 @@
 		irc_write(id->fd, buf, strlen(buf));
 	} else if (!g_ascii_strcasecmp(pdibuf, "TOPIC")) {
 		if (!*word_eol[2]) {
-			struct gaim_conversation *c;
-			struct gaim_chat *chat;
+			GaimConversation *c;
+			GaimChat *chat;
 
 			c = irc_find_chat(gc, who);
 			chat = GAIM_CHAT(c);
@@ -2286,7 +2286,7 @@
 	} else if (!g_ascii_strcasecmp(pdibuf, "PART")) {
 		const char *chan = *word[2] ? word[2] : who;
 		char *reason = word_eol[3];
-		struct gaim_conversation *c;
+		GaimConversation *c;
 		if (!is_channel(gc, chan)) {
 			g_free(what);
 			return -EINVAL;
@@ -2346,7 +2346,7 @@
 				irc_ctcp_ping(gc, word[3]);
 		}
 	} else if (!g_ascii_strcasecmp(pdibuf, "DCC")) {
-		struct gaim_conversation *c = NULL;
+		GaimConversation *c = NULL;
 		if (!g_ascii_strcasecmp(word[2], "CHAT")) {
 			if (word[3])
 				irc_start_chat(gc, word[3]);
@@ -2363,7 +2363,7 @@
 			}
 		}
 	} else if (!g_ascii_strcasecmp(pdibuf, "HELP")) {
-		struct gaim_conversation *c = NULL;
+		GaimConversation *c = NULL;
 		if (is_channel(gc, who)) {
 			c = irc_find_chat(gc, who);
 		} else {
@@ -2405,7 +2405,7 @@
 				-1, WFLAG_NOLOG, time(NULL));
 		}
 	} else {
-		struct gaim_conversation *c = NULL;
+		GaimConversation *c = NULL;
 		if (is_channel(gc, who)) {
 			c = irc_find_chat(gc, who);
 		} else {
@@ -2450,7 +2450,7 @@
 irc_chat_invite(GaimConnection *gc, int idn, const char *message, const char *name) {
 	char buf[IRC_BUF_LEN]; 
 	struct irc_data *id = gc->proto_data;
-	struct gaim_conversation *c = gaim_find_chat(gc, idn);
+	GaimConversation *c = gaim_find_chat(gc, idn);
 	g_snprintf(buf, sizeof(buf), "INVITE %s %s\r\n", name, c->name);
 	irc_write(id->fd, buf, strlen(buf));
 }
@@ -2511,7 +2511,7 @@
 irc_chat_leave(GaimConnection *gc, int id)
 {
 	struct irc_data *idata = gc->proto_data;
-	struct gaim_conversation *c = gaim_find_chat(gc, id);
+	GaimConversation *c = gaim_find_chat(gc, id);
 	char buf[IRC_BUF_LEN];
 
 	if (!c) return;
@@ -2523,7 +2523,7 @@
 static int 
 irc_chat_send(GaimConnection *gc, int id, char *what)
 {
-	struct gaim_conversation *c = gaim_find_chat(gc, id);
+	GaimConversation *c = gaim_find_chat(gc, id);
 	if (!c)
 		return -EINVAL;
 	if (send_msg(gc, c->name, what) > 0)
@@ -2597,7 +2597,7 @@
 dcc_chat_connected(gpointer data, gint source, GdkInputCondition condition)
 {
 	struct dcc_chat *chat = data;
-	struct gaim_conversation *convo;
+	GaimConversation *convo;
 	char buf[128];
 	struct sockaddr_in addr;
 	int addrlen = sizeof (addr);
--- a/src/protocols/jabber/jabber.c	Mon Jun 02 22:17:30 2003 +0000
+++ b/src/protocols/jabber/jabber.c	Mon Jun 02 22:24:07 2003 +0000
@@ -226,7 +226,7 @@
 struct jabber_chat {
 	gaim_jid gjid;
 	GaimConnection *gc;
-	struct gaim_conversation *b;
+	GaimConversation *b;
 	int id;
 	int state;
 };
@@ -838,10 +838,10 @@
 /*
  * Find chat by chat group name
  */
-static struct gaim_conversation *find_chat(GaimConnection *gc, char *name)
+static GaimConversation *find_chat(GaimConnection *gc, char *name)
 {
 	GSList *bcs = gc->buddy_chats;
-	struct gaim_conversation *b = NULL;
+	GaimConversation *b = NULL;
 	char *chat = g_strdup(normalize(name));
 
 	while (bcs) {
@@ -871,7 +871,7 @@
 static int jabber_find_chat_by_convo_id(GaimConnection *gc, int id, struct jabber_chat **jc)
 {
 	GSList *bcs = gc->buddy_chats;
-	struct gaim_conversation *b = NULL;
+	GaimConversation *b = NULL;
 	struct jabber_data *jd = gc->proto_data;
 
 	*jc = NULL;
@@ -954,7 +954,7 @@
 	return jc;
 }
 
-static gboolean find_chat_buddy(struct gaim_conversation *b, char *name)
+static gboolean find_chat_buddy(GaimConversation *b, char *name)
 {
 	GList *m = gaim_chat_get_users(GAIM_CHAT(b));
 
@@ -1504,7 +1504,7 @@
 	xmlnode y;
 	char *show;
 	int state = 0;
-	struct gaim_conversation *cnv = NULL;
+	GaimConversation *cnv = NULL;
 	struct jabber_chat *jc = NULL;
 	int priority = 0;
 	struct jabber_buddy_data *jbd;
--- a/src/protocols/msn/switchboard.c	Mon Jun 02 22:17:30 2003 +0000
+++ b/src/protocols/msn/switchboard.c	Mon Jun 02 22:24:07 2003 +0000
@@ -109,7 +109,7 @@
 		gaim_chat_remove_user(GAIM_CHAT(swboard->chat), user, NULL);
 	else {
 		const char *username;
-		struct gaim_conversation *conv;
+		GaimConversation *conv;
 		struct buddy *b;
 		char buf[MSN_BUF_LEN];
 
--- a/src/protocols/msn/switchboard.h	Mon Jun 02 22:17:30 2003 +0000
+++ b/src/protocols/msn/switchboard.h	Mon Jun 02 22:24:07 2003 +0000
@@ -39,7 +39,7 @@
 
 	gboolean invited;
 
-	struct gaim_conversation *chat;
+	GaimConversation *chat;
 
 	gboolean in_use;
 
--- a/src/protocols/napster/napster.c	Mon Jun 02 22:17:30 2003 +0000
+++ b/src/protocols/napster/napster.c	Mon Jun 02 22:24:07 2003 +0000
@@ -60,12 +60,12 @@
 	gchar *email;
 };
 
-static struct gaim_conversation *nap_find_chat(GaimConnection *gc, const char *name)
+static GaimConversation *nap_find_chat(GaimConnection *gc, const char *name)
 {
 	GSList *bcs = gc->buddy_chats;
 
 	while (bcs) {
-		struct gaim_conversation *b = bcs->data;
+		GaimConversation *b = bcs->data;
 		if (!gaim_utf8_strcasecmp(b->name, name))
 			return b;
 		bcs = bcs->next;
@@ -199,7 +199,7 @@
 /* 401 - MSG_CLIENT_PART */
 static void nap_chat_leave(GaimConnection *gc, int id)
 {
-	struct gaim_conversation *c = gaim_find_chat(gc, id);
+	GaimConversation *c = gaim_find_chat(gc, id);
 
 	if (!c)
 		return;
@@ -210,7 +210,7 @@
 /* 402 - MSG_CLIENT_PUBLIC */
 static int nap_chat_send(GaimConnection *gc, int id, char *message)
 {
-	struct gaim_conversation *c = gaim_find_chat(gc, id);
+	GaimConversation *c = gaim_find_chat(gc, id);
 
 	if (!c)
 		return -EINVAL;
@@ -236,7 +236,7 @@
 {
 	GaimConnection *gc = data;
 	struct nap_data *ndata = gc->proto_data;
-	struct gaim_conversation *c;
+	GaimConversation *c;
 	gchar *buf, *buf2, *buf3, **res;
 	unsigned short header[2];
 	int len;
--- a/src/protocols/oscar/oscar.c	Mon Jun 02 22:17:30 2003 +0000
+++ b/src/protocols/oscar/oscar.c	Mon Jun 02 22:24:07 2003 +0000
@@ -134,7 +134,7 @@
 	int inpa;
 	int id;
 	GaimConnection *gc; /* i hate this. */
-	struct gaim_conversation *cnv; /* bah. */
+	GaimConversation *cnv; /* bah. */
 	int maxlen;
 	int maxvis;
 };
@@ -454,7 +454,7 @@
 static void gaim_odc_disconnect(aim_session_t *sess, aim_conn_t *conn) {
 	GaimConnection *gc = sess->aux_data;
 	struct oscar_data *od = (struct oscar_data *)gc->proto_data;
-	struct gaim_conversation *cnv;
+	GaimConversation *cnv;
 	struct direct_im *dim;
 	char *sn;
 	char buf[256];
@@ -1859,7 +1859,7 @@
 	struct direct_im *dim = data;
 	GaimConnection *gc = dim->gc;
 	struct oscar_data *od = gc->proto_data;
-	struct gaim_conversation *cnv;
+	GaimConversation *cnv;
 	char buf[256];
 	struct sockaddr name;
 	socklen_t name_len = 1;
@@ -5164,13 +5164,13 @@
 static void oscar_chat_leave(GaimConnection *g, int id) {
 	struct oscar_data *od = g ? (struct oscar_data *)g->proto_data : NULL;
 	GSList *bcs = g->buddy_chats;
-	struct gaim_conversation *b = NULL;
+	GaimConversation *b = NULL;
 	struct chat_connection *c = NULL;
 	int count = 0;
 
 	while (bcs) {
 		count++;
-		b = (struct gaim_conversation *)bcs->data;
+		b = (GaimConversation *)bcs->data;
 		if (id == gaim_chat_get_id(GAIM_CHAT(b)))
 			break;
 		bcs = bcs->next;
@@ -5202,13 +5202,13 @@
 static int oscar_chat_send(GaimConnection *g, int id, char *message) {
 	struct oscar_data *od = (struct oscar_data *)g->proto_data;
 	GSList *bcs = g->buddy_chats;
-	struct gaim_conversation *b = NULL;
+	GaimConversation *b = NULL;
 	struct chat_connection *c = NULL;
 	char *buf, *buf2;
 	int i, j;
 
 	while (bcs) {
-		b = (struct gaim_conversation *)bcs->data;
+		b = (GaimConversation *)bcs->data;
 		if (id == gaim_chat_get_id(GAIM_CHAT(b)))
 			break;
 		bcs = bcs->next;
@@ -5400,7 +5400,7 @@
 static int gaim_odc_initiate(aim_session_t *sess, aim_frame_t *fr, ...) {
 	GaimConnection *gc = sess->aux_data;
 	struct oscar_data *od = (struct oscar_data *)gc->proto_data;
-	struct gaim_conversation *cnv;
+	GaimConversation *cnv;
 	struct direct_im *dim;
 	char buf[256];
 	char *sn;
@@ -5444,7 +5444,7 @@
 	double percent;
 	GaimConnection *gc = sess->aux_data;
 	struct oscar_data *od = (struct oscar_data *)gc->proto_data;
-	struct gaim_conversation *c;
+	GaimConversation *c;
 	struct direct_im *dim;
 
 	va_start(ap, fr);
--- a/src/protocols/toc/toc.c	Mon Jun 02 22:17:30 2003 +0000
+++ b/src/protocols/toc/toc.c	Mon Jun 02 22:24:07 2003 +0000
@@ -790,8 +790,8 @@
 		int id;
 		char *in, *buddy;
 		GSList *bcs = gc->buddy_chats;
-		struct gaim_conversation *b = NULL;
-		struct gaim_chat *chat;
+		GaimConversation *b = NULL;
+		GaimChat *chat;
 
 		sscanf(strtok(NULL, ":"), "%d", &id);
 		in = strtok(NULL, ":");
@@ -799,7 +799,7 @@
 		chat = GAIM_CHAT(b);
 
 		while (bcs) {
-			b = (struct gaim_conversation *)bcs->data;
+			b = (GaimConversation *)bcs->data;
 			if (id == gaim_chat_get_id(chat))
 				break;
 			bcs = bcs->next;
@@ -831,13 +831,13 @@
 		serv_got_chat_invite(gc, name, who, message, components);
 	} else if (!g_ascii_strcasecmp(c, "CHAT_LEFT")) {
 		GSList *bcs = gc->buddy_chats;
-		struct gaim_conversation *b = NULL;
+		GaimConversation *b = NULL;
 		int id;
 
 		sscanf(strtok(NULL, ":"), "%d", &id);
 
 		while (bcs) {
-			b = (struct gaim_conversation *)bcs->data;
+			b = (GaimConversation *)bcs->data;
 			if (id == gaim_chat_get_id(GAIM_CHAT(b)))
 				break;
 			b = NULL;
@@ -1234,11 +1234,11 @@
 static void toc_chat_leave(GaimConnection *g, int id)
 {
 	GSList *bcs = g->buddy_chats;
-	struct gaim_conversation *b = NULL;
+	GaimConversation *b = NULL;
 	char buf[BUF_LEN * 2];
 
 	while (bcs) {
-		b = (struct gaim_conversation *)bcs->data;
+		b = (GaimConversation *)bcs->data;
 		if (id == gaim_chat_get_id(GAIM_CHAT(b)))
 			break;
 		b = NULL;