mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-27 14:00:22 +00:00
98eb99c63a
- some CFByteOrder implementation - CFHost implementation with asynchronous resolver - CFPreferences skeletons - CIImage category in NSCIImageRep - NSTabView resizes item view even if autoresizing is off - NSCustomObject -description - NSNibLoading use of autorelease pool to reduce memory pressure - NSNib use of autorelease pool to reduce memory pressure - NSIBObjectData warning if it can't create custom instance instead of NSArray exception (adding nil) - changed NSBox to non-opaque, doesn't fill with background color - NSTableHeaderView use of setControlView: - NSMatrix use of setControlView: - NSAnimation/NSViewAnimation fixes to behave properly with timer - NSSheetContext check for nil - NSGraphicsStyle_uxtheme fix for menu separators - NSEvent -userData method added - minor cleanup of NSInvocation - NSDateFormatter fixes and update - NSArray+KVC.m fix for nil values
38 lines
1.7 KiB
Objective-C
38 lines
1.7 KiB
Objective-C
#import <CoreFoundation/CoreFoundation.h>
|
|
#import <CFNetwork/CFNetworkExport.h>
|
|
|
|
typedef struct __CFHost *CFHostRef;
|
|
|
|
enum CFHostInfoType {
|
|
kCFHostAddresses =0,
|
|
kCFHostNames =1,
|
|
kCFHostReachability =2,
|
|
};
|
|
typedef enum CFHostInfoType CFHostInfoType;
|
|
|
|
typedef void (*CFHostClientCallBack)(CFHostRef host,CFHostInfoType infoType,const CFStreamError *streamError,void *info);
|
|
|
|
typedef struct CFHostClientContext {
|
|
CFIndex version;
|
|
void *info;
|
|
CFAllocatorRetainCallBack retain;
|
|
CFAllocatorReleaseCallBack release;
|
|
CFAllocatorCopyDescriptionCallBack copyDescription;
|
|
} CFHostClientContext;
|
|
|
|
CFNETWORK_EXPORT CFTypeID CFHostGetTypeID();
|
|
CFNETWORK_EXPORT CFHostRef CFHostCreateCopy(CFAllocatorRef alloc,CFHostRef self);
|
|
CFNETWORK_EXPORT CFHostRef CFHostCreateWithAddress(CFAllocatorRef allocator,CFDataRef address);
|
|
CFNETWORK_EXPORT CFHostRef CFHostCreateWithName(CFAllocatorRef allocator,CFStringRef name);
|
|
CFNETWORK_EXPORT CFArrayRef CFHostGetAddressing(CFHostRef self,Boolean *hasBeenResolved);
|
|
CFNETWORK_EXPORT CFArrayRef CFHostGetNames(CFHostRef self,Boolean *hasBeenResolved);
|
|
CFNETWORK_EXPORT CFDataRef CFHostGetReachability(CFHostRef self,Boolean *hasBeenResolved);
|
|
CFNETWORK_EXPORT Boolean CFHostSetClient(CFHostRef self,CFHostClientCallBack callback,CFHostClientContext *context);
|
|
|
|
CFNETWORK_EXPORT Boolean CFHostStartInfoResolution(CFHostRef self,CFHostInfoType infoType,CFStreamError *streamError);
|
|
CFNETWORK_EXPORT void CFHostCancelInfoResolution(CFHostRef theHost,CFHostInfoType infoType);
|
|
|
|
CFNETWORK_EXPORT void CFHostScheduleWithRunLoop(CFHostRef self,CFRunLoopRef runLoop,CFStringRef mode);
|
|
CFNETWORK_EXPORT void CFHostUnscheduleFromRunLoop(CFHostRef self,CFRunLoopRef runLoop,CFStringRef mode);
|
|
|