Changeset 256899f for protocols/nogaim.h


Ignore:
Timestamp:
2007-11-19T23:16:18Z (16 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
7df5a08
Parents:
cd428e4 (diff), ef5c185 (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.
Message:

Merging Jabber groupchat support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.h

    rcd428e4 r256899f  
    6161#define OPT_AWAY        0x00000004
    6262#define OPT_DOES_HTML   0x00000010
     63#define OPT_LOCALBUDDY  0x00000020 /* For nicks local to one groupchat */
    6364#define OPT_TYPING      0x00000100 /* Some pieces of code make assumptions */
    6465#define OPT_THINKING    0x00000200 /* about these values... Stupid me! */
     
    9192        irc_t *irc;
    9293       
    93         struct groupchat *conversations;
     94        struct groupchat *groupchats;
    9495};
    9596
     
    104105        GList *ignored;
    105106       
    106         /* BitlBee */
    107107        struct groupchat *next;
    108108        char *channel;
     
    110110         * chat using imcb_chat_new(). */
    111111        char *title;
     112        /* Use imcb_chat_topic() to change this variable otherwise the user
     113         * won't notice the topic change. */
     114        char *topic;
    112115        char joined;
    113116        /* This is for you, you can add your own structure here to extend this
     
    212215        struct groupchat *
    213216             (* chat_join)      (struct im_connection *, char *room, char *nick, char *password);
     217        /* Change the topic, if supported. Note that BitlBee expects the IM
     218           server to confirm the topic change with a regular topic change
     219           event. If it doesn't do that, you have to fake it to make it
     220           visible to the user. */
     221        void (* chat_topic)     (struct groupchat *, char *topic);
    214222       
    215223        /* You can tell what away states your protocol supports, so that
     
    265273G_MODULE_EXPORT struct buddy *imcb_find_buddy( struct im_connection *ic, char *handle );
    266274G_MODULE_EXPORT void imcb_rename_buddy( struct im_connection *ic, char *handle, char *realname );
     275G_MODULE_EXPORT void imcb_buddy_nick_hint( struct im_connection *ic, char *handle, char *nick );
    267276
    268277/* Buddy activity */
     
    276285G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, char *handle, char *msg, u_int32_t flags, time_t sent_at );
    277286G_MODULE_EXPORT void imcb_buddy_typing( struct im_connection *ic, char *handle, u_int32_t flags );
     287G_MODULE_EXPORT void imcb_clean_handle( struct im_connection *ic, char *handle );
    278288
    279289/* Groupchats */
     
    291301/* To tell BitlBee 'who' said 'msg' in 'c'. 'flags' and 'sent_at' can be 0. */
    292302G_MODULE_EXPORT void imcb_chat_msg( struct groupchat *c, char *who, char *msg, u_int32_t flags, time_t sent_at );
    293 G_MODULE_EXPORT void imcb_chat_removed( struct groupchat *c );
    294 struct groupchat *chat_by_channel( char *channel );
     303/* To tell BitlBee 'who' changed the topic of 'c' to 'topic'. */
     304G_MODULE_EXPORT void imcb_chat_topic( struct groupchat *c, char *who, char *topic, time_t set_at );
     305G_MODULE_EXPORT void imcb_chat_free( struct groupchat *c );
    295306
    296307/* Actions, or whatever. */
Note: See TracChangeset for help on using the changeset viewer.