#include <csbuild-main.h>
Inheritance diagram for csbuild::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_build () |
| Build packages. | |
| 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 35 of file csbuild-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 39 of file csbuild-main.h.
| main::main | ( | options::ptr & | options | ) |
| main::~main | ( | ) | [virtual] |
The destructor.
Reimplemented from schroot_base::main.
Definition at line 79 of file csbuild-main.cc.
| void main::action_build | ( | ) | [virtual] |
Build packages.
Definition at line 84 of file csbuild-main.cc.
Referenced by run_impl().
Here is the caller graph for this function:

| int main::run_impl | ( | ) | [virtual] |
Run the program.
Implements schroot_base::main.
Definition at line 89 of file csbuild-main.cc.
References action_build(), csbuild::options::ACTION_BUILD, schroot_base::main::action_help(), schroot_base::options::ACTION_HELP, schroot_base::main::action_version(), and schroot_base::options::ACTION_VERSION.
1.5.2