blob: ae276c2331bb88913f6480e2d3268654cc77695a [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#pragma GCC visibility push(hidden)
#include <zircon/types.h>
#include <stddef.h>
#include <stdint.h>
struct bootfs {
zx_handle_t vmo;
const void* contents;
size_t len;
};
void bootfs_mount(zx_handle_t vmar, zx_handle_t log, zx_handle_t vmo, struct bootfs *fs);
void bootfs_unmount(zx_handle_t vmar, zx_handle_t log, struct bootfs *fs);
zx_handle_t bootfs_open(zx_handle_t log, const char* purpose,
struct bootfs *fs, const char* filename);
#pragma GCC visibility pop