![]() |
![]() |
![]() |
Schroot Reference Manual |
---|
SchrootOptionsSchrootOptions — schroot options parser |
SchrootOptions; SchrootOptions* schroot_options_new (void); SchrootOptions* schroot_options_parse (int argc, char *argv[]); void schroot_options_free (SchrootOptions *options);
typedef struct { char **chroots; char **command; char *user; gboolean preserve; gboolean quiet; gboolean verbose; gboolean list; gboolean info; gboolean all; gboolean all_chroots; gboolean all_sessions; gboolean load_chroots; gboolean load_sessions; gboolean version; SbuildSessionOperation session_operation; gboolean session_force; } SchrootOptions;
This structure contains the options obtained from the command-line options.
char **chroots ; |
The chroots to use. |
char **command ; |
The command to run. |
char *user ; |
The user to run as. |
gboolean preserve ; |
Preserve the user's environment? |
gboolean quiet ; |
Quiet messages? |
gboolean verbose ; |
Verbose messages? |
gboolean list ; |
List chroots? |
gboolean info ; |
Print chroot information? |
gboolean all ; |
Use all chroots and sessions? |
gboolean all_chroots ; |
Use all chroots? |
gboolean all_sessions ; |
Use all sessions? |
gboolean load_chroots ; |
Load chroots? |
gboolean load_sessions ; |
Load sessions? |
gboolean version ; |
Print version? |
SbuildSessionOperation session_operation ; |
Session operation to perform. |
gboolean session_force ; |
Force session operation? |
SchrootOptions* schroot_options_new (void);
Parse command-line options.
Returns : | a structure containing the options. |
SchrootOptions* schroot_options_parse (int argc, char *argv[]);
Parse command-line options.
argc : |
the number of arguments |
argv : |
argument vector |
Returns : | a structure containing the options. |
void schroot_options_free (SchrootOptions *options);
Free an SchrootOptions object.
options : |
the SchrootOptions to free |
<< Advisory Locking |