- Timestamp:
- 2007-04-21T04:13:21Z (18 years ago)
- Branches:
- master
- Children:
- d11dd2f
- Parents:
- b0eaa5b
- Location:
- protocols
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
rb0eaa5b rf6c963b 219 219 } 220 220 221 static int jabber_ send_im( struct im_connection *ic, char *who, char *message, int flags )221 static int jabber_buddy_msg( struct im_connection *ic, char *who, char *message, int flags ) 222 222 { 223 223 struct jabber_data *jd = ic->proto_data; … … 386 386 ret->init = jabber_init; 387 387 ret->logout = jabber_logout; 388 ret-> send_im = jabber_send_im;388 ret->buddy_msg = jabber_buddy_msg; 389 389 ret->away_states = jabber_away_states; 390 390 // ret->get_status_string = jabber_get_status_string; … … 394 394 ret->add_buddy = jabber_add_buddy; 395 395 ret->remove_buddy = jabber_remove_buddy; 396 // ret->chat_ send = jabber_chat_send;396 // ret->chat_msg = jabber_chat_msg; 397 397 // ret->chat_invite = jabber_chat_invite; 398 398 // ret->chat_leave = jabber_chat_leave; -
protocols/msn/msn.c
rb0eaa5b rf6c963b 122 122 } 123 123 124 static int msn_ send_im( struct im_connection *ic, char *who, char *message, int away )124 static int msn_buddy_msg( struct im_connection *ic, char *who, char *message, int away ) 125 125 { 126 126 struct msn_switchboard *sb; … … 231 231 } 232 232 233 static void msn_chat_ send( struct groupchat *c, char *message, int flags )233 static void msn_chat_msg( struct groupchat *c, char *message, int flags ) 234 234 { 235 235 struct msn_switchboard *sb = msn_sb_by_chat( c ); … … 343 343 { 344 344 if( typing ) 345 return( msn_ send_im( ic, who, TYPING_NOTIFICATION_MESSAGE, 0 ) );345 return( msn_buddy_msg( ic, who, TYPING_NOTIFICATION_MESSAGE, 0 ) ); 346 346 else 347 347 return( 1 ); … … 387 387 ret->init = msn_init; 388 388 ret->logout = msn_logout; 389 ret-> send_im = msn_send_im;389 ret->buddy_msg = msn_buddy_msg; 390 390 ret->away_states = msn_away_states; 391 391 ret->set_away = msn_set_away; … … 394 394 ret->add_buddy = msn_add_buddy; 395 395 ret->remove_buddy = msn_remove_buddy; 396 ret->chat_ send = msn_chat_send;396 ret->chat_msg = msn_chat_msg; 397 397 ret->chat_invite = msn_chat_invite; 398 398 ret->chat_leave = msn_chat_leave; -
protocols/nogaim.c
rb0eaa5b rf6c963b 282 282 void cancel_auto_reconnect( account_t *a ) 283 283 { 284 /* while( b_event_remove_by_data( (gpointer) a ) ); */285 284 b_event_remove( a->reconnect ); 286 285 a->reconnect = 0; … … 948 947 } 949 948 950 st = ic->acc->prpl-> send_im( ic, handle, msg, flags );949 st = ic->acc->prpl->buddy_msg( ic, handle, msg, flags ); 951 950 g_free( buf ); 952 951 … … 964 963 } 965 964 966 c->ic->acc->prpl->chat_ send( c, msg, flags );965 c->ic->acc->prpl->chat_msg( c, msg, flags ); 967 966 g_free( buf ); 968 967 -
protocols/nogaim.h
rb0eaa5b rf6c963b 134 134 void (* logout) (struct im_connection *); 135 135 136 int (* send_im) (struct im_connection *, char *to, char *message, int flags);136 int (* buddy_msg) (struct im_connection *, char *to, char *message, int flags); 137 137 void (* set_away) (struct im_connection *, char *state, char *message); 138 138 void (* get_away) (struct im_connection *, char *who); … … 160 160 void (* chat_invite) (struct groupchat *, char *who, char *message); 161 161 void (* chat_leave) (struct groupchat *); 162 void (* chat_ send) (struct groupchat *, char *message, int flags);162 void (* chat_msg) (struct groupchat *, char *message, int flags); 163 163 struct groupchat * 164 164 (* chat_with) (struct im_connection *, char *who); … … 175 175 void nogaim_init(); 176 176 G_MODULE_EXPORT GSList *get_connections(); 177 G_MODULE_EXPORT struct prpl *find_protocol( const char *name);178 G_MODULE_EXPORT void register_protocol( struct prpl *);177 G_MODULE_EXPORT struct prpl *find_protocol( const char *name ); 178 G_MODULE_EXPORT void register_protocol( struct prpl * ); 179 179 180 180 /* Connection management. */ -
protocols/oscar/oscar.c
rb0eaa5b rf6c963b 1808 1808 } 1809 1809 1810 static int oscar_ send_im(struct im_connection *ic, char *name, char *message, int imflags) {1810 static int oscar_buddy_msg(struct im_connection *ic, char *name, char *message, int imflags) { 1811 1811 struct oscar_data *odata = (struct oscar_data *)ic->proto_data; 1812 1812 int ret = 0, len = strlen(message); … … 2451 2451 } 2452 2452 2453 void oscar_chat_ send(struct groupchat *c, char *message, int msgflags)2453 void oscar_chat_msg(struct groupchat *c, char *message, int msgflags) 2454 2454 { 2455 2455 struct im_connection *ic = c->ic; … … 2590 2590 ret->keepalive = oscar_keepalive; 2591 2591 ret->logout = oscar_logout; 2592 ret-> send_im = oscar_send_im;2592 ret->buddy_msg = oscar_buddy_msg; 2593 2593 ret->get_info = oscar_get_info; 2594 2594 ret->set_away = oscar_set_away; … … 2596 2596 ret->add_buddy = oscar_add_buddy; 2597 2597 ret->remove_buddy = oscar_remove_buddy; 2598 ret->chat_ send = oscar_chat_send;2598 ret->chat_msg = oscar_chat_msg; 2599 2599 ret->chat_invite = oscar_chat_invite; 2600 2600 ret->chat_leave = oscar_chat_leave; -
protocols/yahoo/yahoo.c
rb0eaa5b rf6c963b 174 174 } 175 175 176 static int byahoo_ send_im( struct im_connection *ic, char *who, char *what, int flags )176 static int byahoo_buddy_msg( struct im_connection *ic, char *who, char *what, int flags ) 177 177 { 178 178 struct byahoo_data *yd = ic->proto_data; … … 299 299 } 300 300 301 static void byahoo_chat_ send( struct groupchat *c, char *message, int flags )301 static void byahoo_chat_msg( struct groupchat *c, char *message, int flags ) 302 302 { 303 303 struct byahoo_data *yd = (struct byahoo_data *) c->ic->proto_data; … … 354 354 ret->logout = byahoo_logout; 355 355 356 ret-> send_im = byahoo_send_im;356 ret->buddy_msg = byahoo_buddy_msg; 357 357 ret->get_info = byahoo_get_info; 358 358 ret->away_states = byahoo_away_states; … … 362 362 ret->send_typing = byahoo_send_typing; 363 363 364 ret->chat_ send = byahoo_chat_send;364 ret->chat_msg = byahoo_chat_msg; 365 365 ret->chat_invite = byahoo_chat_invite; 366 366 ret->chat_leave = byahoo_chat_leave;
Note: See TracChangeset
for help on using the changeset viewer.