Files
moonlight-ios/Limelight/Utility/Utils.h
Felix Kratz f759f719e6 Dark Mode & Stream Overlay [macOS] (#315)
* dark mode & stream overlay

* removed all redundant imports

* update for the new xcode version with fixes for the new 'implicitly retains self warning'

* reworked the overlay view

* cleaning up unused variables

* small corrections
2018-04-22 00:44:22 -04:00

31 lines
554 B
Objective-C

//
// Utils.h
// Moonlight
//
// Created by Diego Waxemberg on 10/20/14.
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
//
@interface Utils : NSObject
typedef NS_ENUM(int, PairState) {
PairStateUnknown,
PairStateUnpaired,
PairStatePaired
};
FOUNDATION_EXPORT NSString *const deviceName;
+ (NSData*) randomBytes:(NSInteger)length;
+ (NSString*) bytesToHex:(NSData*)data;
+ (NSData*) hexToBytes:(NSString*) hex;
+ (int) resolveHost:(NSString*)host;
@end
@interface NSString (NSStringWithTrim)
- (NSString*) trim;
@end