libzypp  17.14.0
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/Pathname.h"
18 #include "zypp/base/Flags.h"
19 
21 namespace zypp
22 {
23  namespace misc
25  {
26 
34  {
35  LS_READONLY = (1 << 0),
36  LS_NOREFRESH = (1 << 1)
37  };
38 
41 
51  void defaultLoadSystem( const Pathname & sysRoot_r = "/", LoadSystemFlags flags_r = LoadSystemFlags() );
52 
54  inline void defaultLoadSystem( LoadSystemFlags flags_r )
55  { defaultLoadSystem( "/", flags_r ); }
56 
58  } // namespace misc
61 } // namespace zypp
63 #endif // ZYPP_MISC_DEFAULTLOADSYSTEM_H
LoadSystemFlag
Bits for tuning defaultLoadSystem.
#define ZYPP_DECLARE_FLAGS_AND_OPERATORS(Name, Enum)
Definition: Flags.h:189
void defaultLoadSystem(const Pathname &sysRoot_r, LoadSystemFlags flags_r)
Create the ZYpp instance and load target and enabled repositories.
// Don't refresh existing repos.
// Create readonly ZYpp instance.
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1