Changeset 84b045d for protocols/nogaim.h
- Timestamp:
- 2007-04-16T01:03:08Z (17 years ago)
- Branches:
- master
- Children:
- 6bbb939
- Parents:
- c2fb3809
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.h
rc2fb3809 r84b045d 150 150 151 151 /* Request profile info. Free-formatted stuff, the IM module gives back 152 this info via imc _log(). */152 this info via imcb_log(). */ 153 153 void (* get_info) (struct im_connection *, char *who); 154 154 void (* set_my_name) (struct im_connection *, char *name); … … 175 175 #define UC_UNAVAILABLE 1 176 176 177 /* JABBER */ 178 #define UC_AWAY (0x02 | UC_UNAVAILABLE) 179 #define UC_CHAT 0x04 180 #define UC_XA (0x08 | UC_UNAVAILABLE) 181 #define UC_DND (0x10 | UC_UNAVAILABLE) 182 177 /* im_api core stuff. */ 178 void nogaim_init(); 183 179 G_MODULE_EXPORT GSList *get_connections(); 184 180 G_MODULE_EXPORT struct prpl *find_protocol(const char *name); 185 181 G_MODULE_EXPORT void register_protocol(struct prpl *); 186 182 187 /* nogaim.c */ 188 int bim_set_away( struct im_connection *ic, char *away ); 189 int bim_buddy_msg( struct im_connection *ic, char *handle, char *msg, int flags ); 190 int bim_chat_msg( struct groupchat *c, char *msg, int flags ); 191 192 void bim_add_allow( struct im_connection *ic, char *handle ); 193 void bim_rem_allow( struct im_connection *ic, char *handle ); 194 void bim_add_block( struct im_connection *ic, char *handle ); 195 void bim_rem_block( struct im_connection *ic, char *handle ); 196 197 void nogaim_init(); 198 char *set_eval_away_devoice( set_t *set, char *value ); 199 200 gboolean auto_reconnect( gpointer data, gint fd, b_input_condition cond ); 201 void cancel_auto_reconnect( struct account *a ); 202 203 /* multi.c */ 204 G_MODULE_EXPORT struct im_connection *imc_new( account_t *acc ); 205 G_MODULE_EXPORT void imc_free( struct im_connection *ic ); 206 G_MODULE_EXPORT void imc_log( struct im_connection *ic, char *format, ... ); 207 G_MODULE_EXPORT void imc_error( struct im_connection *ic, char *format, ... ); 208 G_MODULE_EXPORT void imc_connected( struct im_connection *ic ); 183 /* Connection management. */ 184 G_MODULE_EXPORT struct im_connection *imcb_new( account_t *acc ); 185 G_MODULE_EXPORT void imcb_free( struct im_connection *ic ); 186 G_MODULE_EXPORT void imcb_connected( struct im_connection *ic ); 209 187 G_MODULE_EXPORT void imc_logout( struct im_connection *ic, int allow_reconnect ); 210 188 211 /* dialogs.c */ 212 G_MODULE_EXPORT void do_ask_dialog( struct im_connection *ic, char *msg, void *data, void *doit, void *dont ); 213 214 /* list.c */ 215 G_MODULE_EXPORT void add_buddy( struct im_connection *ic, char *group, char *handle, char *realname ); 216 G_MODULE_EXPORT struct buddy *find_buddy( struct im_connection *ic, char *handle ); 217 G_MODULE_EXPORT void signoff_blocked( struct im_connection *ic ); 218 219 G_MODULE_EXPORT void serv_buddy_rename( struct im_connection *ic, char *handle, char *realname ); 220 221 /* buddy_chat.c */ 189 /* Communicating with the user. */ 190 G_MODULE_EXPORT void imcb_log( struct im_connection *ic, char *format, ... ); 191 G_MODULE_EXPORT void imcb_error( struct im_connection *ic, char *format, ... ); 192 G_MODULE_EXPORT void imcb_ask( struct im_connection *ic, char *msg, void *data, void *doit, void *dont ); 193 G_MODULE_EXPORT void imcb_ask_add( struct im_connection *ic, char *handle, const char *realname ); 194 195 /* Groupchats */ 222 196 G_MODULE_EXPORT void add_chat_buddy( struct groupchat *b, char *handle ); 223 197 G_MODULE_EXPORT void remove_chat_buddy( struct groupchat *b, char *handle, char *reason ); 224 225 /* prpl.c */226 G_MODULE_EXPORT void show_got_added( struct im_connection *ic, char *handle, const char *realname );227 228 /* server.c */229 G_MODULE_EXPORT void serv_got_update( struct im_connection *ic, char *handle, int loggedin, int evil, time_t signon, time_t idle, int type, guint caps );230 G_MODULE_EXPORT void serv_got_im( struct im_connection *ic, char *handle, char *msg, guint32 flags, time_t mtime, gint len );231 G_MODULE_EXPORT void serv_got_typing( struct im_connection *ic, char *handle, int timeout, int type );232 198 G_MODULE_EXPORT void serv_got_chat_invite( struct im_connection *ic, char *handle, char *who, char *msg, GList *data ); 233 199 G_MODULE_EXPORT struct groupchat *serv_got_joined_chat( struct im_connection *ic, char *handle ); 234 200 G_MODULE_EXPORT void serv_got_chat_in( struct groupchat *c, char *who, int whisper, char *msg, time_t mtime ); 235 201 G_MODULE_EXPORT void serv_got_chat_left( struct groupchat *c ); 236 237 202 struct groupchat *chat_by_channel( char *channel ); 238 203 struct groupchat *chat_by_id( int id ); 239 204 205 /* Buddy management */ 206 G_MODULE_EXPORT void add_buddy( struct im_connection *ic, char *group, char *handle, char *realname ); 207 G_MODULE_EXPORT struct buddy *find_buddy( struct im_connection *ic, char *handle ); 208 G_MODULE_EXPORT void serv_buddy_rename( struct im_connection *ic, char *handle, char *realname ); 209 210 /* Buddy activity */ 211 G_MODULE_EXPORT void serv_got_update( struct im_connection *ic, char *handle, int loggedin, int evil, time_t signon, time_t idle, int type, guint caps ); 212 G_MODULE_EXPORT void serv_got_im( struct im_connection *ic, char *handle, char *msg, guint32 flags, time_t mtime, gint len ); 213 G_MODULE_EXPORT void serv_got_typing( struct im_connection *ic, char *handle, int timeout, int type ); 214 215 /* Actions, or whatever. */ 216 int imc_set_away( struct im_connection *ic, char *away ); 217 int imc_buddy_msg( struct im_connection *ic, char *handle, char *msg, int flags ); 218 int imc_chat_msg( struct groupchat *c, char *msg, int flags ); 219 220 void imc_add_allow( struct im_connection *ic, char *handle ); 221 void imc_rem_allow( struct im_connection *ic, char *handle ); 222 void imc_add_block( struct im_connection *ic, char *handle ); 223 void imc_rem_block( struct im_connection *ic, char *handle ); 224 225 /* Misc. stuff */ 226 char *set_eval_away_devoice( set_t *set, char *value ); 227 gboolean auto_reconnect( gpointer data, gint fd, b_input_condition cond ); 228 void cancel_auto_reconnect( struct account *a ); 229 240 230 #endif
Note: See TracChangeset
for help on using the changeset viewer.