···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMAPFS : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMAPFSPrivVars : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMAppleRAID : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMAppleRAIDPrivVars : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMCoreStorage : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMCoreStoragePrivVars : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMDisk : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMEraseDisk : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMEraseDiskPrivVars : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMFilesystem : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMFilesystemPrivVars : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMManager : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMManagerPrivVars : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMPartitionDisk : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMPartitionDiskPrivVars : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMRepairDisk : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMRepairDiskPrivVars : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface DMUDSWrapper : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+void* DMLocalizedUserErrorString(void);
2121+void* DMUnlocalizedTechnicalErrorString(void);
2222+2323+#import <Foundation/Foundation.h>
2424+#import <DiskManagement/_DMListDA.h>
2525+#import <DiskManagement/_DMClaimDA.h>
2626+#import <DiskManagement/_DMWaitIdleDA.h>
2727+#import <DiskManagement/DMUDSWrapper.h>
2828+#import <DiskManagement/DMFilesystemPrivVars.h>
2929+#import <DiskManagement/DMFilesystem.h>
3030+#import <DiskManagement/DMManagerPrivVars.h>
3131+#import <DiskManagement/DMManager.h>
3232+#import <DiskManagement/DMPartitionDiskPrivVars.h>
3333+#import <DiskManagement/DMPartitionDisk.h>
3434+#import <DiskManagement/DMEraseDiskPrivVars.h>
3535+#import <DiskManagement/DMEraseDisk.h>
3636+#import <DiskManagement/DMRepairDiskPrivVars.h>
3737+#import <DiskManagement/DMRepairDisk.h>
3838+#import <DiskManagement/DMAPFSPrivVars.h>
3939+#import <DiskManagement/DMAPFS.h>
4040+#import <DiskManagement/DMCoreStoragePrivVars.h>
4141+#import <DiskManagement/DMCoreStorage.h>
4242+#import <DiskManagement/DMAppleRAIDPrivVars.h>
4343+#import <DiskManagement/DMAppleRAID.h>
4444+#import <DiskManagement/DMDisk.h>
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface _DMClaimDA : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface _DMListDA : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface _DMWaitIdleDA : NSObject
2121+2222+@end
+32
src/DiskManagement/src/DMAPFS.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMAPFS
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMAPFSPrivVars.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMAPFSPrivVars
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMAppleRAID.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMAppleRAID
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMAppleRAIDPrivVars.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMAppleRAIDPrivVars
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMCoreStorage.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMCoreStorage
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMCoreStoragePrivVars.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMCoreStoragePrivVars
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMDisk.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMDisk
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMEraseDisk.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMEraseDisk
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMEraseDiskPrivVars.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMEraseDiskPrivVars
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMFilesystem.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMFilesystem
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMFilesystemPrivVars.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMFilesystemPrivVars
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMManager.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMManager
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMManagerPrivVars.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMManagerPrivVars
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMPartitionDisk.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMPartitionDisk
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMPartitionDiskPrivVars.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMPartitionDiskPrivVars
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMRepairDisk.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMRepairDisk
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMRepairDiskPrivVars.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMRepairDiskPrivVars
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/DMUDSWrapper.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation DMUDSWrapper
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/_DMClaimDA.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation _DMClaimDA
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/_DMListDA.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation _DMListDA
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/DiskManagement/src/_DMWaitIdleDA.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <DiskManagement/DiskManagement.h>
2121+2222+@implementation _DMWaitIdleDA
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+27
src/DiskManagement/src/functions.c
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#include <stdlib.h>
2222+static int verbose = 0;
2323+__attribute__((constructor)) static void initme(void) {
2424+ verbose = getenv("STUB_VERBOSE") != NULL;
2525+}
2626+void* DMLocalizedUserErrorString(void) { if (verbose) puts("STUB: DMLocalizedUserErrorString called"); return NULL; }
2727+void* DMUnlocalizedTechnicalErrorString(void) { if (verbose) puts("STUB: DMUnlocalizedTechnicalErrorString called"); return NULL; }
+23
src/NetworkStatistics/CMakeLists.txt
···11+project(NetworkStatistics)
22+33+set(DYLIB_COMPAT_VERSION "1.0.0")
44+set(DYLIB_CURRENT_VERSION "1.0.0")
55+66+file(GLOB NW_C src/*.c)
77+file(GLOB NW_OBJC src/*.m)
88+99+add_framework(NetworkStatistics
1010+ FAT
1111+ CURRENT_VERSION
1212+ PRIVATE
1313+ VERSION "A"
1414+1515+ SOURCES
1616+ ${NW_C}
1717+ ${NW_OBJC}
1818+1919+ DEPENDENCIES
2020+ system
2121+ objc
2222+ Foundation
2323+)
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface NWRouteSnapshot : NWSnapshot
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface NWRouteSnapshotter : NWSnapshotter
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface NWSnapshot : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface NWSnapshotSource : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface NWSnapshotter : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface NWStatisticsDelegateBlockWrapper : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <NetworkStatistics/NWStatisticsSource.h>
2121+2222+@interface NWStatisticsInterfaceSource : NWStatisticsSource
2323+2424+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface NWStatisticsManager : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface NWStatisticsRouteSource : NWStatisticsSource
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface NWStatisticsSource : NSObject
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface NWStatisticsTCPSource : NWStatisticsSource
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+@interface NWStatisticsUDPSource : NWStatisticsSource
2121+2222+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+void* NStatManagerAddAllRoutes(void);
2121+void* NStatManagerAddAllRoutesWithFilter(void);
2222+void* NStatManagerAddAllTCP(void);
2323+void* NStatManagerAddAllTCPWithFilter(void);
2424+void* NStatManagerAddAllTCPWithOptions(void);
2525+void* NStatManagerAddAllUDP(void);
2626+void* NStatManagerAddAllUDPWithFilter(void);
2727+void* NStatManagerAddAllUDPWithOptions(void);
2828+void* NStatManagerCreate(void);
2929+void* NStatManagerCreateInterfaceSource(void);
3030+void* NStatManagerCreateRouteSource(void);
3131+void* NStatManagerCreateSysinfoSource(void);
3232+void* NStatManagerCreateTCPSource(void);
3333+void* NStatManagerCreateUDPSource(void);
3434+void* NStatManagerDestroy(void);
3535+void* NStatManagerQueryAllSources(void);
3636+void* NStatManagerQueryAllSourcesDescriptions(void);
3737+void* NStatManagerQueryAllSourcesUpdate(void);
3838+void* NStatManagerSetFlags(void);
3939+void* NStatManagerSetInterfaceSourceFD(void);
4040+void* NStatManagerSetInterfaceTraceFD(void);
4141+void* NStatManagerSetQueuePriority(void);
4242+void* NStatRouteValuesForIPv4Host(void);
4343+void* NStatRouteValuesForIPv6Host(void);
4444+void* NStatSourceCopyCounts(void);
4545+void* NStatSourceCopyProperties(void);
4646+void* NStatSourceCopyProperty(void);
4747+void* NStatSourceQueryCounts(void);
4848+void* NStatSourceQueryDescription(void);
4949+void* NStatSourceQueryUpdate(void);
5050+void* NStatSourceRemove(void);
5151+void* NStatSourceSetCountsBlock(void);
5252+void* NStatSourceSetDescriptionBlock(void);
5353+void* NStatSourceSetEventsBlock(void);
5454+void* NStatSourceSetFilter(void);
5555+void* NStatSourceSetRemovedBlock(void);
5656+5757+#import <Foundation/Foundation.h>
5858+#import <NetworkStatistics/NWSnapshotSource.h>
5959+#import <NetworkStatistics/NWSnapshotter.h>
6060+#import <NetworkStatistics/NWRouteSnapshotter.h>
6161+#import <NetworkStatistics/NWSnapshot.h>
6262+#import <NetworkStatistics/NWRouteSnapshot.h>
6363+#import <NetworkStatistics/NWStatisticsManager.h>
6464+#import <NetworkStatistics/NWStatisticsDelegateBlockWrapper.h>
6565+#import <NetworkStatistics/NWStatisticsInterfaceSource.h>
6666+#import <NetworkStatistics/NWStatisticsSource.h>
6767+#import <NetworkStatistics/NWStatisticsTCPSource.h>
6868+#import <NetworkStatistics/NWStatisticsUDPSource.h>
6969+#import <NetworkStatistics/NWStatisticsRouteSource.h>
+32
src/NetworkStatistics/src/NWRouteSnapshot.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <NetworkStatistics/NetworkStatistics.h>
2121+2222+@implementation NWRouteSnapshot
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/NetworkStatistics/src/NWRouteSnapshotter.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <NetworkStatistics/NetworkStatistics.h>
2121+2222+@implementation NWRouteSnapshotter
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/NetworkStatistics/src/NWSnapshot.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <NetworkStatistics/NetworkStatistics.h>
2121+2222+@implementation NWSnapshot
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/NetworkStatistics/src/NWSnapshotSource.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <NetworkStatistics/NetworkStatistics.h>
2121+2222+@implementation NWSnapshotSource
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/NetworkStatistics/src/NWSnapshotter.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <NetworkStatistics/NetworkStatistics.h>
2121+2222+@implementation NWSnapshotter
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <NetworkStatistics/NetworkStatistics.h>
2121+2222+@implementation NWStatisticsDelegateBlockWrapper
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <NetworkStatistics/NetworkStatistics.h>
2121+2222+@implementation NWStatisticsInterfaceSource
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/NetworkStatistics/src/NWStatisticsManager.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <NetworkStatistics/NetworkStatistics.h>
2121+2222+@implementation NWStatisticsManager
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <NetworkStatistics/NetworkStatistics.h>
2121+2222+@implementation NWStatisticsRouteSource
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/NetworkStatistics/src/NWStatisticsSource.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <NetworkStatistics/NetworkStatistics.h>
2121+2222+@implementation NWStatisticsSource
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/NetworkStatistics/src/NWStatisticsTCPSource.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <NetworkStatistics/NetworkStatistics.h>
2121+2222+@implementation NWStatisticsTCPSource
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+32
src/NetworkStatistics/src/NWStatisticsUDPSource.m
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <NetworkStatistics/NetworkStatistics.h>
2121+2222+@implementation NWStatisticsUDPSource
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
2525+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2626+}
2727+2828+- (void)forwardInvocation:(NSInvocation *)anInvocation {
2929+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3030+}
3131+3232+@end
+61
src/NetworkStatistics/src/functions.c
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#include <stdlib.h>
2222+static int verbose = 0;
2323+__attribute__((constructor)) static void initme(void) {
2424+ verbose = getenv("STUB_VERBOSE") != NULL;
2525+}
2626+void* NStatManagerAddAllRoutes(void) { if (verbose) puts("STUB: NStatManagerAddAllRoutes called"); return NULL; }
2727+void* NStatManagerAddAllRoutesWithFilter(void) { if (verbose) puts("STUB: NStatManagerAddAllRoutesWithFilter called"); return NULL; }
2828+void* NStatManagerAddAllTCP(void) { if (verbose) puts("STUB: NStatManagerAddAllTCP called"); return NULL; }
2929+void* NStatManagerAddAllTCPWithFilter(void) { if (verbose) puts("STUB: NStatManagerAddAllTCPWithFilter called"); return NULL; }
3030+void* NStatManagerAddAllTCPWithOptions(void) { if (verbose) puts("STUB: NStatManagerAddAllTCPWithOptions called"); return NULL; }
3131+void* NStatManagerAddAllUDP(void) { if (verbose) puts("STUB: NStatManagerAddAllUDP called"); return NULL; }
3232+void* NStatManagerAddAllUDPWithFilter(void) { if (verbose) puts("STUB: NStatManagerAddAllUDPWithFilter called"); return NULL; }
3333+void* NStatManagerAddAllUDPWithOptions(void) { if (verbose) puts("STUB: NStatManagerAddAllUDPWithOptions called"); return NULL; }
3434+void* NStatManagerCreate(void) { if (verbose) puts("STUB: NStatManagerCreate called"); return NULL; }
3535+void* NStatManagerCreateInterfaceSource(void) { if (verbose) puts("STUB: NStatManagerCreateInterfaceSource called"); return NULL; }
3636+void* NStatManagerCreateRouteSource(void) { if (verbose) puts("STUB: NStatManagerCreateRouteSource called"); return NULL; }
3737+void* NStatManagerCreateSysinfoSource(void) { if (verbose) puts("STUB: NStatManagerCreateSysinfoSource called"); return NULL; }
3838+void* NStatManagerCreateTCPSource(void) { if (verbose) puts("STUB: NStatManagerCreateTCPSource called"); return NULL; }
3939+void* NStatManagerCreateUDPSource(void) { if (verbose) puts("STUB: NStatManagerCreateUDPSource called"); return NULL; }
4040+void* NStatManagerDestroy(void) { if (verbose) puts("STUB: NStatManagerDestroy called"); return NULL; }
4141+void* NStatManagerQueryAllSources(void) { if (verbose) puts("STUB: NStatManagerQueryAllSources called"); return NULL; }
4242+void* NStatManagerQueryAllSourcesDescriptions(void) { if (verbose) puts("STUB: NStatManagerQueryAllSourcesDescriptions called"); return NULL; }
4343+void* NStatManagerQueryAllSourcesUpdate(void) { if (verbose) puts("STUB: NStatManagerQueryAllSourcesUpdate called"); return NULL; }
4444+void* NStatManagerSetFlags(void) { if (verbose) puts("STUB: NStatManagerSetFlags called"); return NULL; }
4545+void* NStatManagerSetInterfaceSourceFD(void) { if (verbose) puts("STUB: NStatManagerSetInterfaceSourceFD called"); return NULL; }
4646+void* NStatManagerSetInterfaceTraceFD(void) { if (verbose) puts("STUB: NStatManagerSetInterfaceTraceFD called"); return NULL; }
4747+void* NStatManagerSetQueuePriority(void) { if (verbose) puts("STUB: NStatManagerSetQueuePriority called"); return NULL; }
4848+void* NStatRouteValuesForIPv4Host(void) { if (verbose) puts("STUB: NStatRouteValuesForIPv4Host called"); return NULL; }
4949+void* NStatRouteValuesForIPv6Host(void) { if (verbose) puts("STUB: NStatRouteValuesForIPv6Host called"); return NULL; }
5050+void* NStatSourceCopyCounts(void) { if (verbose) puts("STUB: NStatSourceCopyCounts called"); return NULL; }
5151+void* NStatSourceCopyProperties(void) { if (verbose) puts("STUB: NStatSourceCopyProperties called"); return NULL; }
5252+void* NStatSourceCopyProperty(void) { if (verbose) puts("STUB: NStatSourceCopyProperty called"); return NULL; }
5353+void* NStatSourceQueryCounts(void) { if (verbose) puts("STUB: NStatSourceQueryCounts called"); return NULL; }
5454+void* NStatSourceQueryDescription(void) { if (verbose) puts("STUB: NStatSourceQueryDescription called"); return NULL; }
5555+void* NStatSourceQueryUpdate(void) { if (verbose) puts("STUB: NStatSourceQueryUpdate called"); return NULL; }
5656+void* NStatSourceRemove(void) { if (verbose) puts("STUB: NStatSourceRemove called"); return NULL; }
5757+void* NStatSourceSetCountsBlock(void) { if (verbose) puts("STUB: NStatSourceSetCountsBlock called"); return NULL; }
5858+void* NStatSourceSetDescriptionBlock(void) { if (verbose) puts("STUB: NStatSourceSetDescriptionBlock called"); return NULL; }
5959+void* NStatSourceSetEventsBlock(void) { if (verbose) puts("STUB: NStatSourceSetEventsBlock called"); return NULL; }
6060+void* NStatSourceSetFilter(void) { if (verbose) puts("STUB: NStatSourceSetFilter called"); return NULL; }
6161+void* NStatSourceSetRemovedBlock(void) { if (verbose) puts("STUB: NStatSourceSetRemovedBlock called"); return NULL; }