Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
mock.h
1
/*
2
* SPDX-FileCopyrightText: 2020 Koen Zandberg
3
* SPDX-FileCopyrightText: 2020 Inria
4
* SPDX-License-Identifier: LGPL-2.1-only
5
*/
6
7
#pragma once
8
26
#include "suit.h"
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
35
typedef
struct
{
36
const
uint8_t *
buf
;
37
size_t
len
;
38
}
suit_transport_mock_payload_t
;
39
51
int
suit_transport_mock_fetch
(
const
suit_manifest_t
*manifest);
52
53
#ifdef __cplusplus
54
}
55
#endif
56
suit_transport_mock_fetch
int suit_transport_mock_fetch(const suit_manifest_t *manifest)
'fetch' a payload
suit_manifest_t
SUIT manifest struct.
Definition:
suit.h:231
suit_transport_mock_payload_t
Mock payload.
Definition:
mock.h:35
suit_transport_mock_payload_t::buf
const uint8_t * buf
Ptr to the memory space containing the payload.
Definition:
mock.h:36
suit_transport_mock_payload_t::len
size_t len
Length of the payload in bytes.
Definition:
mock.h:37
Generated on Mon Nov 24 2025 18:43:15 by
1.9.1