blob: 70dfc5ccadf3286c848a78a5049647eb974a88ba [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 <magenta/types.h>
#include <stddef.h>
#include <stdint.h>
struct bootfs {
mx_handle_t vmo;
const void* contents;
size_t len;
};
void bootfs_mount(mx_handle_t vmar, mx_handle_t log, mx_handle_t vmo, struct bootfs *fs);
void bootfs_unmount(mx_handle_t vmar, mx_handle_t log, struct bootfs *fs);
mx_handle_t bootfs_open(mx_handle_t log, const char* purpose,
struct bootfs *fs, const char* filename);
#pragma GCC visibility pop