libzypp 17.38.3
checksumwf.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9#ifndef ZYPP_NG_CHECKSUMWORKFLOW_INCLUDED
10#define ZYPP_NG_CHECKSUMWORKFLOW_INCLUDED
11
12#include <zypp-core/ng/async/task.h>
13#include <zypp-core/ng/pipelines/Expected>
14#include <functional>
15
16#include <zypp/ng/context.h>
18
19namespace zypp {
20 namespace filesystem {
21 class Pathname;
22 }
24 class CheckSum;
25}
26
27namespace zyppng {
28
29 class ProvideRes;
31
32 namespace CheckSumWorkflow {
33 MaybeAwaitable<expected<void>> verifyChecksum ( ContextRef zyppCtx, zypp::CheckSum checksum, zypp::Pathname file );
34
39 std::function< MaybeAwaitable<expected<ProvideRes>>( ProvideRes && ) > checksumFileChecker( ContextRef zyppCtx, zypp::CheckSum checksum );
40
41 }
42}
43
44
45
46#endif
Types and functions for filesystem operations.
Definition Glob.cc:24
Easy-to use interface to the ZYPP dependency resolver.
MaybeAwaitable< expected< void > > verifyChecksum(ContextRef zyppCtx, zypp::CheckSum checksum, zypp::filesystem::Pathname file)
std::function< MaybeAwaitable< expected< ProvideRes > >(ProvideRes &&)> checksumFileChecker(ContextRef zyppCtx, zypp::CheckSum checksum)
Provide::Res ProvideRes
Definition provide.h:154
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)
Definition zyppglobal.h:126