|
@@ -17,12 +17,12 @@
|
|
#import <Foundation/Foundation.h>
|
|
#import <Foundation/Foundation.h>
|
|
#import <Security/SecCertificate.h>
|
|
#import <Security/SecCertificate.h>
|
|
|
|
|
|
-typedef enum {
|
|
|
|
|
|
+typedef NS_ENUM(NSInteger, SRReadyState) {
|
|
SR_CONNECTING = 0,
|
|
SR_CONNECTING = 0,
|
|
SR_OPEN = 1,
|
|
SR_OPEN = 1,
|
|
SR_CLOSING = 2,
|
|
SR_CLOSING = 2,
|
|
SR_CLOSED = 3,
|
|
SR_CLOSED = 3,
|
|
-} SRReadyState;
|
|
|
|
|
|
+};
|
|
|
|
|
|
typedef enum SRStatusCode : NSInteger {
|
|
typedef enum SRStatusCode : NSInteger {
|
|
SRStatusCodeNormal = 1000,
|
|
SRStatusCodeNormal = 1000,
|