Skip to content

Commit

Permalink
Fix Darwin framework APIs to accept arbitrary types for command invok…
Browse files Browse the repository at this point in the history
…es (#11767)

* Generate Objective-C types to represent Matter structs and command payloads.

* Improve Objective-C to C++ value conversion to handle more cases.

* Change Darwin cluster command invocations to take payload structs.

* Update the Darwin tests to use the new command APIs.

* Update return value decoding for commands on Darwin to use the new APIs.

This also extends the return value handling, and the test comparison bits, to all types.

* Enable a bunch of complex-types tests on Darwin.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Apr 25, 2022
1 parent e4fcb1a commit 1026288
Show file tree
Hide file tree
Showing 41 changed files with 11,580 additions and 5,316 deletions.
9 changes: 1 addition & 8 deletions examples/chip-tool-darwin/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,7 @@
*
*/

#import <CHIP/CHIPDevice.h>
#import <CHIP/CHIPDeviceController.h>
#import <CHIP/CHIPDevicePairingDelegate.h>
#import <CHIP/CHIPManualSetupPayloadParser.h>
#import <CHIP/CHIPPersistentStorageDelegate.h>
#import <CHIP/CHIPQRCodeSetupPayloadParser.h>
#import <CHIP/CHIPSetupPayload.h>
#import <CHIP/zap-generated/CHIPClustersObjc.h>
#import <CHIP/CHIP.h>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) { return EXIT_SUCCESS; }
Loading

0 comments on commit 1026288

Please sign in to comment.