Changeset aea8b68 for protocols/bee.h


Ignore:
Timestamp:
2010-05-06T00:28:56Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
f1a0890
Parents:
9438323
Message:

Starting to restore chatroom stuff. Only enough to create and be joined
into a room. More will follow soon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/bee.h

    r9438323 raea8b68  
    2828
    2929struct bee_ui_funcs;
     30struct groupchat;
    3031
    3132typedef struct bee
     
    3536        GSList *users;
    3637        struct account *accounts; /* TODO(wilmer): Use GSList here too? */
     38       
     39        /* Symbolic, to refer to the local user (who has no real bee_user
     40           object). Not to be used by anything except so far imcb_chat_add/
     41           remove_buddy(). This seems slightly cleaner than abusing NULL. */
     42        struct bee_user *user;
    3743       
    3844        const struct bee_ui_funcs *ui;
     
    7379        gboolean (*user_typing)( bee_t *bee, bee_user_t *bu, guint32 flags );
    7480       
     81        gboolean (*chat_new)( bee_t *bee, struct groupchat *c );
     82        gboolean (*chat_free)( bee_t *bee, struct groupchat *c );
     83        gboolean (*chat_log)( bee_t *bee, struct groupchat *c, const char *format, ... );
     84        gboolean (*chat_msg)( bee_t *bee, struct groupchat *c, const char *who, const char *msg, time_t sent_at );
     85        gboolean (*chat_add_user)( bee_t *bee, struct groupchat *c, bee_user_t *bu );
     86        gboolean (*chat_remove_user)( bee_t *bee, struct groupchat *c, bee_user_t *bu );
     87       
    7588        struct file_transfer* (*ft_in_start)( bee_t *bee, bee_user_t *bu, const char *file_name, size_t file_size );
    7689        gboolean (*ft_out_start)( struct im_connection *ic, struct file_transfer *ft );
     
    101114G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, guint32 flags, time_t sent_at );
    102115
     116/* bee_chat.c */
     117#if 0
     118struct groupchat *imcb_chat_new( struct im_connection *ic, const char *handle );
     119void imcb_chat_name_hint( struct groupchat *c, const char *name );
     120void imcb_chat_free( struct groupchat *c );
     121void imcb_chat_msg( struct groupchat *c, const char *who, char *msg, uint32_t flags, time_t sent_at );
     122void imcb_chat_log( struct groupchat *c, char *format, ... );
     123void imcb_chat_topic( struct groupchat *c, char *who, char *topic, time_t set_at );
     124void imcb_chat_add_buddy( struct groupchat *b, const char *handle );
     125void imcb_chat_remove_buddy( struct groupchat *b, const char *handle, const char *reason );
     126static int remove_chat_buddy_silent( struct groupchat *b, const char *handle );
     127#endif
     128
    103129#endif /* __BEE_H__ */
Note: See TracChangeset for help on using the changeset viewer.