From 495f5e726fa92572ff0f868316c0602547098010 Mon Sep 17 00:00:00 2001 From: jlucfarias Date: Tue, 23 Sep 2025 15:25:47 -0300 Subject: [PATCH] Add symbols for BibDesk --- CMakeLists.txt | 1 + include/Foundation/NSConnection.h | 1 + include/Foundation/NSPortNameServer.h | 1 - src/NSConnection.m | 1 + src/NSSocketPortNameServer.m | 36 +++++++++++++++++++++++++++ 5 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 src/NSSocketPortNameServer.m diff --git a/CMakeLists.txt b/CMakeLists.txt index c31dfd1d0..42c82a81a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,6 +143,7 @@ set(foundation_sources src/NSPort.m src/NSSocketPort.m + src/NSSocketPortNameServer.m src/NSPortCoder.m src/NSPortMessage.m src/NSConcretePortCoder.m diff --git a/include/Foundation/NSConnection.h b/include/Foundation/NSConnection.h index addbae260..b6ceba05a 100644 --- a/include/Foundation/NSConnection.h +++ b/include/Foundation/NSConnection.h @@ -51,6 +51,7 @@ FOUNDATION_EXPORT const NSRunLoopMode NSConnectionReplyMode; FOUNDATION_EXPORT const NSNotificationName NSConnectionDidInitializeNotification; FOUNDATION_EXPORT const NSNotificationName NSConnectionDidDieNotification; +FOUNDATION_EXPORT NSString *const NSFailedAuthenticationException; // We store info about each released proxy (or rather, each proxy release) as an // array with two ints: the id and the release count. This is also the format diff --git a/include/Foundation/NSPortNameServer.h b/include/Foundation/NSPortNameServer.h index abca7e5c6..3b912cf50 100644 --- a/include/Foundation/NSPortNameServer.h +++ b/include/Foundation/NSPortNameServer.h @@ -42,7 +42,6 @@ // For compatibility, also import concrete name server types. #import -// #import @interface NSSocketPortNameServer : NSPortNameServer @end diff --git a/src/NSConnection.m b/src/NSConnection.m index 2172a9bec..2a0f3778f 100644 --- a/src/NSConnection.m +++ b/src/NSConnection.m @@ -51,6 +51,7 @@ - (void) _wakeup; const NSRunLoopMode NSConnectionReplyMode = @"NSConnectionReplyMode"; const NSNotificationName NSConnectionDidInitializeNotification = @"NSConnectionDidInitializeNotification"; const NSNotificationName NSConnectionDidDieNotification = @"NSConnectionDidDieNotification"; +NSString *const NSFailedAuthenticationException = @"NSFailedAuthenticationException"; BOOL NSDOLoggingEnabled = NO; static atomic_uint lastSequenceNumber = 0; diff --git a/src/NSSocketPortNameServer.m b/src/NSSocketPortNameServer.m new file mode 100644 index 000000000..3ee213e0b --- /dev/null +++ b/src/NSSocketPortNameServer.m @@ -0,0 +1,36 @@ +/* + This file is part of Darling. + + Copyright (C) 2025 Darling Developers + + Darling is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Darling is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Darling. If not, see . +*/ + +#import +#import +#import + +@implementation NSSocketPortNameServer + +- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector +{ + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; +} + +- (void)forwardInvocation:(NSInvocation *)anInvocation +{ + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); +} + +@end