Make all enums closed for nicer swift support.

PiperOrigin-RevId: 489217550
This commit is contained in:
Nick Bourdakos
2022-11-17 08:30:08 -08:00
committed by Copybara-Service
parent 4a0242472a
commit 8e84347b99
5 changed files with 5 additions and 5 deletions
@@ -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.
/**
@@ -17,7 +17,7 @@
/**
* Indicates the status of a connection.
*/
typedef NS_ENUM(NSInteger, GNCStatus) {
typedef NS_CLOSED_ENUM(NSInteger, GNCStatus) {
GNCStatusSuccess,
GNCStatusError,
GNCStatusOutOfOrderApiCall,
@@ -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.
/**
@@ -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,
@@ -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