Changeset fb00989
- Timestamp:
- 2010-03-14T17:55:27Z (15 years ago)
- Branches:
- master
- Children:
- ceebeb1
- Parents:
- 8fb1263 (diff), c6ca3ee (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. - Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
bitlbee.h
r8fb1263 rfb00989 27 27 #define _BITLBEE_H 28 28 29 #ifndef _GNU_SOURCE 29 30 #define _GNU_SOURCE /* Stupid GNU :-P */ 31 #endif 30 32 31 33 /* Depend on Windows 2000 for now since we need getaddrinfo() */ -
configure
r8fb1263 rfb00989 156 156 157 157 echo CFLAGS=$CFLAGS >> Makefile.settings 158 echo CFLAGS+=-I`pwd` - I`pwd`/lib -I`pwd`/protocols -I. >> Makefile.settings158 echo CFLAGS+=-I`pwd` -iquote`pwd`/lib -iquote`pwd`/protocols -I. >> Makefile.settings 159 159 160 160 echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings -
lib/misc.c
r8fb1263 rfb00989 34 34 #include "nogaim.h" 35 35 #include "base64.h" 36 #include "md5.h" 36 37 #include <stdio.h> 37 38 #include <stdlib.h> … … 523 524 524 525 /* Word wrapping. Yes, I know this isn't UTF-8 clean. I'm willing to take the risk. */ 525 char *word_wrap( c har *msg, int line_len )526 char *word_wrap( const char *msg, int line_len ) 526 527 { 527 528 GString *ret = g_string_sized_new( strlen( msg ) + 16 ); -
lib/misc.h
r8fb1263 rfb00989 62 62 G_MODULE_EXPORT struct ns_srv_reply *srv_lookup( char *service, char *protocol, char *domain ); 63 63 64 G_MODULE_EXPORT char *word_wrap( c har *msg, int line_len );64 G_MODULE_EXPORT char *word_wrap( const char *msg, int line_len ); 65 65 66 66 G_MODULE_EXPORT gboolean ssl_sockerr_again( void *ssl ); -
protocols/msn/msn.c
r8fb1263 rfb00989 26 26 #include "nogaim.h" 27 27 #include "msn.h" 28 29 int msn_chat_id; 30 GSList *msn_connections; 31 GSList *msn_switchboards; 28 32 29 33 static char *msn_set_display_name( set_t *set, char *value ); -
protocols/msn/msn.h
r8fb1263 rfb00989 135 135 #define STATUS_SB_CHAT_SPARE 8 /* Same, but also for groupchats (not used yet). */ 136 136 137 int msn_chat_id;137 extern int msn_chat_id; 138 138 extern const struct msn_away_state msn_away_state_list[]; 139 139 extern const struct msn_status_code msn_status_code_list[]; … … 144 144 connection), the callback should check whether it's still listed here 145 145 before doing *anything* else. */ 146 GSList *msn_connections;147 GSList *msn_switchboards;146 extern GSList *msn_connections; 147 extern GSList *msn_switchboards; 148 148 149 149 /* ns.c */ -
protocols/nogaim.c
r8fb1263 rfb00989 371 371 /* list.c */ 372 372 373 void imcb_add_buddy( struct im_connection *ic, c har *handle,char *group )373 void imcb_add_buddy( struct im_connection *ic, const char *handle, const char *group ) 374 374 { 375 375 user_t *u; … … 445 445 } 446 446 447 void imcb_rename_buddy( struct im_connection *ic, c har *handle,char *realname )447 void imcb_rename_buddy( struct im_connection *ic, const char *handle, const char *realname ) 448 448 { 449 449 user_t *u = user_findhandle( ic, handle ); … … 480 480 } 481 481 482 void imcb_remove_buddy( struct im_connection *ic, c har *handle, char *group )482 void imcb_remove_buddy( struct im_connection *ic, const char *handle, char *group ) 483 483 { 484 484 user_t *u; … … 490 490 /* Mainly meant for ICQ (and now also for Jabber conferences) to allow IM 491 491 modules to suggest a nickname for a handle. */ 492 void imcb_buddy_nick_hint( struct im_connection *ic, c har *handle,char *nick )492 void imcb_buddy_nick_hint( struct im_connection *ic, const char *handle, const char *nick ) 493 493 { 494 494 user_t *u = user_findhandle( ic, handle ); … … 702 702 } 703 703 704 void imcb_buddy_msg( struct im_connection *ic, c har *handle, char *msg, uint32_t flags, time_t sent_at )704 void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, uint32_t flags, time_t sent_at ) 705 705 { 706 706 irc_t *irc = ic->irc; … … 835 835 } 836 836 837 void imcb_chat_msg( struct groupchat *c, c har *who, char *msg, uint32_t flags, time_t sent_at )837 void imcb_chat_msg( struct groupchat *c, const char *who, char *msg, uint32_t flags, time_t sent_at ) 838 838 { 839 839 struct im_connection *ic = c->ic; … … 907 907 /* buddy_chat.c */ 908 908 909 void imcb_chat_add_buddy( struct groupchat *b, c har *handle )909 void imcb_chat_add_buddy( struct groupchat *b, const char *handle ) 910 910 { 911 911 user_t *u = user_findhandle( b->ic, handle ); … … 942 942 943 943 /* This function is one BIG hack... :-( EREWRITE */ 944 void imcb_chat_remove_buddy( struct groupchat *b, c har *handle,char *reason )944 void imcb_chat_remove_buddy( struct groupchat *b, const char *handle, const char *reason ) 945 945 { 946 946 user_t *u; -
protocols/nogaim.h
r8fb1263 rfb00989 275 275 * user, usually after a login, or if the user added a buddy and the IM 276 276 * server confirms that the add was successful. Don't forget to do this! */ 277 G_MODULE_EXPORT void imcb_add_buddy( struct im_connection *ic, c har *handle,char *group );278 G_MODULE_EXPORT void imcb_remove_buddy( struct im_connection *ic, c har *handle, char *group );277 G_MODULE_EXPORT void imcb_add_buddy( struct im_connection *ic, const char *handle, const char *group ); 278 G_MODULE_EXPORT void imcb_remove_buddy( struct im_connection *ic, const char *handle, char *group ); 279 279 G_MODULE_EXPORT struct buddy *imcb_find_buddy( struct im_connection *ic, char *handle ); 280 G_MODULE_EXPORT void imcb_rename_buddy( struct im_connection *ic, c har *handle,char *realname );281 G_MODULE_EXPORT void imcb_buddy_nick_hint( struct im_connection *ic, c har *handle,char *nick );280 G_MODULE_EXPORT void imcb_rename_buddy( struct im_connection *ic, const char *handle, const char *realname ); 281 G_MODULE_EXPORT void imcb_buddy_nick_hint( struct im_connection *ic, const char *handle, const char *nick ); 282 282 283 283 /* Buddy activity */ … … 289 289 /* Not implemented yet! */ G_MODULE_EXPORT void imcb_buddy_times( struct im_connection *ic, const char *handle, time_t login, time_t idle ); 290 290 /* Call when a handle says something. 'flags' and 'sent_at may be just 0. */ 291 G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, c har *handle, char *msg, uint32_t flags, time_t sent_at );291 G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, uint32_t flags, time_t sent_at ); 292 292 G_MODULE_EXPORT void imcb_buddy_typing( struct im_connection *ic, char *handle, uint32_t flags ); 293 293 G_MODULE_EXPORT void imcb_clean_handle( struct im_connection *ic, char *handle ); … … 302 302 * user, too. */ 303 303 G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, const char *handle ); 304 G_MODULE_EXPORT void imcb_chat_add_buddy( struct groupchat *b, c har *handle );304 G_MODULE_EXPORT void imcb_chat_add_buddy( struct groupchat *b, const char *handle ); 305 305 /* To remove a handle from a group chat. Reason can be NULL. */ 306 G_MODULE_EXPORT void imcb_chat_remove_buddy( struct groupchat *b, c har *handle,char *reason );306 G_MODULE_EXPORT void imcb_chat_remove_buddy( struct groupchat *b, const char *handle, const char *reason ); 307 307 /* To tell BitlBee 'who' said 'msg' in 'c'. 'flags' and 'sent_at' can be 0. */ 308 G_MODULE_EXPORT void imcb_chat_msg( struct groupchat *c, c har *who, char *msg, uint32_t flags, time_t sent_at );308 G_MODULE_EXPORT void imcb_chat_msg( struct groupchat *c, const char *who, char *msg, uint32_t flags, time_t sent_at ); 309 309 /* System messages specific to a groupchat, so they can be displayed in the right context. */ 310 310 G_MODULE_EXPORT void imcb_chat_log( struct groupchat *c, char *format, ... ) G_GNUC_PRINTF( 2, 3 );
Note: See TracChangeset
for help on using the changeset viewer.