mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#ifndef RUNTIME_BIN_EMBEDDED_DART_IO_H_
|
|
#define RUNTIME_BIN_EMBEDDED_DART_IO_H_
|
|
|
|
namespace dart {
|
|
namespace bin {
|
|
|
|
// Bootstraps 'dart:io'.
|
|
void BootstrapDartIo();
|
|
|
|
// Lets dart:io know where the system temporary directory is located.
|
|
// Currently only wired up on Android.
|
|
void SetSystemTempDirectory(const char* system_temp);
|
|
|
|
// Tells the system whether to capture Stdout events.
|
|
void SetCaptureStdout(bool value);
|
|
|
|
// Tells the system whether to capture Stderr events.
|
|
void SetCaptureStderr(bool value);
|
|
|
|
// Should Stdout events be captured?
|
|
bool ShouldCaptureStdout();
|
|
|
|
// Should Stderr events be captured?
|
|
bool ShouldCaptureStderr();
|
|
|
|
// Set the executable name used by Platform.executable.
|
|
void SetExecutableName(const char* executable_name);
|
|
|
|
// Set the arguments used by Platform.executableArguments.
|
|
void SetExecutableArguments(int script_index, char** argv);
|
|
|
|
} // namespace bin
|
|
} // namespace dart
|
|
|
|
#endif // RUNTIME_BIN_EMBEDDED_DART_IO_H_
|