Changeset aea8b68 for protocols/bee.h
- Timestamp:
- 2010-05-06T00:28:56Z (14 years ago)
- Branches:
- master
- Children:
- f1a0890
- Parents:
- 9438323
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/bee.h
r9438323 raea8b68 28 28 29 29 struct bee_ui_funcs; 30 struct groupchat; 30 31 31 32 typedef struct bee … … 35 36 GSList *users; 36 37 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; 37 43 38 44 const struct bee_ui_funcs *ui; … … 73 79 gboolean (*user_typing)( bee_t *bee, bee_user_t *bu, guint32 flags ); 74 80 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 75 88 struct file_transfer* (*ft_in_start)( bee_t *bee, bee_user_t *bu, const char *file_name, size_t file_size ); 76 89 gboolean (*ft_out_start)( struct im_connection *ic, struct file_transfer *ft ); … … 101 114 G_MODULE_EXPORT void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, guint32 flags, time_t sent_at ); 102 115 116 /* bee_chat.c */ 117 #if 0 118 struct groupchat *imcb_chat_new( struct im_connection *ic, const char *handle ); 119 void imcb_chat_name_hint( struct groupchat *c, const char *name ); 120 void imcb_chat_free( struct groupchat *c ); 121 void imcb_chat_msg( struct groupchat *c, const char *who, char *msg, uint32_t flags, time_t sent_at ); 122 void imcb_chat_log( struct groupchat *c, char *format, ... ); 123 void imcb_chat_topic( struct groupchat *c, char *who, char *topic, time_t set_at ); 124 void imcb_chat_add_buddy( struct groupchat *b, const char *handle ); 125 void imcb_chat_remove_buddy( struct groupchat *b, const char *handle, const char *reason ); 126 static int remove_chat_buddy_silent( struct groupchat *b, const char *handle ); 127 #endif 128 103 129 #endif /* __BEE_H__ */
Note: See TracChangeset
for help on using the changeset viewer.