remove publicly visible ivars for future abi stability.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28626 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-09-07 16:25:04 +00:00
parent 14a28f5b7c
commit 36e7376518
5 changed files with 483 additions and 414 deletions

View file

@ -1,3 +1,11 @@
2009-09-07 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/Foundation/NSConnection.h:
* Source/NSConnection.m:
Remove ivars from public header.
Improve debug by reporting the connections's registered name and/or
the name of the remote port it is connecting to.
2009-09-07 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSRunLoop.m:

View file

@ -95,45 +95,7 @@ GS_EXPORT NSString* const NSConnectionProxyCount; /* Objects received */
@interface NSConnection : NSObject
{
@private
BOOL _isValid;
BOOL _independentQueueing;
BOOL _authenticateIn;
BOOL _authenticateOut;
BOOL _multipleThreads;
BOOL _shuttingDown;
BOOL _useKeepalive;
BOOL _keepaliveWait;
NSPort *_receivePort;
NSPort *_sendPort;
unsigned _requestDepth;
unsigned _messageCount;
unsigned _reqOutCount;
unsigned _reqInCount;
unsigned _repOutCount;
unsigned _repInCount;
#ifndef _IN_CONNECTION_M
#define GSIMapTable void*
#endif
GSIMapTable _localObjects;
GSIMapTable _localTargets;
GSIMapTable _remoteProxies;
GSIMapTable _replyMap;
#ifndef _IN_CONNECTION_M
#undef GSIMapTable
#endif
NSTimeInterval _replyTimeout;
NSTimeInterval _requestTimeout;
NSMutableArray *_requestModes;
NSMutableArray *_runLoops;
NSMutableArray *_requestQueue;
id _delegate;
NSRecursiveLock *_refGate;
NSMutableArray *_cachedDecoders;
NSMutableArray *_cachedEncoders;
NSString *_registeredName;
NSPortNameServer *_nameServer;
int _lastKeepalive;
void *_reserved; // For expansion
id _internal;
}
+ (NSArray*) allConnections;

View file

@ -85,8 +85,8 @@ DESTROY(_internal);
#undef internal
#define internal ((GSInternal*)_internal)
#undef GSIVr
#define GSIVar(X,Y) (((X ## Internal*)_internal)->Y)
#undef GSIVar
#define GSIVar(X,Y) (((GSInternal*)(X->_internal))->Y)
#else /* defined(__GNUC__) */
@ -114,7 +114,7 @@ DESTROY(_internal);
#undef internal
#define internal self
#undef GSIVar
#define GSIVar(X,Y) (self->Y)
#define GSIVar(X,Y) ((X)->Y)
#endif /* defined(__GNUC__) */

File diff suppressed because it is too large Load diff

View file

@ -144,7 +144,7 @@ GS_END_INTERNAL(NSOperation)
[internal->dependencies removeObject: op];
}
- (NSArray *)dependencies
- (NSArray *) dependencies
{
return [NSArray arrayWithArray: internal->dependencies];
}
@ -233,7 +233,7 @@ GS_END_INTERNAL(NSOperationQueue)
NSEnumerator *en = [internal->operations objectEnumerator];
id o = nil;
while ((o = [en nextObject]) != nil )
while ((o = [en nextObject]) != nil)
{
[o cancel];
}