libzypp 17.38.14
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
17extern "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
31namespace 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;
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;
70 ZYPP_DEFINE_GLOBAL_CONSTANT( SolvableIdType, systemSolvableId, 1 )
71
73 using RepoIdType = CRepo *;
76
77}
78
79#endif
Provides API related macros.
#define ZYPP_DEFINE_GLOBAL_CONSTANT(type, name,...)
Defines a namespace-scope constant with the correct linkage for the build mode.
Definition Globals.h:151
SolvableIdType size_type
Definition PoolDefines.h:66
::s_Map CMap
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:35
unsigned int SolvableIdType
Id type to connect Solvable and sat-solvable.
Definition PoolDefines.h:65
::s_Repo CRepo
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:38
int IdType
Generic Id type.
Definition PoolDefines.h:44
::s_Queue CQueue
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:37
bool isDepMarkerId(IdType id_r)
Internal ids satlib includes in dependencies.
Definition PoolDefines.h:59
::s_Solvable CSolvable
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:39
::s_Solver CSolver
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:40
::s_Pool CPool
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:36
::s_Datamatcher CDatamatcher
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:34
::s_Dataiterator CDataiterator
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:33
::s_Transaction CTransaction
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:41
CRepo * RepoIdType
Id to denote Solvable::noSolvable.
Definition PoolDefines.h:73