mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Make all enums closed for nicer swift support.
PiperOrigin-RevId: 489217550
This commit is contained in:
committed by
Copybara-Service
parent
4a0242472a
commit
8e84347b99
+1
-1
@@ -14,7 +14,7 @@
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
typedef NS_ENUM(NSInteger, GNCStrategy);
|
||||
typedef NS_CLOSED_ENUM(NSInteger, GNCStrategy);
|
||||
|
||||
// TODO(b/239609583): Current sdk only exposes `strategy`, but we should add full support.
|
||||
/**
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Indicates the status of a connection.
|
||||
*/
|
||||
typedef NS_ENUM(NSInteger, GNCStatus) {
|
||||
typedef NS_CLOSED_ENUM(NSInteger, GNCStatus) {
|
||||
GNCStatusSuccess,
|
||||
GNCStatusError,
|
||||
GNCStatusOutOfOrderApiCall,
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
typedef NS_ENUM(NSInteger, GNCStrategy);
|
||||
typedef NS_CLOSED_ENUM(NSInteger, GNCStrategy);
|
||||
|
||||
// TODO(b/239610253): Current sdk only exposes `strategy`, but we should add full support.
|
||||
/**
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
/**
|
||||
* Indicates the status of a payload transfer.
|
||||
*/
|
||||
typedef NS_ENUM(NSInteger, GNCPayloadStatus) {
|
||||
typedef NS_CLOSED_ENUM(NSInteger, GNCPayloadStatus) {
|
||||
GNCPayloadStatusSuccess,
|
||||
GNCPayloadStatusFailure,
|
||||
GNCPayloadStatusInProgress,
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Indicates the strategy or advertisement or discovery.
|
||||
*/
|
||||
typedef NS_ENUM(NSInteger, GNCStrategy) {
|
||||
typedef NS_CLOSED_ENUM(NSInteger, GNCStrategy) {
|
||||
GNCStrategyCluster, // M-to-N
|
||||
GNCStrategyStar, // 1-to-N
|
||||
GNCStrategyPointToPoint, // 1-to-1
|
||||
|
||||
Reference in New Issue
Block a user