libzypp 17.38.15

PoolDefines.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_SAT_DETAIL_POOLDEFINES_H
13#define ZYPP_SAT_DETAIL_POOLDEFINES_H
14
15#include <zypp-core/Globals.h>
16
17 extern "C"
18{
19 // Those s_Type names are exposed as sat::detail::CType below!
20 struct s_Dataiterator;
21 struct s_Datamatcher;
22 struct s_Map;
23 struct s_Pool;
24 struct s_Queue;
25 struct s_Repo;
26 struct s_Solvable;
27 struct s_Solver;
28 struct s_Transaction;
29}
30
31 namespace zypp::sat::detail {
32
33 using CDataiterator = ::s_Dataiterator;
34 using CDatamatcher = ::s_Datamatcher;
35 using CMap = ::s_Map;
36 using CPool = ::s_Pool;
37 using CQueue = ::s_Queue;
38 using CRepo = ::s_Repo;
39 using CSolvable = ::s_Solvable;
40 using CSolver = ::s_Solver;
41 using CTransaction = ::s_Transaction;
42
44 using IdType = int;
45 ZYPP_DEFINE_GLOBAL_CONSTANT( IdType, noId, 0 )
46 ZYPP_DEFINE_GLOBAL_CONSTANT( IdType, emptyId, 1 )
47
51 ZYPP_DEFINE_GLOBAL_CONSTANT( IdType, solvablePrereqMarker, 15 )
52 ZYPP_DEFINE_GLOBAL_CONSTANT( IdType, solvableFileMarker, 16 )
53
54 ZYPP_DEFINE_GLOBAL_CONSTANT( IdType, namespaceModalias, 18 )
55 ZYPP_DEFINE_GLOBAL_CONSTANT( IdType, namespaceLanguage, 20 )
56 ZYPP_DEFINE_GLOBAL_CONSTANT( IdType, namespaceFilesystem, 21 )
57
59 inline bool isDepMarkerId( IdType id_r )
60 { return( id_r == solvablePrereqMarker || id_r == solvableFileMarker ); }
61
65 using SolvableIdType = unsigned int;
66 using size_type = SolvableIdType;
68 ZYPP_DEFINE_GLOBAL_CONSTANT( SolvableIdType, noSolvableId, 0 )
70 ZYPP_DEFINE_GLOBAL_CONSTANT( SolvableIdType, systemSolvableId, 1 )
71
73 using RepoIdType = CRepo *;
75 ZYPP_DEFINE_GLOBAL_CONSTANT( RepoIdType, noRepoId, 0 )
76
77}
78
79#endif
Globals.h
Provides API related macros.
ZYPP_DEFINE_GLOBAL_CONSTANT
#define ZYPP_DEFINE_GLOBAL_CONSTANT(type, name,...)
Defines a namespace-scope constant with the correct linkage for the build mode.
Definition Globals.h:151
zypp::sat::detail
Definition PoolImpl.cc:73
zypp::sat::detail::size_type
SolvableIdType size_type
Definition PoolDefines.h:66
zypp::sat::detail::CMap
::s_Map CMap
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:35
zypp::sat::detail::SolvableIdType
unsigned int SolvableIdType
Id type to connect Solvable and sat-solvable.
Definition PoolDefines.h:65
zypp::sat::detail::CRepo
::s_Repo CRepo
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:38
zypp::sat::detail::IdType
int IdType
Generic Id type.
Definition PoolDefines.h:44
zypp::sat::detail::CQueue
::s_Queue CQueue
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:37
zypp::sat::detail::isDepMarkerId
bool isDepMarkerId(IdType id_r)
Internal ids satlib includes in dependencies.
Definition PoolDefines.h:59
zypp::sat::detail::CSolvable
::s_Solvable CSolvable
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:39
zypp::sat::detail::CSolver
::s_Solver CSolver
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:40
zypp::sat::detail::CPool
::s_Pool CPool
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:36
zypp::sat::detail::CDatamatcher
::s_Datamatcher CDatamatcher
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:34
zypp::sat::detail::CDataiterator
::s_Dataiterator CDataiterator
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:33
zypp::sat::detail::CTransaction
::s_Transaction CTransaction
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:41
zypp::sat::detail::RepoIdType
CRepo * RepoIdType
Id to denote Solvable::noSolvable.
Definition PoolDefines.h:73