#include <schroot-releaselock-main.h>
Public Types | |
enum | error_code { DEVICE_NOTBLOCK, DEVICE_OWNED, DEVICE_RELEASE, DEVICE_STAT } |
Error codes. More... | |
typedef sbuild::custom_error < error_code > | error |
Exception type. | |
Public Member Functions | |
main (options::ptr &options) | |
The constructor. | |
virtual | ~main () |
The destructor. | |
virtual void | action_releaselock () |
Release lock. | |
virtual int | run_impl () |
Run the program. | |
Public Attributes | |
options::ptr | opts |
The program options. |
This class is used to "run" schroot.
Exception type.
main::main | ( | options::ptr & | options | ) |
main::~main | ( | ) | [virtual] |
void main::action_releaselock | ( | ) | [virtual] |
Release lock.
References DEVICE_NOTBLOCK, DEVICE_OWNED, DEVICE_RELEASE, DEVICE_STAT, sbuild::log_warning(), and opts.
Referenced by run_impl().
int main::run_impl | ( | ) | [virtual] |
Run the program.
Implements schroot_base::main.
References schroot_base::main::action_help(), schroot_base::options::ACTION_HELP, action_releaselock(), schroot_releaselock::options::ACTION_RELEASELOCK, schroot_base::main::action_version(), schroot_base::options::ACTION_VERSION, and opts.