libzypp: zypp/misc/DefaultLoadSystem.h Source File

libzypp 17.38.14

DefaultLoadSystem.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_MISC_DEFAULTLOADSYSTEM_H
13#define ZYPP_MISC_DEFAULTLOADSYSTEM_H
14
15#include <iosfwd>
16
17#include <zypp-core/Pathname.h>
18#include <zypp-core/base/Flags.h>
19
21namespace zypp
22{
24 namespace misc
25 {
26
33 enum LoadSystemFlag
34 {
35 LS_READONLY = (1 << 0),
36 LS_NOREFRESH = (1 << 1),
37 LS_NOREPOS = (1 << 2),
38 };
39
41 ZYPP_DECLARE_FLAGS_AND_OPERATORS( LoadSystemFlags, LoadSystemFlag );
42
52 void defaultLoadSystem( const Pathname & sysRoot_r = "/", LoadSystemFlags flags_r = LoadSystemFlags() ) ZYPP_API;
53
55 inline void defaultLoadSystem( LoadSystemFlags flags_r )
56 { defaultLoadSystem( "/", flags_r ); }
57
59 } // namespace misc
62} // namespace zypp
64#endif // ZYPP_MISC_DEFAULTLOADSYSTEM_H
Flags.h
Pathname.h
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:48
zypp::misc
Definition DefaultLoadSystem.cc:35
zypp::misc::LoadSystemFlag
LoadSystemFlag
Bits for tuning defaultLoadSystem.
Definition DefaultLoadSystem.h:34
zypp::misc::LS_READONLY
@ LS_READONLY
// Create readonly ZYpp instance.
Definition DefaultLoadSystem.h:35
zypp::misc::LS_NOREFRESH
@ LS_NOREFRESH
// Don't refresh existing repos.
Definition DefaultLoadSystem.h:36
zypp::misc::LS_NOREPOS
@ LS_NOREPOS
// Don't loag existing repos (just Target).
Definition DefaultLoadSystem.h:37
zypp::misc::ZYPP_DECLARE_FLAGS_AND_OPERATORS
ZYPP_DECLARE_FLAGS_AND_OPERATORS(LoadSystemFlags, LoadSystemFlag)
relates: LoadSystemFlag Type-safe way of storing OR-combinations.
zypp::misc::defaultLoadSystem
void defaultLoadSystem(const Pathname &sysRoot_r, LoadSystemFlags flags_r)
Create the ZYpp instance and load target and enabled repositories.
Definition DefaultLoadSystem.cc:37
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zypp::ZYPP_API
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition Arch.h:173