Skip to content

Commit 367184d

Browse files
Fix compilation
1 parent e7ccb1f commit 367184d

File tree

3 files changed

+36
-4
lines changed

3 files changed

+36
-4
lines changed

source/corefoundation/cfbundle.d

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
*/
88
module corefoundation.cfbundle;
99
import corefoundation.cfallocator;
10+
import corefoundation.cfdictionary;
1011
import corefoundation.cfstring;
12+
import corefoundation.cfarray;
13+
import corefoundation.cferror;
14+
import corefoundation.cfurl;
1115
import corefoundation.core;
1216
import foundation.nsbundle;
1317

@@ -17,7 +21,7 @@ extern(C) @nogc nothrow:
1721
A reference to a CFBundle object.
1822
*/
1923
alias CFBundleRef = CFSubType!("CFBundle", NSBundle);
20-
alias CFPluginRef = CFBundleRef; /// ditto
24+
alias CFPlugInRef = CFBundleRef; /// ditto
2125

2226
/**
2327
Bundle Reference Number
@@ -266,9 +270,9 @@ extern Boolean CFBundleLoadExecutable(CFBundleRef bundle);
266270
extern Boolean CFBundleIsExecutableLoaded(CFBundleRef bundle);
267271
extern void CFBundleUnloadExecutable(CFBundleRef bundle);
268272
extern void *CFBundleGetFunctionPointerForName(CFBundleRef bundle, CFStringRef functionName);
269-
extern void CFBundleGetFunctionPointersForNames(CFBundleRef bundle, CFArrayRef functionNames, void *ftbl[]);
273+
extern void CFBundleGetFunctionPointersForNames(CFBundleRef bundle, CFArrayRef functionNames, void** ftbl);
270274
extern void *CFBundleGetDataPointerForName(CFBundleRef bundle, CFStringRef symbolName);
271-
extern void CFBundleGetDataPointersForNames(CFBundleRef bundle, CFArrayRef symbolNames, void *stbl[]);
275+
extern void CFBundleGetDataPointersForNames(CFBundleRef bundle, CFArrayRef symbolNames, void** stbl);
272276

273277
/**
274278
This function can be used to find executables other than your main
@@ -285,7 +289,7 @@ extern CFPlugInRef CFBundleGetPlugIn(CFBundleRef bundle);
285289
version(OSX) {
286290
extern Boolean CFBundleIsExecutableLoadable(CFBundleRef bundle);
287291
extern Boolean CFBundleIsExecutableLoadableForURL(CFURLRef url);
288-
extern Boolean CFBundleIsArchitectureLoadable(cpu_type_t arch);
292+
// extern Boolean CFBundleIsArchitectureLoadable(cpu_type_t arch);
289293

290294
/**
291295
This function opens the non-localized and the localized resource files

source/corefoundation/cfdata.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Authors: Luna Nielsen
77
*/
88
module corefoundation.cfdata;
9+
import corefoundation.cfallocator;
910
import corefoundation.core;
1011
import foundation.nsdata;
1112

source/foundation/nsdata.d

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ version(D_ObjectiveC):
1919
*/
2020
extern(Objective-C)
2121
extern class NSData : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
22+
@nogc:
23+
24+
/**
25+
A Boolean value that indicates whether or not the class
26+
supports secure coding.
27+
*/
28+
override
29+
@property bool supportsSecureCoding();
2230

2331
/**
2432
Length of the data in bytes.
@@ -34,13 +42,32 @@ extern class NSData : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
3442
and discontiguous data.
3543
*/
3644
@property const(void)* bytes();
45+
46+
/**
47+
Returns a new instance that’s a copy of the receiver.
48+
*/
49+
override
50+
id mutableCopyWithZone(NSZone* zone) @selector("mutableCopyWithZone:");
51+
52+
/**
53+
Returns a new instance that’s a copy of the receiver.
54+
*/
55+
override
56+
id copyWithZone(NSZone* zone) @selector("copyWithZone:");
57+
58+
/**
59+
Encodes the receiver using a given archiver.
60+
*/
61+
override
62+
void encodeWithCoder(NSCoder coder) @selector("encodeWithCoder:");
3763
}
3864

3965
/**
4066
Mutable Data Store
4167
*/
4268
extern(Objective-C)
4369
extern class NSMutableData : NSData {
70+
@nogc:
4471

4572
/**
4673
Returns a pointer to a contiguous region of memory managed by the receiver.

0 commit comments

Comments
 (0)