Changeset c6ca3ee for protocols/nogaim.h


Ignore:
Timestamp:
2010-03-14T17:49:24Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
fb00989
Parents:
6a78c0e
Message:

Some const/etc cleanups submitted by domen@… back in bug #431.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.h

    r6a78c0e rc6ca3ee  
    4343#include "proxy.h"
    4444#include "query.h"
    45 #include "md5.h"
    4645
    4746#define BUDDY_ALIAS_MAXLEN 388   /* because MSN names can be 387 characters */
     
    264263 * user, usually after a login, or if the user added a buddy and the IM
    265264 * server confirms that the add was successful. Don't forget to do this! */
    266 G_MODULE_EXPORT void imcb_add_buddy( struct im_connection *ic, char *handle, char *group );
    267 G_MODULE_EXPORT void imcb_remove_buddy( struct im_connection *ic, char *handle, char *group );
     265G_MODULE_EXPORT void imcb_add_buddy( struct im_connection *ic, const char *handle, const char *group );
     266G_MODULE_EXPORT void imcb_remove_buddy( struct im_connection *ic, const char *handle, char *group );
    268267G_MODULE_EXPORT struct buddy *imcb_find_buddy( struct im_connection *ic, char *handle );
    269 G_MODULE_EXPORT void imcb_rename_buddy( struct im_connection *ic, char *handle, char *realname );
     268G_MODULE_EXPORT void imcb_rename_buddy( struct im_connection *ic, const char *handle, const char *realname );
    270269G_MODULE_EXPORT void imcb_buddy_nick_hint( struct im_connection *ic, char *handle, char *nick );
    271270
     
    278277/* Not implemented yet! */ G_MODULE_EXPORT void imcb_buddy_times( struct im_connection *ic, const char *handle, time_t login, time_t idle );
    279278/* Call when a handle says something. 'flags' and 'sent_at may be just 0. */
    280 G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, char *handle, char *msg, uint32_t flags, time_t sent_at );
     279G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, uint32_t flags, time_t sent_at );
    281280G_MODULE_EXPORT void imcb_buddy_typing( struct im_connection *ic, char *handle, uint32_t flags );
    282281G_MODULE_EXPORT void imcb_clean_handle( struct im_connection *ic, char *handle );
     
    290289 *   the user her/himself. At that point the group chat will be visible to the
    291290 *   user, too. */
    292 G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, char *handle );
    293 G_MODULE_EXPORT void imcb_chat_add_buddy( struct groupchat *b, char *handle );
     291G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, const char *handle );
     292G_MODULE_EXPORT void imcb_chat_add_buddy( struct groupchat *b, const char *handle );
    294293/* To remove a handle from a group chat. Reason can be NULL. */
    295 G_MODULE_EXPORT void imcb_chat_remove_buddy( struct groupchat *b, char *handle, char *reason );
     294G_MODULE_EXPORT void imcb_chat_remove_buddy( struct groupchat *b, const char *handle, const char *reason );
    296295/* To tell BitlBee 'who' said 'msg' in 'c'. 'flags' and 'sent_at' can be 0. */
    297 G_MODULE_EXPORT void imcb_chat_msg( struct groupchat *c, char *who, char *msg, uint32_t flags, time_t sent_at );
     296G_MODULE_EXPORT void imcb_chat_msg( struct groupchat *c, const char *who, char *msg, uint32_t flags, time_t sent_at );
    298297/* System messages specific to a groupchat, so they can be displayed in the right context. */
    299298G_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.