blob: b1704771e2970ac77d27c2e7a937437910393cf1 [file] [log] [blame]
// Copyright 2017 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.
// Unlike the Libc module map, this one does not explictly "export *" any
// symbols up the parent module requiring that you explictly import what
// modules you are using. For that reason module names in this file can break
// imports in langauges that can refernece them directly.
module Zircon [system] [extern_c] {
use Libc
textual header "assert.h"
textual header "compiler.h"
module crashlogger [extern_c] {
header "crashlogger.h"
}
module errors [extern_c] {
header "errors.h"
}
module ktrace [extern_c] {
textual header "ktrace-def.h"
header "ktrace.h"
}
module listnode [extern_c] {
header "listnode.h"
}
module mtrace [extern_c] {
header "mtrace.h"
}
module pixelformat [extern_c] {
header "pixelformat.h"
}
module processargs [extern_c] {
header "processargs.h"
}
module process [extern_c] {
header "process.h"
}
module rights [extern_c] {
header "rights.h"
}
module syscalls [extern_c] {
// This module refers to both the "syscalls.h" in the root and all of the
// headers in the "syscalls" folder.
module debug {
header "syscalls/debug.h"
// explictly require you include this if you use it.
}
module exception {
header "syscalls/exception.h"
export *
}
module hypervisor {
header "syscalls/hypervisor.h"
export *
}
module log {
header "syscalls/log.h"
export *
}
module object {
header "syscalls/object.h"
export *
}
module pci {
header "syscalls/pci.h"
export *
}
module policy {
header "syscalls/policy.h"
export *
}
module port {
header "syscalls/port.h"
export *
}
module resource {
header "syscalls/resource.h"
export *
}
module profile {
header "syscalls/profile.h"
export *
}
module smc {
header "syscalls/smc.h"
export *
}
module system {
header "syscalls/system.h"
export *
}
module types {
header "syscalls/types.h"
export *
}
header "syscalls.h"
}
module tls [extern_c] {
header "tls.h"
}
module types [extern_c] {
header "types.h"
}
module boot [extern_c] {
module bootdata {
header "boot/bootdata.h"
}
module multiboot {
header "boot/multiboot.h"
}
module netboot {
header "boot/netboot.h"
}
}
module device [extern_c] {
umbrella "device"
module audio {
header "device/audio.h"
export *
}
module block {
header "device/block.h"
export *
}
module bt_hci {
header "device/bt-hci.h"
export *
}
module camera_proto {
requires cplusplus
header "device/camera-proto.h"
export *
}
module camera {
header "device/camera.h"
export *
}
module device {
header "device/device.h"
export *
}
module display {
header "device/display.h"
export *
}
module dmctl {
header "device/dmctl.h"
export *
}
module ethernet {
header "device/ethernet.h"
export *
}
module ethertap {
header "device/ethertap.h"
export *
}
module hidctl {
header "device/hidctl.h"
export *
}
module i2c {
header "device/i2c.h"
export *
}
module input {
header "device/input.h"
export *
}
module intel_hda {
header "device/intel-hda.h"
export *
}
module ioctl {
header "device/ioctl.h"
export *
}
module ioctl_wrapper {
header "device/ioctl-wrapper.h"
export *
}
module ktrace {
header "device/ktrace.h"
export *
}
module media_codec {
header "device/media-codec.h"
export *
}
module midi {
header "device/midi.h"
export *
}
module power {
header "device/power.h"
export *
}
module pty {
header "device/pty.h"
export *
}
module ramdisk {
header "device/ramdisk.h"
export *
}
module rtc {
header "device/rtc.h"
export *
}
module sysinfo {
header "device/sysinfo.h"
export *
}
module test {
header "device/test.h"
export *
}
module thermal {
header "device/thermal.h"
export *
}
module tpm {
header "device/tpm.h"
export *
}
module usb_device {
header "device/usb-device.h"
export *
}
module usb {
header "device/usb.h"
export *
}
module vfs {
header "device/vfs.h"
export *
}
export *
}
module driver [extern_c] {
// glob each header into it's own module decl
umbrella "driver"
explicit module * {
export *
}
}
module hw [extern_c] {
// glob each header into it's own module decl
umbrella "hw"
explicit module * {
export *
}
}
module misc [extern_c] {
// glob each header into it's own module decl
umbrella "misc"
explicit module * {
export *
}
}
}