libzypp  17.38.17
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 #include <zypp/ZYppFactory.h>
20 
22 namespace zypp
23 {
24  namespace misc
26  {
27 
35  {
36  LS_READONLY = (1 << 0),
37  LS_NOREFRESH = (1 << 1),
38  LS_NOREPOS = (1 << 2),
39  };
40 
43 
53  ZYpp::Ptr defaultLoadSystem( const Pathname & sysRoot_r = "/", LoadSystemFlags flags_r = LoadSystemFlags() ) ZYPP_API;
54 
56  inline ZYpp::Ptr defaultLoadSystem( LoadSystemFlags flags_r )
57  { return defaultLoadSystem( "/", flags_r ); }
58 
60  } // namespace misc
63 } // namespace zypp
65 #endif // ZYPP_MISC_DEFAULTLOADSYSTEM_H
LoadSystemFlag
Bits for tuning defaultLoadSystem.
ZYpp::Ptr defaultLoadSystem(const Pathname &sysRoot_r, LoadSystemFlags flags_r)
Create the ZYpp instance and load target and enabled repositories.
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition: Arch.h:173
shared_ptr< ZYpp > Ptr
Definition: ZYpp.h:62
ZYPP_DECLARE_FLAGS_AND_OPERATORS(LoadSystemFlags, LoadSystemFlag)
relates: LoadSystemFlag Type-safe way of storing OR-combinations.
// Don&#39;t refresh existing repos.
// Create readonly ZYpp instance.
// Don&#39;t loag existing repos (just Target).
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1