#include <schroot-releaselock-main.h>
Inheritance diagram for schroot_releaselock::main:


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.
Definition at line 34 of file schroot-releaselock-main.h.
Error codes.
| DEVICE_NOTBLOCK | File is not a block device. |
| DEVICE_OWNED | Failed to release device lock (lock held by PID). |
| DEVICE_RELEASE | Failed to release device lock. |
| DEVICE_STAT | Failed to stat device. |
Definition at line 38 of file schroot-releaselock-main.h.
| main::main | ( | options::ptr & | options | ) |
The constructor.
| options | the command-line options to use. |
Definition at line 68 of file schroot-releaselock-main.cc.
| main::~main | ( | ) | [virtual] |
The destructor.
Reimplemented from schroot_base::main.
Definition at line 78 of file schroot-releaselock-main.cc.
| void main::action_releaselock | ( | ) | [virtual] |
Release lock.
Definition at line 83 of file schroot-releaselock-main.cc.
References _, DEVICE_NOTBLOCK, DEVICE_OWNED, DEVICE_RELEASE, DEVICE_STAT, sbuild::log_warning(), and opts.
Referenced by run_impl().
Here is the call graph for this function:

Here is the caller graph for this function:

| int main::run_impl | ( | ) | [virtual] |
Run the program.
Implements schroot_base::main.
Definition at line 107 of file schroot-releaselock-main.cc.
References schroot_base::main::action_help(), schroot_releaselock::options::ACTION_HELP, action_releaselock(), schroot_releaselock::options::ACTION_RELEASELOCK, schroot_base::main::action_version(), and schroot_releaselock::options::ACTION_VERSION.
Here is the call graph for this function:

The program options.
Definition at line 77 of file schroot-releaselock-main.h.
Referenced by action_releaselock().
1.5.1