Skip to content

Commit

Permalink
[Matter.framework] Add MTRDiagnosticLogsDelegate to the Matter.framework
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple committed Jan 23, 2024
1 parent 84117dd commit a8216d8
Show file tree
Hide file tree
Showing 11 changed files with 811 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/darwin/Framework/CHIP/DiagnosticLogsDownloader.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/**
*
* Copyright (c) 2024 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#import <Foundation/Foundation.h>

#import <Matter/MTRDeviceController.h>
#import <Matter/MTRDiagnosticLogsType.h>

namespace chip {
namespace bdx {
class BDXTransferServerDelegate;
}
}

NS_ASSUME_NONNULL_BEGIN

@interface DiagnosticLogsDownloader : NSObject
- (chip::bdx::BDXTransferServerDelegate *)getBridge;

- (void)downloadLogFromNodeWithID:(NSNumber *)nodeID
controller:(MTRDeviceController *)controller
type:(MTRDiagnosticLogType)type
timeout:(NSTimeInterval)timeout
queue:(dispatch_queue_t)queue
completion:(void (^)(NSURL * _Nullable url, NSError * _Nullable error))completion;
@end

NS_ASSUME_NONNULL_END
Loading

0 comments on commit a8216d8

Please sign in to comment.