feat: sync httpdns sdk/platform updates without large binaries
This commit is contained in:
28
HttpDNSSDK/sdk/ios/NewHttpDNS/Utils/HttpDnsLocker.h
Normal file
28
HttpDNSSDK/sdk/ios/NewHttpDNS/Utils/HttpDnsLocker.h
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// HttpDnsLocker.h
|
||||
// TrustHttpDNS
|
||||
//
|
||||
// Created by 王贇 on 2023/8/16.
|
||||
// Copyright © 2023 trustapp.com. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef HttpDnsLocker_h
|
||||
#define HttpDnsLocker_h
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "HttpdnsRequest.h"
|
||||
|
||||
@interface HttpDnsLocker : NSObject
|
||||
|
||||
+ (instancetype)sharedInstance;
|
||||
|
||||
- (void)lock:(NSString *)host queryType:(HttpdnsQueryIPType)queryType;
|
||||
|
||||
- (BOOL)tryLock:(NSString *)host queryType:(HttpdnsQueryIPType)queryType;
|
||||
|
||||
- (void)unlock:(NSString *)host queryType:(HttpdnsQueryIPType)queryType;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
#endif /* HttpDnsLocker_h */
|
||||
Reference in New Issue
Block a user