libzypp 17.38.6
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
15extern "C"
16{
17 // Those s_Type names are exposed as sat::detail::CType below!
18 struct s_Dataiterator;
19 struct s_Datamatcher;
20 struct s_Map;
21 struct s_Pool;
22 struct s_Queue;
23 struct s_Repo;
24 struct s_Solvable;
25 struct s_Solver;
26 struct s_Transaction;
27}
28
29namespace zypp::sat::detail {
30
31 using CDataiterator = ::s_Dataiterator;
32 using CDatamatcher = ::s_Datamatcher;
33 using CMap = ::s_Map;
34 using CPool = ::s_Pool;
35 using CQueue = ::s_Queue;
36 using CRepo = ::s_Repo;
37 using CSolvable = ::s_Solvable;
38 using CSolver = ::s_Solver;
39 using CTransaction = ::s_Transaction;
40
42 using IdType = int;
43 static const IdType noId( 0 );
44 static const IdType emptyId( 1 );
45
49 static const IdType solvablePrereqMarker( 15 );
50 static const IdType solvableFileMarker ( 16 );
51
52 static const IdType namespaceModalias ( 18 );
53 static const IdType namespaceLanguage ( 20 );
54 static const IdType namespaceFilesystem ( 21 );
55
57 inline bool isDepMarkerId( IdType id_r )
58 { return( id_r == solvablePrereqMarker || id_r == solvableFileMarker ); }
59
63 using SolvableIdType = unsigned int;
66 static const SolvableIdType noSolvableId( 0 );
69
71 using RepoIdType = CRepo *;
73 static const RepoIdType noRepoId( 0 );
74
75}
76
77#endif
SolvableIdType size_type
Definition PoolDefines.h:64
static const IdType namespaceLanguage(20)
static const IdType solvablePrereqMarker(15)
Internal ids satlib includes in dependencies.
static const IdType solvableFileMarker(16)
static const IdType emptyId(1)
::s_Map CMap
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:33
unsigned int SolvableIdType
Id type to connect Solvable and sat-solvable.
Definition PoolDefines.h:63
static const IdType namespaceModalias(18)
static const IdType namespaceFilesystem(21)
::s_Repo CRepo
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:36
static const IdType noId(0)
static const SolvableIdType noSolvableId(0)
Id to denote Solvable::noSolvable.
int IdType
Generic Id type.
Definition PoolDefines.h:42
::s_Queue CQueue
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:35
static const RepoIdType noRepoId(0)
Id to denote Repo::noRepository.
bool isDepMarkerId(IdType id_r)
Test for internal ids satlib includes in dependencies.
Definition PoolDefines.h:57
::s_Solvable CSolvable
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:37
::s_Solver CSolver
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:38
::s_Pool CPool
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:34
::s_Datamatcher CDatamatcher
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:32
::s_Dataiterator CDataiterator
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:31
::s_Transaction CTransaction
Wrapped libsolv C data type exposed as backdoor.
Definition PoolDefines.h:39
static const SolvableIdType systemSolvableId(1)
Id to denote the usually hidden Solvable::systemSolvable.
CRepo * RepoIdType
Id type to connect Repo and sat-repo.
Definition PoolDefines.h:71