Skip to content

Commit

Permalink
[IOS-RPC] lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Peskov <peskovnn@gmail.com>
  • Loading branch information
apeskov committed May 31, 2021
1 parent 13328e1 commit fe5622e
Show file tree
Hide file tree
Showing 7 changed files with 178 additions and 186 deletions.
19 changes: 9 additions & 10 deletions apps/ios_rpc/tvmrpc/RPCServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
* Used to report state to listener
*/
typedef enum {
RPCServerStatus_Launched, // Worker thread is launched
RPCServerStatus_Stopped, // Worker thread stopped
RPCServerStatus_Connected, // Connected to Proxy/Tracker
RPCServerStatus_Disconnected, // Disconnected from Proxy/Tracker
RPCServerStatus_Launched, // Worker thread is launched
RPCServerStatus_Stopped, // Worker thread stopped
RPCServerStatus_Connected, // Connected to Proxy/Tracker
RPCServerStatus_Disconnected, // Disconnected from Proxy/Tracker
RPCServerStatus_RPCSessionStarted, // RPC session is started
RPCServerStatus_RPCSessionFinished // RPC session is finished
} RPCServerStatus;
Expand All @@ -53,12 +53,11 @@ typedef enum {
*/
@protocol RPCServerEventListener <NSObject>
/// Callback to notifying about new status
- (void)onError:(NSString*) msg;
- (void)onError:(NSString*)msg;
/// Callback to notifying about error
- (void)onStatusChanged:(RPCServerStatus) status;
- (void)onStatusChanged:(RPCServerStatus)status;
@end


/*!
* \brief RPC Server instance
* Contains internal worker thread plus
Expand All @@ -69,21 +68,21 @@ typedef enum {
* \brief Create server with specified sevicing mode
* \param mode Mode of server
*/
+ (instancetype)serverWithMode:(RPCServerMode) mode;
+ (instancetype)serverWithMode:(RPCServerMode)mode;

/*!
* \brief Set listener delegate
* \param delegate Event listener delegate to set
*/
- (void)setDelegate:(id<RPCServerEventListener>) delegate;
- (void)setDelegate:(id<RPCServerEventListener>)delegate;

/*!
* \brief Start RPC server with options. Non blocking method
* \param host Host address of Tracker/Proxy to connect. Skipped for PureServer mode
* \param port Port of Tracker/Proxy to connect. Skipped for PureServer mode
* \param key device key to use in RPC server
*/
- (void)startWithHost:(NSString*) host port:(int) port key:(NSString*) key;
- (void)startWithHost:(NSString*)host port:(int)port key:(NSString*)key;

/*!
* \brief Stop RPC server. Non blocking method
Expand Down
Loading

0 comments on commit fe5622e

Please sign in to comment.