Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
List of all members
Status Class Reference
Manages the status file.
#include <status.h>
Public Member Functions | |
| bool | init (boost::system::error_code &ec, std::string path, std::string cmdline="cat /proc/cmdline") |
| bool | readStatus (boost::system::error_code &ec, std::string path="") |
| bool | writeStatus (boost::system::error_code &ec, std::string path="") |
| dpyStatus::Result | curRfsStatus () |
| dpyStatus::Result | altRfsStatus () |
| dpyStatus::Result | curKernelStatus () |
| dpyStatus::Result | altKernelStatus () |
| void | setCurRFSStatus (dpyStatus::Result status) |
| void | setAltRFSStatus (dpyStatus::Result status) |
| void | setCurKernelStatus (dpyStatus::Result status) |
| void | setAltKernelStatus (dpyStatus::Result status) |
| void | repairActiveRFS () |
| void | repairActiveKernel () |
| void | changeActiveRFS () |
| void | changeActiveKernel () |
| int | usedRFS () const |
| int | activeRFS () const |
| int | alternativeRFS () |
| int | usedKernel () const |
| int | activeKernel () const |
| int | alternativeKernel () |
Static Public Member Functions | |
| static Status * | getInstance () |
Protected Member Functions | |
| Status () | |
Constructor & Destructor Documentation
|
explicitprotected |
Constructor
Member Function Documentation
| int activeKernel | ( | ) | const |
Method for getting current configurated RFS
- Returns
- 1 or 2
| int activeRFS | ( | ) | const |
Method for getting current configurated RFS
- Returns
- 1 or 2
| int alternativeKernel | ( | ) |
Method for getting alternative kernel
- Returns
- 1 or 2
| int alternativeRFS | ( | ) |
Method for getting alternative RFS
- Returns
- 1 or 2
| int usedKernel | ( | ) | const |
Method for getting current used kernel
- Returns
- 1 or 2
| int usedRFS | ( | ) | const |
Method for getting current used RFS
- Returns
- 1 or 2
