libzypp 17.38.6
namespaceprovider.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8----------------------------------------------------------------------*/
9#include "namespaceprovider.h"
10
11#include <zypp/ng/sat/pool.h>
13
14namespace zyppng::sat {
15
17 {
18 return false;
19 }
20
22 {
23 _pool = &pool;
24 }
25
26 void NamespaceProvider::notifyDirty( PoolInvalidation invalidationLevel, std::initializer_list<std::string_view> reasons )
27 {
28 if (!_pool) {
29 ERR << "NamespaceProvider not attached, can not send the invalidation request" << std::endl;
30 return;
31 }
32 _pool->setDirty ( invalidationLevel, std::move(reasons) );
33 }
34
35}
#define ERR
Definition Logger.h:105
virtual bool isSatisfied(detail::IdType value) const
Check if a specific value satisfies this namespace condition.
void notifyDirty(PoolInvalidation invalidationLevel, std::initializer_list< std::string_view > reasons)
Notify the attached registry/pool that data has changed.
virtual void attach(Pool &pool)
Orchestrator for a libsolv pool instance.
Definition pool.h:37
zypp::sat::detail::IdType IdType
This file contains private API, this might break at any time between releases.
PoolInvalidation
Defines the scope of an invalidation request for the Pool.