summaryrefslogtreecommitdiffstats
blob: 945056e370b87f6d1018b3ca56a6388cac8554c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright (c) 2010-2016 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#pragma once

#include <Foundation/Foundation.h>

// The following line is a workaround for a bug in Boost 1.60 when building as C++11.
// See ticket #11897 and #11863 in Boost's bug tracker.
#undef check

namespace Swift {
    class CocoaEventLoop;
}

// Using deprecated declaration of instance vars in interface, because this
// is required for older runtimes (e.g. 32-bit Mac OS X)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-interface-ivars"

@interface CocoaEvent : NSObject {
    Swift::CocoaEventLoop* eventLoop;
}

#pragma clang diagnostic pop

// Takes ownership of event
- (id) init:(Swift::CocoaEventLoop*) el;
- (void) process;
- (void) dealloc;

@end