1995-08-16 15:47:12 +00:00
|
|
|
/* Interface for NSProcessInfo for GNUStep
|
1997-01-12 18:46:34 +00:00
|
|
|
Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
1995-08-16 15:47:12 +00:00
|
|
|
|
|
|
|
Written by: Georg Tuparev, EMBL & Academia Naturalis,
|
|
|
|
Heidelberg, Germany
|
|
|
|
Tuparev@EMBL-Heidelberg.de
|
|
|
|
Last update: 08-aug-1995
|
|
|
|
|
1996-05-12 00:56:10 +00:00
|
|
|
This file is part of the GNUstep Base Library.
|
1995-08-16 15:47:12 +00:00
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library 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
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; if not, write to the Free
|
2006-03-08 11:28:59 +00:00
|
|
|
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
|
|
MA 02111 USA.
|
1995-08-16 15:47:12 +00:00
|
|
|
*/
|
|
|
|
|
1996-04-17 19:36:35 +00:00
|
|
|
#ifndef __NSProcessInfo_h_GNUSTEP_BASE_INCLUDE
|
|
|
|
#define __NSProcessInfo_h_GNUSTEP_BASE_INCLUDE
|
1995-08-16 15:47:12 +00:00
|
|
|
|
2000-06-14 04:03:56 +00:00
|
|
|
#include <Foundation/NSObject.h>
|
1995-08-16 15:47:12 +00:00
|
|
|
|
2006-09-13 10:20:49 +00:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
1995-08-16 15:47:12 +00:00
|
|
|
@class NSArray;
|
|
|
|
@class NSMutableArray;
|
|
|
|
@class NSDictionary;
|
|
|
|
@class NSData;
|
1999-03-10 10:34:56 +00:00
|
|
|
@class NSMutableSet;
|
1995-08-16 15:47:12 +00:00
|
|
|
|
2002-04-08 15:32:52 +00:00
|
|
|
#ifndef STRICT_OPENSTEP
|
|
|
|
/*
|
|
|
|
* Constants returned by -operatingSystem
|
|
|
|
* NB. The presence of a constant in this list does *NOT* imply that
|
|
|
|
* the named operating system is supported. Some values are provided
|
|
|
|
* for MacOS-X compatibility only.
|
|
|
|
*/
|
|
|
|
enum {
|
|
|
|
NSWindowsNTOperatingSystem = 1,
|
|
|
|
NSWindows95OperatingSystem,
|
|
|
|
NSSolarisOperatingSystem,
|
|
|
|
NSHPUXOperatingSystem,
|
|
|
|
NSMACHOperatingSystem,
|
|
|
|
NSSunOSOperatingSystem,
|
|
|
|
NSOSF1OperatingSystem,
|
|
|
|
NSGNULinuxOperatingSystem = 100,
|
2002-12-29 02:00:04 +00:00
|
|
|
NSBSDOperatingSystem,
|
2006-02-10 10:17:06 +00:00
|
|
|
NSBeOperatingSystem,
|
|
|
|
NSCygwinOperatingSystem
|
2002-04-08 15:32:52 +00:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
1995-08-16 15:47:12 +00:00
|
|
|
@interface NSProcessInfo: NSObject
|
|
|
|
|
2001-07-15 09:08:27 +00:00
|
|
|
+ (NSProcessInfo*) processInfo;
|
1995-08-16 15:47:12 +00:00
|
|
|
|
2001-07-15 09:08:27 +00:00
|
|
|
- (NSArray*) arguments;
|
|
|
|
- (NSDictionary*) environment;
|
2002-04-08 15:32:52 +00:00
|
|
|
- (NSString*) globallyUniqueString;
|
2001-07-15 09:08:27 +00:00
|
|
|
- (NSString*) hostName;
|
|
|
|
#ifndef STRICT_OPENSTEP
|
2002-04-08 15:32:52 +00:00
|
|
|
- (unsigned int) operatingSystem;
|
|
|
|
- (NSString*) operatingSystemName;
|
2001-07-15 09:08:27 +00:00
|
|
|
- (int) processIdentifier;
|
|
|
|
#endif
|
|
|
|
- (NSString*) processName;
|
1995-08-16 15:47:12 +00:00
|
|
|
|
2001-07-15 09:08:27 +00:00
|
|
|
- (void) setProcessName: (NSString*)newName;
|
1995-08-16 15:47:12 +00:00
|
|
|
|
1999-03-10 10:34:56 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#ifndef NO_GNUSTEP
|
1998-08-04 10:45:43 +00:00
|
|
|
|
1999-03-10 10:34:56 +00:00
|
|
|
@interface NSProcessInfo (GNUstep)
|
2003-07-17 09:20:27 +00:00
|
|
|
- (BOOL) debugLoggingEnabled;
|
1999-03-10 10:34:56 +00:00
|
|
|
- (NSMutableSet*) debugSet;
|
2003-07-17 09:20:27 +00:00
|
|
|
- (void) setDebugLoggingEnabled: (BOOL)flag;
|
2002-05-27 14:03:10 +00:00
|
|
|
- (BOOL) setLogFile: (NSString*)path;
|
2001-12-19 11:43:06 +00:00
|
|
|
+ (void) initializeWithArguments: (char**)argv
|
|
|
|
count: (int)argc
|
|
|
|
environment: (char**)env;
|
1995-08-16 15:47:12 +00:00
|
|
|
@end
|
|
|
|
|
1999-03-10 10:34:56 +00:00
|
|
|
/*
|
|
|
|
* This function determines if the specified debug level is present in the
|
|
|
|
* set of active debug levels.
|
|
|
|
*/
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT BOOL GSDebugSet(NSString *level);
|
1999-03-10 10:34:56 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2006-09-13 10:20:49 +00:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
1996-04-17 19:36:35 +00:00
|
|
|
#endif /* __NSProcessInfo_h_GNUSTEP_BASE_INCLUDE */
|