blob: cb727e76b04af3274a8f6a1789578ca0cbb7e95a [file] [log] [blame]
Patrick Georgiea063cb2020-05-08 19:28:13 +02001/* fmap_from_fmd.h, tool to distill flashmap descriptors into raw FMAP sections */
Patrick Georgi7333a112020-05-08 20:48:04 +02002/* SPDX-License-Identifier: GPL-2.0-only */
Sol Boucher69b88bf2015-02-26 11:47:19 -08003
4#ifndef FMAP_FROM_FMD_H_
5#define FMAP_FROM_FMD_H_
6
7#include "flashmap/fmap.h"
8#include "fmd.h"
9
10/**
11 * @param desc The descriptor tree serving as a data source
12 * @return The FMAP section, which is also owned by the caller and must
13 * later be released with a call to fmap_destroy()
14 */
15struct fmap *fmap_from_fmd(const struct flashmap_descriptor *desc);
16
17#endif