Aktualizr
C++ SOTA Client
include
libaktualizr
secondaryinterface.h
1
#ifndef UPTANE_SECONDARYINTERFACE_H
2
#define UPTANE_SECONDARYINTERFACE_H
3
4
#include <string>
5
6
#include "libaktualizr/secondary_provider.h"
7
#include "
libaktualizr/types.h
"
8
9
class
SecondaryInterface
{
10
public
:
11
using
Ptr = std::shared_ptr<SecondaryInterface>;
12
13
virtual
void
init(std::shared_ptr<SecondaryProvider> secondary_provider_in) = 0;
14
virtual
std::string Type()
const
= 0;
15
virtual
Uptane::EcuSerial
getSerial()
const
= 0;
16
virtual
Uptane::HardwareIdentifier
getHwId()
const
= 0;
17
virtual
PublicKey
getPublicKey()
const
= 0;
18
19
virtual
Uptane::Manifest
getManifest()
const
= 0;
20
virtual
data::InstallationResult
putMetadata(
const
Uptane::Target
& target) = 0;
21
virtual
bool
ping()
const
= 0;
22
23
virtual
int32_t getRootVersion(
bool
director)
const
= 0;
24
virtual
data::InstallationResult
putRoot(
const
std::string& root,
bool
director) = 0;
25
26
virtual
data::InstallationResult
sendFirmware(
const
Uptane::Target
& target) = 0;
27
virtual
data::InstallationResult
install(
const
Uptane::Target
& target) = 0;
28
29
virtual
~
SecondaryInterface
() =
default
;
30
};
31
32
#endif // UPTANE_SECONDARYINTERFACE_H
types.h
data::InstallationResult
Definition:
types.h:277
Uptane::HardwareIdentifier
Definition:
types.h:315
Uptane::EcuSerial
Definition:
types.h:346
PublicKey
Definition:
types.h:119
Uptane::Target
Definition:
types.h:379
Uptane::Manifest
Definition:
types.h:448
SecondaryInterface
Definition:
secondaryinterface.h:9
Generated by
1.8.17