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

« back to all changes in this revision

Viewing changes to Headers/Additions/GNUstepBase/NSProcessInfo+GNUstepBase.h

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** Declaration of extension methods for base additions
 
2
 
 
3
   Copyright (C) 2003-2010 Free Software Foundation, Inc.
 
4
 
 
5
   Written by:  Richard Frith-Macdonald <rfm@gnu.org>
 
6
   and:         Adam Fedor <fedor@gnu.org>
 
7
 
 
8
   This file is part of the GNUstep Base Library.
 
9
 
 
10
   This library is free software; you can redistribute it and/or
 
11
   modify it under the terms of the GNU Lesser General Public
 
12
   License as published by the Free Software Foundation; either
 
13
   version 2 of the License, or (at your option) any later version.
 
14
   
 
15
   This library is distributed in the hope that it will be useful,
 
16
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
18
   Library General Public License for more details.
 
19
 
 
20
   You should have received a copy of the GNU Lesser General Public
 
21
   License along with this library; if not, write to the Free
 
22
   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
23
   Boston, MA 02111 USA.
 
24
 
 
25
*/
 
26
 
 
27
#ifndef INCLUDED_NSProcessInfo_GNUstepBase_h
 
28
#define INCLUDED_NSProcessInfo_GNUstepBase_h
 
29
 
 
30
#import <GNUstepBase/GSVersionMacros.h>
 
31
#import <Foundation/NSProcessInfo.h>
 
32
 
 
33
#if     defined(__cplusplus)
 
34
extern "C" {
 
35
#endif
 
36
 
 
37
#if     OS_API_VERSION(GS_API_NONE,GS_API_LATEST)
 
38
 
 
39
@interface NSProcessInfo(GNUstepBase)
 
40
 
 
41
/**
 
42
 * Returns a indication of whether debug logging is enabled.
 
43
 * This returns YES unless a call to -setDebugLoggingEnabled: has
 
44
 * been used to turn logging off.
 
45
 */
 
46
- (BOOL) debugLoggingEnabled;
 
47
 
 
48
/**
 
49
 * This method returns a set of debug levels set using the
 
50
 * --GNU-Debug=... command line option and/or the GNU-Debug
 
51
 * user default.<br />
 
52
 * You can modify this set to change the debug logging under
 
53
 * your programs control ... but such modifications are not
 
54
 * thread-safe.
 
55
 */
 
56
- (NSMutableSet*) debugSet;
 
57
 
 
58
/**
 
59
 * This method permits you to turn all debug logging on or off
 
60
 * without modifying the set of debug levels in use.
 
61
 */
 
62
- (void) setDebugLoggingEnabled: (BOOL)flag;
 
63
 
 
64
@end
 
65
 
 
66
#endif  /* OS_API_VERSION */
 
67
 
 
68
#if     defined(__cplusplus)
 
69
}
 
70
#endif
 
71
 
 
72
#endif  /* INCLUDED_NSProcessInfo_GNUstepBase_h */
 
73