Fix compilation with GCC
This commit is contained in:
parent
3438e3569b
commit
b3244f0d9d
8 changed files with 59 additions and 11 deletions
|
@ -22,15 +22,29 @@
|
|||
*/
|
||||
|
||||
#import "XMPPDiscoEntity.h"
|
||||
#import "XMPPDiscoIdentity.h"
|
||||
#import "XMPPDiscoNode.h"
|
||||
#import "XMPPDiscoNode+Private.h"
|
||||
#import "XMPPDiscoIdentity.h"
|
||||
#import "XMPPIQ.h"
|
||||
#import "XMPPJID.h"
|
||||
#import "namespaces.h"
|
||||
|
||||
@implementation XMPPDiscoEntity
|
||||
@synthesize discoNodes = _discoNodes, capsNode = _capsNode;
|
||||
|
||||
+ (instancetype)discoNodeWithJID: (XMPPJID *)JID
|
||||
node: (OFString *)node
|
||||
{
|
||||
OF_UNRECOGNIZED_SELECTOR
|
||||
}
|
||||
|
||||
+ (instancetype)discoNodeWithJID: (XMPPJID *)JID
|
||||
node: (OFString *)node
|
||||
name: (OFString *)name
|
||||
{
|
||||
OF_UNRECOGNIZED_SELECTOR
|
||||
}
|
||||
|
||||
+ (instancetype)discoEntityWithConnection: (XMPPConnection *)connection
|
||||
{
|
||||
return [[[self alloc] initWithConnection: connection] autorelease];
|
||||
|
@ -43,10 +57,10 @@
|
|||
capsNode: capsNode] autorelease];
|
||||
}
|
||||
|
||||
- (instancetype)initWithConnection: (XMPPConnection *)connection
|
||||
- (instancetype)initWithJID: (XMPPJID *)JID
|
||||
node: (nullable OFString *)node
|
||||
{
|
||||
return [self initWithConnection: connection
|
||||
capsNode: nil];
|
||||
OF_INVALID_INIT_METHOD
|
||||
}
|
||||
|
||||
- (instancetype)initWithJID: (XMPPJID *)JID
|
||||
|
@ -56,6 +70,12 @@
|
|||
OF_INVALID_INIT_METHOD
|
||||
}
|
||||
|
||||
- (instancetype)initWithConnection: (XMPPConnection *)connection
|
||||
{
|
||||
return [self initWithConnection: connection
|
||||
capsNode: nil];
|
||||
}
|
||||
|
||||
- (instancetype)initWithConnection: (XMPPConnection *)connection
|
||||
capsNode: (OFString *)capsNode
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue