comparison dstep/coreservices/cfnetwork/CFNetDiagnostics.d @ 11:07194b026fa4

Added bindings to a couple of frameworks, new license + some other things
author Jacob Carlborg <doob@me.com>
date Sat, 01 Aug 2009 15:03:28 +0200
parents
children
comparison
equal deleted inserted replaced
10:27e00625790b 11:07194b026fa4
1 /**
2 * Copyright: Copyright (c) 2009 Jacob Carlborg.
3 * Authors: Jacob Carlborg
4 * Version: Initial created: Jul 22, 2009
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
6 */
7 module dstep.coreservices.cfnetwork.CFNetDiagnostics;
8
9 //import dstep.Availability;
10 import dstep.coreservices.cfnetwork.CFNetworkDefs;
11 import dstep.corefoundation.CoreFoundation;
12 //import dstep.stdint;
13
14 struct __CFNetDiagnostic;
15
16 alias __CFNetDiagnostic* CFNetDiagnosticRef;
17 alias int CFNetDiagnosticStatusValues;
18 alias int CFNetDiagnosticStatus;
19
20 enum /*CFNetDiagnosticStatusValues*/
21 {
22 kCFNetDiagnosticNoErr = 0,
23 kCFNetDiagnosticErr = -66560L,
24 kCFNetDiagnosticConnectionUp = -66559L,
25 kCFNetDiagnosticConnectionIndeterminate = -66558L,
26 kCFNetDiagnosticConnectionDown = -66557L
27 }
28
29 extern (C)
30 {
31 CFNetDiagnosticRef CFNetDiagnosticCreateWithStreams (CFAllocatorRef alloc, CFReadStreamRef readStream, CFWriteStreamRef writeStream);
32 CFNetDiagnosticRef CFNetDiagnosticCreateWithURL (CFAllocatorRef alloc, CFURLRef url);
33 void CFNetDiagnosticSetName (CFNetDiagnosticRef details, CFStringRef name);
34 int CFNetDiagnosticDiagnoseProblemInteractively (CFNetDiagnosticRef details);
35 int CFNetDiagnosticCopyNetworkStatusPassively (CFNetDiagnosticRef details, CFStringRef* description);
36 }