Skip to content

Commit

Permalink
Minor fixes to CHIP API definitions (project-chip#6897)
Browse files Browse the repository at this point in the history
* Minor fixes to CHIP API definitions

* Restyled by clang-format

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
sagar-apple and restyled-commits authored May 18, 2021
1 parent 4fd0192 commit 791f18f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/darwin/Framework/CHIP/CHIPDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ NS_ASSUME_NONNULL_BEGIN
@interface CHIPDevice : NSObject

- (BOOL)openPairingWindow:(NSUInteger)duration error:(NSError * __autoreleasing *)error;
- (NSString *)openPairingWindowWithPIN:(NSUInteger)duration
discriminator:(NSUInteger)discriminator
setupPIN:(NSUInteger)setupPIN
error:(NSError * __autoreleasing *)error;
- (nullable NSString *)openPairingWindowWithPIN:(NSUInteger)duration
discriminator:(NSUInteger)discriminator
setupPIN:(NSUInteger)setupPIN
error:(NSError * __autoreleasing *)error;
- (BOOL)isActive;

- (instancetype)init NS_UNAVAILABLE;
Expand Down
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/CHIPDeviceController.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @param[in] storageDelegate The delegate for persistent storage
*/
- (BOOL)startup:(_Nullable id<CHIPPersistentStorageDelegate>)storageDelegate;
- (BOOL)startup:(nullable id<CHIPPersistentStorageDelegate>)storageDelegate;

/**
* Shutdown the CHIP Stack. Repeated calls to shutdown without calls to startup in between are NO-OPs.
Expand Down
6 changes: 3 additions & 3 deletions src/darwin/Framework/CHIP/CHIPDevicePairingDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ typedef NS_ENUM(NSUInteger, CHIPPairingStatus) {
* Notify the delegate when pairing is completed
*
*/
- (void)onPairingComplete:(NSError *)error;
- (void)onPairingComplete:(nullable NSError *)error;

/**
* Notify the delegate when pairing is deleted
*
*/
- (void)onPairingDeleted:(NSError *)error;
- (void)onPairingDeleted:(nullable NSError *)error;

/**
* Notify the delegate when address is updated
*
*/
- (void)onAddressUpdated:(NSError *)error;
- (void)onAddressUpdated:(nullable NSError *)error;

@end

Expand Down
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/CHIPManualSetupPayloadParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ NS_ASSUME_NONNULL_BEGIN

@interface CHIPManualSetupPayloadParser : NSObject
- (instancetype)initWithDecimalStringRepresentation:(NSString *)decimalStringRepresentation;
- (CHIPSetupPayload * __nullable)populatePayload:(NSError * __autoreleasing *)error;
- (nullable CHIPSetupPayload *)populatePayload:(NSError * __autoreleasing *)error;
@end

NS_ASSUME_NONNULL_END
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/CHIPPersistentStorageDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ NS_ASSUME_NONNULL_BEGIN
* Get the value for the given key
*
*/
- (NSString *)CHIPGetKeyValue:(NSString *)key;
- (nullable NSString *)CHIPGetKeyValue:(NSString *)key;

/**
* Set the value of the key to the given value
Expand Down
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/CHIPQRCodeSetupPayloadParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ NS_ASSUME_NONNULL_BEGIN

@interface CHIPQRCodeSetupPayloadParser : NSObject
- (instancetype)initWithBase38Representation:(NSString *)base38Representation;
- (CHIPSetupPayload * __nullable)populatePayload:(NSError * __autoreleasing *)error;
- (nullable CHIPSetupPayload *)populatePayload:(NSError * __autoreleasing *)error;
@end

NS_ASSUME_NONNULL_END
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/CHIPSetupPayload.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ typedef NS_ENUM(NSUInteger, CHIPOptionalQRCodeInfoType) {
@property (nonatomic, strong) NSNumber * setUpPINCode;

@property (nonatomic, strong) NSString * serialNumber;
- (NSArray<CHIPOptionalQRCodeInfo *> *)getAllOptionalVendorData:(NSError * __autoreleasing *)error;
- (nullable NSArray<CHIPOptionalQRCodeInfo *> *)getAllOptionalVendorData:(NSError * __autoreleasing *)error;

@end

Expand Down

0 comments on commit 791f18f

Please sign in to comment.