Loading...
Searching...
No Matches
mock.h
1/*
2 * SPDX-FileCopyrightText: 2020 Koen Zandberg
3 * SPDX-FileCopyrightText: 2020 Inria
4 * SPDX-FileCopyrightText: 2026 TU Dresden
5 * SPDX-License-Identifier: LGPL-2.1-only
6 */
7
8#pragma once
9
26
27#include <sys/types.h>
28
29#include "suit.h"
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
38typedef struct {
39 const uint8_t *buf;
40 size_t len;
42
43#ifdef DOXYGEN
53#define SUIT_TRANSPORT_MOCK_APP_MANIFEST
54#endif
55
56#if defined(SUIT_TRANSPORT_MOCK_APP_MANIFEST) || defined(DOXYGEN)
71ssize_t suit_transport_mock_get_manifest(uint8_t *buf, size_t buf_len);
72#else
73#define suit_transport_mock_get_manifest(buf, buf_len) 0U
74#endif
75
88
89#ifdef __cplusplus
90}
91#endif
92
ssize_t suit_transport_mock_get_manifest(uint8_t *buf, size_t buf_len)
Get mock manifest from an application.
int suit_transport_mock_fetch(const suit_manifest_t *manifest)
'fetch' a payload
SUIT manifest struct.
Definition suit.h:231
const uint8_t * buf
Ptr to the memory space containing the payload.
Definition mock.h:39
size_t len
Length of the payload in bytes.
Definition mock.h:40