- Timestamp:
- 2010-06-07T14:31:07Z (15 years ago)
- Branches:
- master
- Children:
- 56699f0
- Parents:
- 0d9d53e (diff), 1fdb0a4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- protocols
- Files:
-
- 4 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/Makefile
r0d9d53e r4aa0f6b 8 8 9 9 -include ../Makefile.settings 10 ifdef SRCDIR 11 SRCDIR := $(SRCDIR)protocols/ 12 endif 10 13 11 14 # [SH] Program variables … … 50 53 $(objects): ../Makefile.settings Makefile 51 54 52 $(objects): %.o: %.c55 $(objects): %.o: $(SRCDIR)%.c 53 56 @echo '*' Compiling $< 54 57 @$(CC) -c $(CFLAGS) $< -o $@ -
protocols/jabber/Makefile
r0d9d53e r4aa0f6b 8 8 9 9 -include ../../Makefile.settings 10 ifdef SRCDIR 11 SRCDIR := $(SRCDIR)protocols/jabber/ 12 endif 10 13 11 14 # [SH] Program variables … … 33 36 $(objects): ../../Makefile.settings Makefile 34 37 35 $(objects): %.o: %.c38 $(objects): %.o: $(SRCDIR)%.c 36 39 @echo '*' Compiling $< 37 40 @$(CC) -c $(CFLAGS) $< -o $@ -
protocols/jabber/io.c
r0d9d53e r4aa0f6b 64 64 most cases it probably won't be necessary.) */ 65 65 if( ( ret = jabber_write_queue( ic ) ) && jd->tx_len > 0 ) 66 jd->w_inpa = b_input_add( jd->fd, GAIM_INPUT_WRITE, jabber_write_callback, ic );66 jd->w_inpa = b_input_add( jd->fd, B_EV_IO_WRITE, jabber_write_callback, ic ); 67 67 } 68 68 else … … 504 504 505 505 if( jd->r_inpa <= 0 ) 506 jd->r_inpa = b_input_add( jd->fd, GAIM_INPUT_READ, jabber_read_callback, ic );506 jd->r_inpa = b_input_add( jd->fd, B_EV_IO_READ, jabber_read_callback, ic ); 507 507 508 508 greet = g_strdup_printf( "%s<stream:stream to=\"%s\" xmlns=\"jabber:client\" " -
protocols/jabber/s5bytestream.c
r0d9d53e r4aa0f6b 406 406 bt->phase = BS_PHASE_CONNECTED; 407 407 408 bt->tf->watch_out = b_input_add( fd, GAIM_INPUT_WRITE, jabber_bs_recv_handshake, bt );408 bt->tf->watch_out = b_input_add( fd, B_EV_IO_WRITE, jabber_bs_recv_handshake, bt ); 409 409 410 410 /* since it takes forever(3mins?) till connect() fails on itself we schedule a timeout */ … … 433 433 bt->phase = BS_PHASE_REQUEST; 434 434 435 bt->tf->watch_in = b_input_add( fd, GAIM_INPUT_READ, jabber_bs_recv_handshake, bt );435 bt->tf->watch_in = b_input_add( fd, B_EV_IO_READ, jabber_bs_recv_handshake, bt ); 436 436 437 437 bt->tf->watch_out = 0; … … 590 590 591 591 tf->ft->data = tf; 592 tf->watch_in = b_input_add( tf->fd, GAIM_INPUT_READ, jabber_bs_recv_read, bt );592 tf->watch_in = b_input_add( tf->fd, B_EV_IO_READ, jabber_bs_recv_read, bt ); 593 593 tf->ft->write_request = jabber_bs_recv_write_request; 594 594 … … 632 632 if( ( ret == -1 ) && ( errno == EAGAIN ) ) 633 633 { 634 tf->watch_in = b_input_add( tf->fd, GAIM_INPUT_READ, jabber_bs_recv_read, bt );634 tf->watch_in = b_input_add( tf->fd, B_EV_IO_READ, jabber_bs_recv_read, bt ); 635 635 return FALSE; 636 636 } … … 708 708 imcb_file_finished( tf->ic, ft ); 709 709 else 710 bt->tf->watch_out = b_input_add( tf->fd, GAIM_INPUT_WRITE, jabber_bs_send_can_write, bt );710 bt->tf->watch_out = b_input_add( tf->fd, B_EV_IO_WRITE, jabber_bs_send_can_write, bt ); 711 711 712 712 return TRUE; … … 919 919 bt->streamhosts = g_slist_append( bt->streamhosts, sh ); 920 920 921 bt->tf->watch_in = b_input_add( tf->fd, GAIM_INPUT_READ, jabber_bs_send_handshake, bt );921 bt->tf->watch_in = b_input_add( tf->fd, B_EV_IO_READ, jabber_bs_send_handshake, bt ); 922 922 bt->connect_timeout = b_timeout_add( JABBER_BS_LISTEN_TIMEOUT * 1000, jabber_bs_connect_timeout, bt ); 923 923 } else { … … 1056 1056 bt->phase = BS_PHASE_CONNECTED; 1057 1057 1058 bt->tf->watch_in = b_input_add( fd, GAIM_INPUT_READ, jabber_bs_send_handshake, bt );1058 bt->tf->watch_in = b_input_add( fd, B_EV_IO_READ, jabber_bs_send_handshake, bt ); 1059 1059 return FALSE; 1060 1060 } -
protocols/msn/Makefile
r0d9d53e r4aa0f6b 8 8 9 9 -include ../../Makefile.settings 10 ifdef SRCDIR 11 SRCDIR := $(SRCDIR)protocols/msn/ 12 endif 10 13 11 14 # [SH] Program variables … … 33 36 $(objects): ../../Makefile.settings Makefile 34 37 35 $(objects): %.o: %.c38 $(objects): %.o: $(SRCDIR)%.c 36 39 @echo '*' Compiling $< 37 40 @$(CC) -c $(CFLAGS) $< -o $@ -
protocols/msn/invitation.c
r0d9d53e r4aa0f6b 209 209 sock_make_nonblocking( fd ); 210 210 211 msn_file->r_event_id = b_input_add( fd, GAIM_INPUT_READ, msn_ftp_read, file );211 msn_file->r_event_id = b_input_add( fd, B_EV_IO_READ, msn_ftp_read, file ); 212 212 213 213 return FALSE; … … 230 230 } 231 231 232 msn_file->r_event_id = b_input_add( msn_file->fd, GAIM_INPUT_READ, msn_ftps_connected, file );232 msn_file->r_event_id = b_input_add( msn_file->fd, B_EV_IO_READ, msn_ftps_connected, file ); 233 233 234 234 g_snprintf( buf, sizeof( buf ), … … 318 318 319 319 sock_make_nonblocking( msn_file->fd ); 320 msn_file->r_event_id = b_input_add( msn_file->fd, GAIM_INPUT_READ, msn_ftp_read, file );320 msn_file->r_event_id = b_input_add( msn_file->fd, B_EV_IO_READ, msn_ftp_read, file ); 321 321 322 322 return FALSE; … … 415 415 ( msn_file->data_sent + msn_file->sbufpos - 3 < file->file_size ) ) { 416 416 if( !msn_file->w_event_id ) 417 msn_file->w_event_id = b_input_add( msn_file->fd, GAIM_INPUT_WRITE, msn_ftp_send, file );417 msn_file->w_event_id = b_input_add( msn_file->fd, B_EV_IO_WRITE, msn_ftp_send, file ); 418 418 return TRUE; 419 419 } … … 452 452 /* we might already be listening if this is data from an overflow */ 453 453 if( !msn_file->w_event_id ) 454 msn_file->w_event_id = b_input_add( msn_file->fd, GAIM_INPUT_WRITE, msn_ftp_send, file );454 msn_file->w_event_id = b_input_add( msn_file->fd, B_EV_IO_WRITE, msn_ftp_send, file ); 455 455 } 456 456 … … 617 617 618 618 msn_file->r_event_id = 619 b_input_add( msn_file->fd, GAIM_INPUT_READ, msn_ftp_read, file );619 b_input_add( msn_file->fd, B_EV_IO_READ, msn_ftp_read, file ); 620 620 621 621 return TRUE; -
protocols/msn/ns.c
r0d9d53e r4aa0f6b 76 76 if( msn_write( ic, s, strlen( s ) ) ) 77 77 { 78 ic->inpa = b_input_add( md->fd, GAIM_INPUT_READ, msn_ns_callback, ic );78 ic->inpa = b_input_add( md->fd, B_EV_IO_READ, msn_ns_callback, ic ); 79 79 imcb_log( ic, "Connected to server, waiting for reply" ); 80 80 } -
protocols/msn/sb.c
r0d9d53e r4aa0f6b 327 327 328 328 if( msn_sb_write( sb, buf, strlen( buf ) ) ) 329 sb->inp = b_input_add( sb->fd, GAIM_INPUT_READ, msn_sb_callback, sb );329 sb->inp = b_input_add( sb->fd, B_EV_IO_READ, msn_sb_callback, sb ); 330 330 else 331 331 debug( "Error %d while connecting to switchboard server", 2 ); -
protocols/nogaim.c
r0d9d53e r4aa0f6b 112 112 { 113 113 GList *gl; 114 for (gl = protocols; gl; gl = gl->next) 114 115 for( gl = protocols; gl; gl = gl->next ) 115 116 { 116 117 struct prpl *proto = gl->data; 117 if(!g_strcasecmp(proto->name, name)) 118 119 if( g_strcasecmp( proto->name, name ) == 0 ) 118 120 return proto; 119 121 } 122 120 123 return NULL; 121 124 } … … 128 131 extern void jabber_initmodule(); 129 132 extern void twitter_initmodule(); 133 extern void purple_initmodule(); 130 134 131 135 #ifdef WITH_MSN … … 147 151 #ifdef WITH_TWITTER 148 152 twitter_initmodule(); 153 #endif 154 155 #ifdef WITH_PURPLE 156 purple_initmodule(); 149 157 #endif 150 158 -
protocols/nogaim.h
r0d9d53e r4aa0f6b 134 134 * - The user sees this name ie. when imcb_log() is used. */ 135 135 const char *name; 136 void *data; 136 137 137 138 /* Added this one to be able to add per-account settings, don't think … … 321 322 322 323 /* Misc. stuff */ 324 char *set_eval_timezone( set_t *set, char *value ); 323 325 char *set_eval_away_devoice( set_t *set, char *value ); 324 326 gboolean auto_reconnect( gpointer data, gint fd, b_input_condition cond ); -
protocols/oscar/Makefile
r0d9d53e r4aa0f6b 8 8 9 9 -include ../../Makefile.settings 10 ifdef SRCDIR 11 SRCDIR := $(SRCDIR)protocols/oscar/ 12 CFLAGS += -I$(SRCDIR) 13 endif 10 14 11 15 # [SH] Program variables … … 33 37 $(objects): ../../Makefile.settings Makefile 34 38 35 $(objects): %.o: %.c39 $(objects): %.o: $(SRCDIR)%.c 36 40 @echo '*' Compiling $< 37 41 @$(CC) -c $(CFLAGS) $< -o $@ -
protocols/oscar/auth.c
r0d9d53e r4aa0f6b 120 120 aim_snacid_t snacid; 121 121 aim_tlvlist_t *tl = NULL; 122 struct im_connection *ic = sess->aux_data; 122 123 123 124 if (!sess || !conn || !sn) 124 125 return -EINVAL; 125 126 126 if ( (sn[0] >= '0') && (sn[0] <= '9'))127 if (isdigit(sn[0]) && set_getbool(&ic->acc->set, "old_icq_auth")) 127 128 return goddamnicq(sess, conn, sn); 128 129 -
protocols/oscar/oscar.c
r0d9d53e r4aa0f6b 288 288 odata = (struct oscar_data *)ic->proto_data; 289 289 290 if (condition & GAIM_INPUT_READ) {290 if (condition & B_EV_IO_READ) { 291 291 if (aim_get_command(odata->sess, conn) >= 0) { 292 292 aim_rxdispatch(odata->sess); … … 360 360 361 361 aim_conn_completeconnect(sess, conn); 362 ic->inpa = b_input_add(conn->fd, GAIM_INPUT_READ,362 ic->inpa = b_input_add(conn->fd, B_EV_IO_READ, 363 363 oscar_callback, conn); 364 364 … … 372 372 if (isdigit(acc->user[0])) { 373 373 set_add(&acc->set, "ignore_auth_requests", "false", set_eval_bool, acc); 374 set_add(&acc->set, "old_icq_auth", "false", set_eval_bool, acc); 374 375 } 375 376 … … 490 491 491 492 aim_conn_completeconnect(sess, bosconn); 492 ic->inpa = b_input_add(bosconn->fd, GAIM_INPUT_READ,493 ic->inpa = b_input_add(bosconn->fd, B_EV_IO_READ, 493 494 oscar_callback, bosconn); 494 495 imcb_log(ic, _("Connection established, cookie sent")); … … 706 707 707 708 aim_conn_completeconnect(sess, tstconn); 708 odata->cnpa = b_input_add(tstconn->fd, GAIM_INPUT_READ,709 odata->cnpa = b_input_add(tstconn->fd, B_EV_IO_READ, 709 710 oscar_callback, tstconn); 710 711 … … 734 735 735 736 aim_conn_completeconnect(sess, tstconn); 736 odata->paspa = b_input_add(tstconn->fd, GAIM_INPUT_READ,737 odata->paspa = b_input_add(tstconn->fd, B_EV_IO_READ, 737 738 oscar_callback, tstconn); 738 739 … … 770 771 aim_conn_completeconnect(sess, ccon->conn); 771 772 ccon->inpa = b_input_add(tstconn->fd, 772 GAIM_INPUT_READ,773 B_EV_IO_READ, 773 774 oscar_callback, tstconn); 774 775 odata->oscar_chats = g_slist_append(odata->oscar_chats, ccon); -
protocols/twitter/Makefile
r0d9d53e r4aa0f6b 8 8 9 9 -include ../../Makefile.settings 10 ifdef SRCDIR 11 SRCDIR := $(SRCDIR)protocols/twitter/ 12 endif 10 13 11 14 # [SH] Program variables … … 33 36 $(objects): ../../Makefile.settings Makefile 34 37 35 $(objects): %.o: %.c38 $(objects): %.o: $(SRCDIR)%.c 36 39 @echo '*' Compiling $< 37 40 @$(CC) -c $(CFLAGS) $< -o $@ -
protocols/yahoo/Makefile
r0d9d53e r4aa0f6b 8 8 9 9 -include ../../Makefile.settings 10 ifdef SRCDIR 11 SRCDIR := $(SRCDIR)protocols/yahoo/ 12 endif 10 13 11 14 # [SH] Program variables … … 33 36 $(objects): ../../Makefile.settings Makefile 34 37 35 $(objects): %.o: %.c38 $(objects): %.o: $(SRCDIR)%.c 36 39 @echo '*' Compiling $< 37 40 @$(CC) -c $(CFLAGS) $< -o $@ -
protocols/yahoo/yahoo.c
r0d9d53e r4aa0f6b 686 686 687 687 inp->d = d; 688 d->tag = inp->h = b_input_add( fd, GAIM_INPUT_READ, (b_event_handler) byahoo_read_ready_callback, (gpointer) d );688 d->tag = inp->h = b_input_add( fd, B_EV_IO_READ, (b_event_handler) byahoo_read_ready_callback, (gpointer) d ); 689 689 } 690 690 else if( cond == YAHOO_INPUT_WRITE ) … … 697 697 698 698 inp->d = d; 699 d->tag = inp->h = b_input_add( fd, GAIM_INPUT_WRITE, (b_event_handler) byahoo_write_ready_callback, (gpointer) d );699 d->tag = inp->h = b_input_add( fd, B_EV_IO_WRITE, (b_event_handler) byahoo_write_ready_callback, (gpointer) d ); 700 700 } 701 701 else
Note: See TracChangeset
for help on using the changeset viewer.