1// Copyright 2016 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#pragma once
6
7#pragma GCC visibility push(hidden)
8
9#include <zircon/compiler.h>
10#include <zircon/types.h>
11
12__BEGIN_CDECLS
13
14// Decompress bootdata at offset of total size length into a new VMO
15// On failure, errmsg is a human readable error description to provide
16// more precise debug information.
17zx_status_t decompress_bootdata(zx_handle_t vmar, zx_handle_t vmo,
18                                size_t offset, size_t length,
19                                zx_handle_t* out, const char** errmsg);
20
21__END_CDECLS
22
23#pragma GCC visibility pop
24