Add the XMPPConnection to xmpp_calback_block_t.

This commit is contained in:
Jonathan Schleifer 2012-02-04 12:52:49 +01:00
parent 6ddf416e50
commit 39e245987c
4 changed files with 12 additions and 5 deletions

View file

@ -22,10 +22,11 @@
#import <ObjFW/ObjFW.h>
@class XMPPConnection;
@class XMPPIQ;
#ifdef OF_HAVE_BLOCKS
typedef void(^xmpp_callback_block_t)(XMPPIQ*);
typedef void(^xmpp_callback_block_t)(XMPPConnection*, XMPPIQ*);
#endif
@interface XMPPCallback: OFObject
@ -44,5 +45,6 @@ typedef void(^xmpp_callback_block_t)(XMPPIQ*);
- initWithCallbackObject: (id)object
selector: (SEL)selector;
- (void)runWithIQ: (XMPPIQ*)iq;
- (void)runWithIQ: (XMPPIQ*)iq
connection: (XMPPConnection*)connection;
@end