limal-runlevel
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
limal
runlevel
Runlevel.hpp
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| |
3
| _ _ _ _ __ _ |
4
| | | | | | \_/ | / \ | | |
5
| | | | | | |_| | / /\ \ | | |
6
| | |__ | | | | | | / ____ \ | |__ |
7
| |____||_| |_| |_|/ / \ \|____| |
8
| |
9
| runlevel library |
10
| |
11
| (C) SUSE Linux Products GmbH |
12
\----------------------------------------------------------------------/
13
14
File: Runlevel.hpp
15
16
Author: Marius Tomaschewski
17
Maintainer: Marius Tomaschewski
18
19
Purpose:
20
21
/-*/
26
#ifndef LIMAL_RUNLEVEL_HPP
27
#define LIMAL_RUNLEVEL_HPP
28
29
#include <
limal/runlevel/config.h
>
30
#include <blocxx/String.hpp>
31
#include <blocxx/Array.hpp>
32
33
34
// -------------------------------------------------------------------
35
namespace
LIMAL_NAMESPACE
36
{
37
namespace
RUNLEVEL_NAMESPACE
38
{
39
40
71
typedef
char
Runlevel
;
72
typedef
blocxx::Array<Runlevel>
Runlevels
;
73
74
79
Runlevel
80
getDefaultRunlevel
();
81
82
86
Runlevel
87
getCurrentRunlevel
();
88
89
93
Runlevels
94
getEnabledRunlevels
();
95
96
101
bool
102
isRunlevelEnabled
(
Runlevel
runlevel);
103
104
111
bool
112
setDefaultRunlevel
(
Runlevel
runlevel);
113
114
122
bool
123
switchToRunlevel
(
Runlevel
runlevel);
124
125
126
// -------------------------------------------------------------------
131
blocxx::Array<blocxx::String>
132
getRunlevelServiceNames
(
Runlevel
runlevel);
133
134
135
// -------------------------------------------------------------------
136
}
// End of RUNLEVEL_NAMESPACE
137
}
// End of LIMAL_NAMESPACE
138
#endif // LIMAL_RUNLEVEL_HPP
Generated by
1.8.1