~ubuntu-branches/ubuntu/trusty/gnustep-base/trusty

« back to all changes in this revision

Viewing changes to Headers/Foundation/NSProcessInfo.h

Tags: upstream-1.20.0
ImportĀ upstreamĀ versionĀ 1.20.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
 * <item>GSCygwinOperatingSystem - cygwin unix-like environment</item>
142
142
 * </list>
143
143
 */
144
 
- (unsigned int) operatingSystem;
 
144
- (NSUInteger) operatingSystem;
145
145
 
146
146
/**
147
147
 * Return a human readable string representing the operating system type.<br />
208
208
@interface      NSProcessInfo (GNUstep)
209
209
 
210
210
/**
211
 
 * Returns a indication of whether debug logging is enabled.
212
 
 * This returns YES unless a call to -setDebugLoggingEnabled: has
213
 
 * been used to turn logging off.
214
 
 */
215
 
- (BOOL) debugLoggingEnabled;
216
 
 
217
 
/**
218
 
 * This method returns a set of debug levels set using the
219
 
 * --GNU-Debug=... command line option and/or the GNU-Debug
220
 
 * user default.<br />
221
 
 * You can modify this set to change the debug logging under
222
 
 * your programs control ... but such modifications are not
223
 
 * thread-safe.
224
 
 */
225
 
- (NSMutableSet*) debugSet;
226
 
 
227
 
/**
228
 
 * This method permits you to turn all debug logging on or off
229
 
 * without modifying the set of debug levels in use.
230
 
 */
231
 
- (void) setDebugLoggingEnabled: (BOOL)flag;
232
 
 
233
 
/**
234
211
 * Set the file to which NSLog output should be directed.<br />
235
212
 * Returns YES on success, NO on failure.<br />
236
213
 * By default logging goes to standard error.
237
214
 */
238
215
- (BOOL) setLogFile: (NSString*)path;
239
216
 
 
217
/** Obsolete ... the GSInitializeProcess() function has the same effect and
 
218
 * can be called more easily from other languages (particularly C).
 
219
 */
 
220
+ (void) initializeWithArguments: (char**)argv
 
221
                           count: (int)argc
 
222
                     environment: (char**)env;
 
223
@end
 
224
 
240
225
/**
241
 
 * Fallback/override method. The developer must call this method to initialize
 
226
 * Fallback/override function.<br />
 
227
 * The developer must call this method to initialize
242
228
 * the NSProcessInfo system if none of the system-specific hacks to
243
229
 * auto-initialize it are working.<br />
244
 
 * It is also safe to call this method to override the effects
 
230
 * It is also safe to call this function to override the effects
245
231
 * of the automatic initialisation, which some applications may need
246
232
 * to do when using GNUstep libraries embedded within other frameworks.
247
233
 */
248
 
+ (void) initializeWithArguments: (char**)argv
249
 
                           count: (int)argc
250
 
                     environment: (char**)env;
251
 
@end
 
234
GS_EXPORT void GSInitializeProcess(int argc, char **argv, char **envp);
252
235
 
253
236
/**
254
237
 * Function for rapid testing to see if a debug level is set.<br />
264
247
}
265
248
#endif
266
249
 
 
250
#if     !NO_GNUSTEP && !defined(GNUSTEP_BASE_INTERNAL)
 
251
#import <GNUstepBase/NSProcessInfo+GNUstepBase.h>
 
252
#endif
 
253
 
267
254
#endif /* __NSProcessInfo_h_GNUSTEP_BASE_INCLUDE */