summaryrefslogtreecommitdiffstats
path: root/mojo/nacl/mojo_syscall.h
blob: 71822b58715a9d9a752ba80f0a1bbff667f331c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MOJO_NACL_MOJO_SYSCALL_H_
#define MOJO_NACL_MOJO_SYSCALL_H_

// Injects a NaClDesc for Mojo support. This provides the implementation of the
// Mojo system API outside the NaCl sandbox.
void InjectMojo(struct NaClApp* nap);

// Injects a "disabled" NaClDesc for Mojo support. This is to make debugging
// more straightforward in the case where Mojo is not enabled for NaCl plugins.
void InjectDisabledMojo(struct NaClApp* nap);

#endif // MOJO_NACL_MOJO_SYSCALL_H_