Changeset 2288705 for protocols/nogaim.h
- Timestamp:
- 2009-12-07T21:54:19Z (14 years ago)
- Branches:
- master
- Children:
- 1c3008a
- Parents:
- aac4017 (diff), 36cf9fd (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.h
raac4017 r2288705 39 39 #define _NOGAIM_H 40 40 41 #include <stdint.h> 42 41 43 #include "bitlbee.h" 42 44 #include "account.h" … … 210 212 * not implement this. */ 211 213 struct groupchat * 212 (* chat_join) (struct im_connection *, c har *room, char *nick,char *password);214 (* chat_join) (struct im_connection *, const char *room, const char *nick, const char *password); 213 215 /* Change the topic, if supported. Note that BitlBee expects the IM 214 216 server to confirm the topic change with a regular topic change … … 225 227 * - Most protocols will just want to set this to g_strcasecmp().*/ 226 228 int (* handle_cmp) (const char *who1, const char *who2); 229 230 /* Implement these callbacks if you want to use imcb_ask_auth() */ 231 void (* auth_allow) (struct im_connection *, const char *who); 232 void (* auth_deny) (struct im_connection *, const char *who); 227 233 228 234 /* Incoming transfer request */ … … 243 249 * the account_t parameter. */ 244 250 G_MODULE_EXPORT struct im_connection *imcb_new( account_t *acc ); 245 G_MODULE_EXPORT void imc b_free( struct im_connection *ic );251 G_MODULE_EXPORT void imc_free( struct im_connection *ic ); 246 252 /* Once you're connected, you should call this function, so that the user will 247 253 * see the success. */ … … 256 262 /* To tell the user an error, ie. before logging out when an error occurs. */ 257 263 G_MODULE_EXPORT void imcb_error( struct im_connection *ic, char *format, ... ) G_GNUC_PRINTF( 2, 3 ); 264 258 265 /* To ask a your about something. 259 266 * - 'msg' is the question. … … 262 269 */ 263 270 G_MODULE_EXPORT void imcb_ask( struct im_connection *ic, char *msg, void *data, query_callback doit, query_callback dont ); 264 G_MODULE_EXPORT void imcb_ask_add( struct im_connection *ic, char *handle, const char *realname ); 271 272 /* Two common questions you may want to ask: 273 * - X added you to his contact list, allow? 274 * - X is not in your contact list, want to add? 275 */ 276 G_MODULE_EXPORT void imcb_ask_auth( struct im_connection *ic, const char *handle, const char *realname ); 277 G_MODULE_EXPORT void imcb_ask_add( struct im_connection *ic, const char *handle, const char *realname ); 265 278 266 279 /* Buddy management */ … … 294 307 * the user her/himself. At that point the group chat will be visible to the 295 308 * user, too. */ 296 G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, c har *handle );309 G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, const char *handle ); 297 310 G_MODULE_EXPORT void imcb_chat_add_buddy( struct groupchat *b, char *handle ); 298 311 /* To remove a handle from a group chat. Reason can be NULL. */
Note: See TracChangeset
for help on using the changeset viewer.