mock.h
1 /*
2  * Copyright (C) 2020 Koen Zandberg
3  * 2020 Inria
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
26 #ifndef SUIT_TRANSPORT_MOCK_H
27 #define SUIT_TRANSPORT_MOCK_H
28 
29 #include "suit.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
38 typedef struct {
39  const uint8_t *buf;
40  size_t len;
42 
54 int suit_transport_mock_fetch(const suit_manifest_t *manifest);
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif /* SUIT_TRANSPORT_MOCK_H */
61 
suit_transport_mock_payload_t::len
size_t len
Length of the payload in bytes.
Definition: mock.h:40
suit_transport_mock_fetch
int suit_transport_mock_fetch(const suit_manifest_t *manifest)
'fetch' a payload
suit_transport_mock_payload_t
Mock payload.
Definition: mock.h:38
suit_transport_mock_payload_t::buf
const uint8_t * buf
Ptr to the memory space containing the payload.
Definition: mock.h:39
suit_manifest_t
SUIT manifest struct.
Definition: suit.h:233