diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2007-04-15 18:03:08 -0700 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2007-04-15 18:03:08 -0700 | 
| commit | 84b045d409f1e8da6d8bf379c6fef7236dcd9bcd (patch) | |
| tree | 765681f302614273ac61e1560955a7307252097e /protocols/oscar | |
| parent | c2fb38096ea4e75a680e57e103d4a4986aa84c75 (diff) | |
s/imc/imcb/ for callback functions. Moved things aroundin nogaim.h a
little bit, grouping things by category instead of original Gaim 0.58
filename.
Diffstat (limited to 'protocols/oscar')
| -rw-r--r-- | protocols/oscar/chat.c | 6 | ||||
| -rw-r--r-- | protocols/oscar/chatnav.c | 10 | ||||
| -rw-r--r-- | protocols/oscar/icq.c | 2 | ||||
| -rw-r--r-- | protocols/oscar/im.c | 8 | ||||
| -rw-r--r-- | protocols/oscar/info.c | 6 | ||||
| -rw-r--r-- | protocols/oscar/oscar.c | 100 | ||||
| -rw-r--r-- | protocols/oscar/rxqueue.c | 2 | ||||
| -rw-r--r-- | protocols/oscar/search.c | 2 | ||||
| -rw-r--r-- | protocols/oscar/service.c | 4 | ||||
| -rw-r--r-- | protocols/oscar/txqueue.c | 8 | 
10 files changed, 74 insertions, 74 deletions
| diff --git a/protocols/oscar/chat.c b/protocols/oscar/chat.c index 82aa5421..fbf45693 100644 --- a/protocols/oscar/chat.c +++ b/protocols/oscar/chat.c @@ -53,7 +53,7 @@ aim_conn_t *aim_chat_getconn(aim_session_t *sess, const char *name)  		if (cur->type != AIM_CONN_TYPE_CHAT)  			continue;  		if (!cur->priv) { -			imc_error(sess->aux_data, "chat connection with no name!"); +			imcb_error(sess->aux_data, "chat connection with no name!");  			continue;  		} @@ -396,7 +396,7 @@ static int infoupdate(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, a  	detaillevel = aimbs_get8(bs);  	if (detaillevel != 0x02) { -		imc_error(sess->aux_data, "Only detaillevel 0x2 is support at the moment"); +		imcb_error(sess->aux_data, "Only detaillevel 0x2 is support at the moment");  		return 1;  	} @@ -614,7 +614,7 @@ static int incomingmsg(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx,  	channel = aimbs_get16(bs);  	if (channel != 0x0003) { -		imc_error(sess->aux_data, "unknown channel!"); +		imcb_error(sess->aux_data, "unknown channel!");  		return 0;  	} diff --git a/protocols/oscar/chatnav.c b/protocols/oscar/chatnav.c index 05fdf6fa..d94d3c7b 100644 --- a/protocols/oscar/chatnav.c +++ b/protocols/oscar/chatnav.c @@ -285,7 +285,7 @@ static int parseinfo_create(aim_session_t *sess, aim_module_t *mod, aim_frame_t  	tlvlist = aim_readtlvchain(bs);  	if (!(bigblock = aim_gettlv(tlvlist, 0x0004, 1))) { -		imc_error(sess->aux_data, "no bigblock in top tlv in create room response"); +		imcb_error(sess->aux_data, "no bigblock in top tlv in create room response");  		aim_freetlvchain(&tlvlist);  		return 0; @@ -300,7 +300,7 @@ static int parseinfo_create(aim_session_t *sess, aim_module_t *mod, aim_frame_t  	detaillevel = aimbs_get8(&bbbs);  	if (detaillevel != 0x02) { -		imc_error(sess->aux_data, "unknown detaillevel in create room response"); +		imcb_error(sess->aux_data, "unknown detaillevel in create room response");  		aim_freetlvchain(&tlvlist);  		g_free(ck);  		return 0; @@ -366,12 +366,12 @@ static int parseinfo(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, ai  	int ret = 0;  	if (!(snac2 = aim_remsnac(sess, snac->id))) { -		imc_error(sess->aux_data, "received response to unknown request!"); +		imcb_error(sess->aux_data, "received response to unknown request!");  		return 0;  	}  	if (snac2->family != 0x000d) { -		imc_error(sess->aux_data, "recieved response that maps to corrupt request!"); +		imcb_error(sess->aux_data, "recieved response that maps to corrupt request!");  		return 0;  	} @@ -388,7 +388,7 @@ static int parseinfo(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, ai  	else if (snac2->type == 0x0008) /* create room */  		ret = parseinfo_create(sess, mod, rx, snac, bs, snac2);  	else -		imc_error(sess->aux_data, "unknown request subtype"); +		imcb_error(sess->aux_data, "unknown request subtype");  	if (snac2)  		g_free(snac2->data); diff --git a/protocols/oscar/icq.c b/protocols/oscar/icq.c index d3c7c182..f7c02e04 100644 --- a/protocols/oscar/icq.c +++ b/protocols/oscar/icq.c @@ -239,7 +239,7 @@ static int icqresponse(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx,  	if (!(tl = aim_readtlvchain(bs)) || !(datatlv = aim_gettlv(tl, 0x0001, 1))) {  		aim_freetlvchain(&tl); -		imc_error(sess->aux_data, "corrupt ICQ response\n"); +		imcb_error(sess->aux_data, "corrupt ICQ response\n");  		return 0;  	} diff --git a/protocols/oscar/im.c b/protocols/oscar/im.c index ac3d08d4..51d8ec74 100644 --- a/protocols/oscar/im.c +++ b/protocols/oscar/im.c @@ -936,7 +936,7 @@ static int outgoingim(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, a  	channel = aimbs_get16(bs);  	if (channel != 0x01) { -		imc_error(sess->aux_data, "icbm: ICBM recieved on unsupported channel.  Ignoring."); +		imcb_error(sess->aux_data, "icbm: ICBM recieved on unsupported channel.  Ignoring.");  		return 0;  	} @@ -1344,7 +1344,7 @@ static int incomingim_ch1(aim_session_t *sess, aim_module_t *mod, aim_frame_t *r  			args.extdata = aimbs_getraw(bs, args.extdatalen);  		} else { -			// imc_error(sess->aux_data, "Unknown TLV encountered"); +			// imcb_error(sess->aux_data, "Unknown TLV encountered");  		}  		/* @@ -1516,7 +1516,7 @@ static int incomingim_ch2(aim_session_t *sess, aim_module_t *mod, aim_frame_t *r  	 */  	cookie2 = aimbs_getraw(&bbs, 8);  	if (memcmp(cookie, cookie2, 8) != 0)  -		imc_error(sess->aux_data, "rend: warning cookies don't match!"); +		imcb_error(sess->aux_data, "rend: warning cookies don't match!");  	memcpy(args.cookie, cookie2, 8);  	g_free(cookie2); @@ -1782,7 +1782,7 @@ static int incomingim(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, a  	} else { -		imc_error(sess->aux_data, "ICBM received on an unsupported channel.  Ignoring."); +		imcb_error(sess->aux_data, "ICBM received on an unsupported channel.  Ignoring.");  		return 0;  	} diff --git a/protocols/oscar/info.c b/protocols/oscar/info.c index d1ed2059..7cc1dbbc 100644 --- a/protocols/oscar/info.c +++ b/protocols/oscar/info.c @@ -473,7 +473,7 @@ int aim_extractuserinfo(aim_session_t *sess, aim_bstream_t *bs, aim_userinfo_t *  			 *  			 */  #ifdef DEBUG -			// imc_error(sess->aux_data, G_STRLOC); +			// imcb_error(sess->aux_data, G_STRLOC);  #endif  		} @@ -634,7 +634,7 @@ static int userinfo(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim  	origsnac = aim_remsnac(sess, snac->id);  	if (!origsnac || !origsnac->data) { -		imc_error(sess->aux_data, "major problem: no snac stored!"); +		imcb_error(sess->aux_data, "major problem: no snac stored!");  		return 0;  	} @@ -643,7 +643,7 @@ static int userinfo(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim  	if ((inforeq->infotype != AIM_GETINFO_GENERALINFO) &&  			(inforeq->infotype != AIM_GETINFO_AWAYMESSAGE) &&  			(inforeq->infotype != AIM_GETINFO_CAPABILITIES)) { -		imc_error(sess->aux_data, "unknown infotype in request!"); +		imcb_error(sess->aux_data, "unknown infotype in request!");  		return 0;  	} diff --git a/protocols/oscar/oscar.c b/protocols/oscar/oscar.c index d95c7068..99f839e4 100644 --- a/protocols/oscar/oscar.c +++ b/protocols/oscar/oscar.c @@ -266,7 +266,7 @@ static gboolean oscar_callback(gpointer data, gint source,  		} else {  			if ((conn->type == AIM_CONN_TYPE_BOS) ||  				   !(aim_getconn_type(odata->sess, AIM_CONN_TYPE_BOS))) { -				imc_error(ic, _("Disconnected.")); +				imcb_error(ic, _("Disconnected."));  				imc_logout(ic, TRUE);  			} else if (conn->type == AIM_CONN_TYPE_CHAT) {  				struct chat_connection *c = find_oscar_chat_by_conn(ic, conn); @@ -276,7 +276,7 @@ static gboolean oscar_callback(gpointer data, gint source,  				c->inpa = 0;  				c->fd = -1;  				aim_conn_kill(odata->sess, &conn); -				imc_error(sess->aux_data, _("You have been disconnected from chat room %s."), c->name); +				imcb_error(sess->aux_data, _("You have been disconnected from chat room %s."), c->name);  			} else if (conn->type == AIM_CONN_TYPE_CHATNAV) {  				if (odata->cnpa > 0)  					b_event_remove(odata->cnpa); @@ -287,7 +287,7 @@ static gboolean oscar_callback(gpointer data, gint source,  					odata->create_rooms =  						g_slist_remove(odata->create_rooms, cr);  					g_free(cr); -					imc_error(sess->aux_data, _("Chat is currently unavailable")); +					imcb_error(sess->aux_data, _("Chat is currently unavailable"));  				}  				aim_conn_kill(odata->sess, &conn);  			} else if (conn->type == AIM_CONN_TYPE_AUTH) { @@ -324,7 +324,7 @@ static gboolean oscar_login_connect(gpointer data, gint source, b_input_conditio  	conn = aim_getconn_type_all(sess, AIM_CONN_TYPE_AUTH);  	if (source < 0) { -		imc_error(ic, _("Couldn't connect to host")); +		imcb_error(ic, _("Couldn't connect to host"));  		imc_logout(ic, TRUE);  		return FALSE;  	} @@ -352,7 +352,7 @@ static void oscar_init(account_t *acc)  static void oscar_login(account_t *acc) {  	aim_session_t *sess;  	aim_conn_t *conn; -	struct im_connection *ic = imc_new(acc); +	struct im_connection *ic = imcb_new(acc);  	struct oscar_data *odata = ic->proto_data = g_new0(struct oscar_data, 1);  	if (isdigit(acc->user[0])) { @@ -379,23 +379,23 @@ static void oscar_login(account_t *acc) {  	conn = aim_newconn(sess, AIM_CONN_TYPE_AUTH, NULL);  	if (conn == NULL) { -		imc_error(ic, _("Unable to login to AIM")); +		imcb_error(ic, _("Unable to login to AIM"));  		imc_logout(ic, TRUE);  		return;  	}  	if (acc->server == NULL) { -		imc_error(ic, "No servername specified"); +		imcb_error(ic, "No servername specified");  		imc_logout(ic, FALSE);  		return;  	}  	if (g_strcasecmp(acc->server, "login.icq.com") != 0 &&  	    g_strcasecmp(acc->server, "login.oscar.aol.com") != 0) { -		imc_log(ic, "Warning: Unknown OSCAR server: `%s'. Please review your configuration if the connection fails.",acc->server); +		imcb_log(ic, "Warning: Unknown OSCAR server: `%s'. Please review your configuration if the connection fails.",acc->server);  	} -	imc_log(ic, _("Signon: %s"), ic->acc->user); +	imcb_log(ic, _("Signon: %s"), ic->acc->user);  	aim_conn_addhandler(sess, conn, 0x0017, 0x0007, gaim_parse_login, 0);  	aim_conn_addhandler(sess, conn, 0x0017, 0x0003, gaim_parse_auth_resp, 0); @@ -403,7 +403,7 @@ static void oscar_login(account_t *acc) {  	conn->status |= AIM_CONN_STATUS_INPROGRESS;  	conn->fd = proxy_connect(acc->server, AIM_LOGIN_PORT, oscar_login_connect, ic);  	if (conn->fd < 0) { -		imc_error(ic, _("Couldn't connect to host")); +		imcb_error(ic, _("Couldn't connect to host"));  		imc_logout(ic, TRUE);  		return;  	} @@ -463,7 +463,7 @@ static gboolean oscar_bos_connect(gpointer data, gint source, b_input_condition  	bosconn = odata->conn;  	if (source < 0) { -		imc_error(ic, _("Could Not Connect")); +		imcb_error(ic, _("Could Not Connect"));  		imc_logout(ic, TRUE);  		return FALSE;  	} @@ -471,7 +471,7 @@ static gboolean oscar_bos_connect(gpointer data, gint source, b_input_condition  	aim_conn_completeconnect(sess, bosconn);  	ic->inpa = b_input_add(bosconn->fd, GAIM_INPUT_READ,  			oscar_callback, bosconn); -	imc_log(ic, _("Connection established, cookie sent")); +	imcb_log(ic, _("Connection established, cookie sent"));  	return FALSE;  } @@ -494,23 +494,23 @@ static int gaim_parse_auth_resp(aim_session_t *sess, aim_frame_t *fr, ...) {  		switch (info->errorcode) {  		case 0x05:  			/* Incorrect nick/password */ -			imc_error(ic, _("Incorrect nickname or password.")); +			imcb_error(ic, _("Incorrect nickname or password."));  //			plugin_event(event_error, (void *)980, 0, 0, 0);  			break;  		case 0x11:  			/* Suspended account */ -			imc_error(ic, _("Your account is currently suspended.")); +			imcb_error(ic, _("Your account is currently suspended."));  			break;  		case 0x18:  			/* connecting too frequently */ -			imc_error(ic, _("You have been connecting and disconnecting too frequently. Wait ten minutes and try again. If you continue to try, you will need to wait even longer.")); +			imcb_error(ic, _("You have been connecting and disconnecting too frequently. Wait ten minutes and try again. If you continue to try, you will need to wait even longer."));  			break;  		case 0x1c:  			/* client too old */ -			imc_error(ic, _("The client version you are using is too old. Please upgrade at " WEBSITE)); +			imcb_error(ic, _("The client version you are using is too old. Please upgrade at " WEBSITE));  			break;  		default: -			imc_error(ic, _("Authentication Failed")); +			imcb_error(ic, _("Authentication Failed"));  			break;  		}  		od->killme = TRUE; @@ -522,7 +522,7 @@ static int gaim_parse_auth_resp(aim_session_t *sess, aim_frame_t *fr, ...) {  	bosconn = aim_newconn(sess, AIM_CONN_TYPE_BOS, NULL);  	if (bosconn == NULL) { -		imc_error(ic, _("Internal Error")); +		imcb_error(ic, _("Internal Error"));  		od->killme = TRUE;  		return 0;  	} @@ -568,7 +568,7 @@ static int gaim_parse_auth_resp(aim_session_t *sess, aim_frame_t *fr, ...) {  	bosconn->fd = proxy_connect(host, port, oscar_bos_connect, ic);  	g_free(host);  	if (bosconn->fd < 0) { -		imc_error(ic, _("Could Not Connect")); +		imcb_error(ic, _("Could Not Connect"));  		od->killme = TRUE;  		return 0;  	} @@ -606,7 +606,7 @@ static gboolean damn_you(gpointer data, gint source, b_input_condition c)  		in = '\0';  	}  	if (in != '\n') { -		imc_error(pos->ic, "Gaim was unable to get a valid hash for logging into AIM." +		imcb_error(pos->ic, "Gaim was unable to get a valid hash for logging into AIM."  				" You may be disconnected shortly.");  		b_event_remove(pos->inpa);  		closesocket(pos->fd); @@ -629,7 +629,7 @@ static gboolean straight_to_hell(gpointer data, gint source, b_input_condition c  	char buf[BUF_LONG];  	if (source < 0) { -		imc_error(pos->ic, "Gaim was unable to get a valid hash for logging into AIM." +		imcb_error(pos->ic, "Gaim was unable to get a valid hash for logging into AIM."  				" You may be disconnected shortly.");  		if (pos->modname)  			g_free(pos->modname); @@ -707,7 +707,7 @@ int gaim_memrequest(aim_session_t *sess, aim_frame_t *fr, ...) {  		if (pos->modname)  			g_free(pos->modname);  		g_free(pos); -		imc_error(sess->aux_data, "Gaim was unable to get a valid hash for logging into AIM." +		imcb_error(sess->aux_data, "Gaim was unable to get a valid hash for logging into AIM."  				" You may be disconnected shortly.");  	}  	pos->fd = fd; @@ -1111,7 +1111,7 @@ static int incomingim_chan2(aim_session_t *sess, aim_conn_t *conn, aim_userinfo_  		inv->exchange = *exch;  		inv->name = g_strdup(name); -		do_ask_dialog( ic, txt, inv, oscar_accept_chat, oscar_reject_chat); +		imcb_ask( ic, txt, inv, oscar_accept_chat, oscar_reject_chat);  		if (name)  			g_free(name); @@ -1129,7 +1129,7 @@ static void gaim_icq_authgrant(gpointer w, struct icq_auth *data) {  	aim_ssi_auth_reply(od->sess, od->conn, uin, 1, "");  	// aim_send_im_ch4(od->sess, uin, AIM_ICQMSG_AUTHGRANTED, &message);  	if(find_buddy(data->ic, uin) == NULL) -		show_got_added(data->ic, uin, NULL); +		imcb_ask_add(data->ic, uin, NULL);  	g_free(uin);  	g_free(data); @@ -1163,7 +1163,7 @@ static void gaim_icq_authask(struct im_connection *ic, guint32 uin, char *msg) {  	dialog_msg = g_strdup_printf("The user %u wants to add you to their buddy list for the following reason: %s", uin, reason ? reason : "No reason given.");  	data->ic = ic;  	data->uin = uin; -	do_ask_dialog(ic, dialog_msg, data, gaim_icq_authgrant, gaim_icq_authdeny); +	imcb_ask(ic, dialog_msg, data, gaim_icq_authgrant, gaim_icq_authdeny);  	g_free(dialog_msg);  } @@ -1206,11 +1206,11 @@ static int incomingim_chan4(aim_session_t *sess, aim_conn_t *conn, aim_userinfo_  		} break;  		case 0x0007: { /* Someone has denied you authorization */ -			imc_log(sess->aux_data, "The user %u has denied your request to add them to your contact list for the following reason:\n%s", args->uin, args->msg ? args->msg : _("No reason given.") ); +			imcb_log(sess->aux_data, "The user %u has denied your request to add them to your contact list for the following reason:\n%s", args->uin, args->msg ? args->msg : _("No reason given.") );  		} break;  		case 0x0008: { /* Someone has granted you authorization */ -			imc_log(sess->aux_data, "The user %u has granted your request to add them to your contact list for the following reason:\n%s", args->uin, args->msg ? args->msg : _("No reason given.") ); +			imcb_log(sess->aux_data, "The user %u has granted your request to add them to your contact list for the following reason:\n%s", args->uin, args->msg ? args->msg : _("No reason given.") );  		} break;  		case 0x0012: { @@ -1276,7 +1276,7 @@ static int gaim_parse_misses(aim_session_t *sess, aim_frame_t *fr, ...) {  	switch(reason) {  		case 0:  			/* Invalid (0) */ -			imc_error(sess->aux_data, +			imcb_error(sess->aux_data,  				   nummissed == 1 ?   				   _("You missed %d message from %s because it was invalid.") :  				   _("You missed %d messages from %s because they were invalid."), @@ -1285,7 +1285,7 @@ static int gaim_parse_misses(aim_session_t *sess, aim_frame_t *fr, ...) {  			break;  		case 1:  			/* Message too large */ -			imc_error(sess->aux_data, +			imcb_error(sess->aux_data,  				   nummissed == 1 ?  				   _("You missed %d message from %s because it was too large.") :  				   _("You missed %d messages from %s because they were too large."), @@ -1294,7 +1294,7 @@ static int gaim_parse_misses(aim_session_t *sess, aim_frame_t *fr, ...) {  			break;  		case 2:  			/* Rate exceeded */ -			imc_error(sess->aux_data, +			imcb_error(sess->aux_data,  				   nummissed == 1 ?   				   _("You missed %d message from %s because the rate limit has been exceeded.") :  				   _("You missed %d messages from %s because the rate limit has been exceeded."), @@ -1303,7 +1303,7 @@ static int gaim_parse_misses(aim_session_t *sess, aim_frame_t *fr, ...) {  			break;  		case 3:  			/* Evil Sender */ -			imc_error(sess->aux_data, +			imcb_error(sess->aux_data,  				   nummissed == 1 ?  				   _("You missed %d message from %s because it was too evil.") :   				   _("You missed %d messages from %s because they are too evil."), @@ -1312,7 +1312,7 @@ static int gaim_parse_misses(aim_session_t *sess, aim_frame_t *fr, ...) {  			break;  		case 4:  			/* Evil Receiver */ -			imc_error(sess->aux_data, +			imcb_error(sess->aux_data,  				   nummissed == 1 ?   				   _("You missed %d message from %s because you are too evil.") :  				   _("You missed %d messages from %s because you are too evil."), @@ -1320,7 +1320,7 @@ static int gaim_parse_misses(aim_session_t *sess, aim_frame_t *fr, ...) {  				   userinfo->sn);  			break;  		default: -			imc_error(sess->aux_data, +			imcb_error(sess->aux_data,  				   nummissed == 1 ?   				   _("You missed %d message from %s for unknown reasons.") :  				   _("You missed %d messages from %s for unknown reasons."), @@ -1340,7 +1340,7 @@ static int gaim_parse_genericerr(aim_session_t *sess, aim_frame_t *fr, ...) {  	reason = (guint16)va_arg(ap, unsigned int);  	va_end(ap); -	imc_error(sess->aux_data, _("SNAC threw error: %s"), +	imcb_error(sess->aux_data, _("SNAC threw error: %s"),  	          reason < msgerrreasonlen ? msgerrreason[reason] : "Unknown error");  	return 1; @@ -1356,7 +1356,7 @@ static int gaim_parse_msgerr(aim_session_t *sess, aim_frame_t *fr, ...) {  	destn = va_arg(ap, char *);  	va_end(ap); -	imc_error(sess->aux_data, _("Your message to %s did not get sent: %s"), destn, +	imcb_error(sess->aux_data, _("Your message to %s did not get sent: %s"), destn,  			(reason < msgerrreasonlen) ? msgerrreason[reason] : _("Reason unknown"));  	return 1; @@ -1372,7 +1372,7 @@ static int gaim_parse_locerr(aim_session_t *sess, aim_frame_t *fr, ...) {  	destn = va_arg(ap, char *);  	va_end(ap); -	imc_error(sess->aux_data, _("User information for %s unavailable: %s"), destn, +	imcb_error(sess->aux_data, _("User information for %s unavailable: %s"), destn,  			(reason < msgerrreasonlen) ? msgerrreason[reason] : _("Reason unknown"));  	return 1; @@ -1389,7 +1389,7 @@ static int gaim_parse_motd(aim_session_t *sess, aim_frame_t *fr, ...) {  	va_end(ap);  	if (id < 4) -		imc_error(sess->aux_data, _("Your connection may be lost.")); +		imcb_error(sess->aux_data, _("Your connection may be lost."));  	return 1;  } @@ -1583,7 +1583,7 @@ static int gaim_parse_ratechange(aim_session_t *sess, aim_frame_t *fr, ...) {  	} else if (code == AIM_RATE_CODE_WARNING) {  		aim_conn_setlatency(fr->conn, windowsize/4);  	} else if (code == AIM_RATE_CODE_LIMIT) { -		imc_error(sess->aux_data, _("The last message was not sent because you are over the rate limit. " +		imcb_error(sess->aux_data, _("The last message was not sent because you are over the rate limit. "  			  "Please wait 10 seconds and try again."));  		aim_conn_setlatency(fr->conn, windowsize/2);  	} else if (code == AIM_RATE_CODE_CLEARLIMIT) { @@ -1788,11 +1788,11 @@ static int gaim_offlinemsg(aim_session_t *sess, aim_frame_t *fr, ...) {  		} break;  		case 0x0007: { /* Someone has denied you authorization */ -			imc_log(sess->aux_data, "The user %u has denied your request to add them to your contact list for the following reason:\n%s", msg->sender, msg->msg ? msg->msg : _("No reason given.") ); +			imcb_log(sess->aux_data, "The user %u has denied your request to add them to your contact list for the following reason:\n%s", msg->sender, msg->msg ? msg->msg : _("No reason given.") );  		} break;  		case 0x0008: { /* Someone has granted you authorization */ -			imc_log(sess->aux_data, "The user %u has granted your request to add them to your contact list for the following reason:\n%s", msg->sender, msg->msg ? msg->msg : _("No reason given.") ); +			imcb_log(sess->aux_data, "The user %u has granted your request to add them to your contact list for the following reason:\n%s", msg->sender, msg->msg ? msg->msg : _("No reason given.") );  		} break;  		case 0x0012: { @@ -1905,7 +1905,7 @@ static void oscar_set_away_aim(struct im_connection *ic, struct oscar_data *od,  	} /* else... */  	if (od->rights.maxawaymsglen == 0) -		imc_error(ic, "oscar_set_away_aim called before locate rights received"); +		imcb_error(ic, "oscar_set_away_aim called before locate rights received");  	aim_setextstatus(od->sess, od->conn, AIM_ICQ_STATE_NORMAL); @@ -1919,7 +1919,7 @@ static void oscar_set_away_aim(struct im_connection *ic, struct oscar_data *od,  	}  	if (strlen(message) > od->rights.maxawaymsglen) { -		imc_error(ic, "Maximum away message length of %d bytes exceeded, truncating", od->rights.maxawaymsglen); +		imcb_error(ic, "Maximum away message length of %d bytes exceeded, truncating", od->rights.maxawaymsglen);  	}  	ic->away = g_strndup(message, od->rights.maxawaymsglen); @@ -2083,7 +2083,7 @@ static int gaim_ssi_parselist(aim_session_t *sess, aim_frame_t *fr, ...) {  	aim_icq_reqofflinemsgs(sess);  	/* Now that we have a buddy list, we can tell BitlBee that we're online. */ -	imc_connected(ic); +	imcb_connected(ic);  	return 1;  } @@ -2105,7 +2105,7 @@ static int gaim_ssi_parseack( aim_session_t *sess, aim_frame_t *fr, ... )  		if( count & 1 )  		{  			/* Hmm, the length should be even... */ -			imc_error( sess->aux_data, "Received SSI ACK package with non-even length"); +			imcb_error( sess->aux_data, "Received SSI ACK package with non-even length");  			return( 0 );  		}  		count >>= 1; @@ -2116,7 +2116,7 @@ static int gaim_ssi_parseack( aim_session_t *sess, aim_frame_t *fr, ... )  			st = aimbs_get16( &fr->data );  			if( st == 0x0E )  			{ -				imc_log( sess->aux_data, "Buddy %s can't be added without authorization, requesting authorization", list ); +				imcb_log( sess->aux_data, "Buddy %s can't be added without authorization, requesting authorization", list );  				aim_ssi_auth_request( sess, fr->conn, list, "" );  				aim_ssi_addbuddies( sess, fr->conn, OSCAR_GROUP, &list, 1, 1 ); @@ -2302,7 +2302,7 @@ static int gaim_icqinfo(aim_session_t *sess, aim_frame_t *fr, ...)                  g_string_sprintfa(str, "\n");          } -		imc_log(ic, "%s\n%s", _("User Info"), str->str); +		imcb_log(ic, "%s\n%s", _("User Info"), str->str);          g_string_free(str, TRUE);          return 1; @@ -2396,18 +2396,18 @@ static int gaim_parseaiminfo(aim_session_t *sess, aim_frame_t *fr, ...)  			idletime.tm_min = userinfo->idletime % 60;  			idletime.tm_sec = 0;  			strftime(buff, 256, _("%d days %H hours %M minutes"), &idletime); -			imc_log(ic, "%s: %s", _("Idle Time"), buff); +			imcb_log(ic, "%s: %s", _("Idle Time"), buff);  		}  		if(text) {  			utf8 = oscar_encoding_to_utf8(extracted_encoding, text, text_length); -			imc_log(ic, "%s\n%s", _("User Info"), utf8); +			imcb_log(ic, "%s\n%s", _("User Info"), utf8);  		} else { -			imc_log(ic, _("No user info available.")); +			imcb_log(ic, _("No user info available."));  		}  	} else if(infotype == AIM_GETINFO_AWAYMESSAGE && userinfo->flags & AIM_FLAG_AWAY) {  		utf8 = oscar_encoding_to_utf8(extracted_encoding, text, text_length); -		imc_log(ic, "%s\n%s", _("Away Message"), utf8); +		imcb_log(ic, "%s\n%s", _("Away Message"), utf8);  	}  	g_free(utf8); diff --git a/protocols/oscar/rxqueue.c b/protocols/oscar/rxqueue.c index b5a83be8..34f389af 100644 --- a/protocols/oscar/rxqueue.c +++ b/protocols/oscar/rxqueue.c @@ -391,7 +391,7 @@ int aim_get_command(aim_session_t *sess, aim_conn_t *conn)  		aim_bstream_rewind(&flaphdr);  		start = aimbs_get8(&flaphdr); -		imc_error(sess->aux_data, "FLAP framing disrupted"); +		imcb_error(sess->aux_data, "FLAP framing disrupted");  		aim_conn_close(conn);  		return -1;  	}	 diff --git a/protocols/oscar/search.c b/protocols/oscar/search.c index c557e35f..3570e4df 100644 --- a/protocols/oscar/search.c +++ b/protocols/oscar/search.c @@ -38,7 +38,7 @@ static int error(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_mo  	/* XXX the modules interface should have already retrieved this for us */  	if (!(snac2 = aim_remsnac(sess, snac->id))) { -		imc_error(sess->aux_data, "couldn't get snac"); +		imcb_error(sess->aux_data, "couldn't get snac");  		return 0;  	} diff --git a/protocols/oscar/service.c b/protocols/oscar/service.c index 69d53d00..3a180780 100644 --- a/protocols/oscar/service.c +++ b/protocols/oscar/service.c @@ -566,7 +566,7 @@ static int migrate(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_  		group = aimbs_get16(bs); -		imc_error(sess->aux_data, "bifurcated migration unsupported"); +		imcb_error(sess->aux_data, "bifurcated migration unsupported");  	}  	tl = aim_readtlvchain(bs); @@ -893,7 +893,7 @@ int aim_sendmemblock(aim_session_t *sess, aim_conn_t *conn, guint32 offset, guin  			aimbs_put32(&fr->data, 0xecf8427e);  */  		} else -			imc_error(sess->aux_data, "WARNING: unknown hash request"); +			imcb_error(sess->aux_data, "WARNING: unknown hash request");  	} diff --git a/protocols/oscar/txqueue.c b/protocols/oscar/txqueue.c index bd8db49d..4416025a 100644 --- a/protocols/oscar/txqueue.c +++ b/protocols/oscar/txqueue.c @@ -29,7 +29,7 @@ aim_frame_t *aim_tx_new(aim_session_t *sess, aim_conn_t *conn, guint8 framing, g  	aim_frame_t *fr;  	if (!conn) { -		imc_error(sess->aux_data, "no connection specified"); +		imcb_error(sess->aux_data, "no connection specified");  		return NULL;  	} @@ -45,7 +45,7 @@ aim_frame_t *aim_tx_new(aim_session_t *sess, aim_conn_t *conn, guint8 framing, g  		fr->hdr.flap.type = chan;  	} else  -		imc_error(sess->aux_data, "unknown framing"); +		imcb_error(sess->aux_data, "unknown framing");  	if (datalen > 0) {  		guint8 *data; @@ -79,7 +79,7 @@ static int aim_tx_enqueue__queuebased(aim_session_t *sess, aim_frame_t *fr)  {  	if (!fr->conn) { -		imc_error(sess->aux_data, "WARNING: enqueueing packet with no connection"); +		imcb_error(sess->aux_data, "WARNING: enqueueing packet with no connection");  		fr->conn = aim_getconn_type(sess, AIM_CONN_TYPE_BOS);  	} @@ -119,7 +119,7 @@ static int aim_tx_enqueue__immediate(aim_session_t *sess, aim_frame_t *fr)  {  	if (!fr->conn) { -		imc_error(sess->aux_data, "packet has no connection"); +		imcb_error(sess->aux_data, "packet has no connection");  		aim_frame_destroy(fr);  		return 0;  	} | 
