Files
flipper/iOS/FlipperKitTestUtils/BlockBasedSonarPlugin.h
Richard Howell 60f4bc1a65 enable -Wstrict-prototypes
Summary:
The 14.3 toolchain includes `-Wstrict-prototypes` in `-Wall`. Add it to the default warning list to ensure the code is buildable with the 14.3 toolchain.

Please forward fix any build breakage introduced by this change.

Reviewed By: NSProgrammer

Differential Revision: D44371491

fbshipit-source-id: 257c7f7748b079a34ffd5c041339d518bef9d1e5
2023-03-28 10:48:57 -07:00

28 lines
838 B
Objective-C

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <Foundation/Foundation.h>
#import <FlipperKit/FlipperPlugin.h>
@protocol FlipperConnection;
typedef void (^ConnectBlock)(id<FlipperConnection>);
typedef void (^DisconnectBlock)(void);
@interface BlockBasedSonarPlugin : NSObject<FlipperPlugin>
- (instancetype)initIdentifier:(NSString*)identifier
connect:(ConnectBlock)connect
disconnect:(DisconnectBlock)disconnect;
- (instancetype)initIdentifier:(NSString*)identifier
connect:(ConnectBlock)connect
disconnect:(DisconnectBlock)disconnect
runInBackground:(BOOL)runInBackground;
@end