blob: 6159cfa3181b431fece8a6832d2b933aa8600eaf [file] [log] [blame]
Sol Boucher69b88bf2015-02-26 11:47:19 -08001/*
2 * fmap_from_fmd.h, tool to distill flashmap descriptors into raw FMAP sections
3 *
4 * Copyright (C) 2015 Google, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Sol Boucher69b88bf2015-02-26 11:47:19 -080014 */
15
16#ifndef FMAP_FROM_FMD_H_
17#define FMAP_FROM_FMD_H_
18
19#include "flashmap/fmap.h"
20#include "fmd.h"
21
22/**
23 * @param desc The descriptor tree serving as a data source
24 * @return The FMAP section, which is also owned by the caller and must
25 * later be released with a call to fmap_destroy()
26 */
27struct fmap *fmap_from_fmd(const struct flashmap_descriptor *desc);
28
29#endif