• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_SHELL_PLATFORM_FUCHSIA_RUNTIME_DART_UTILS_TEMPFS_H_
6 #define FLUTTER_SHELL_PLATFORM_FUCHSIA_RUNTIME_DART_UTILS_TEMPFS_H_
7 
8 #include <lib/fdio/namespace.h>
9 
10 // Utility functions that set up /tmp for the dart_runner and flutter_runner.
11 
12 namespace dart_utils {
13 
14 // Set up a memfs bound to /tmp in the process-wide namespace that has the
15 // lifetime of the process.
16 void SetupRunnerTemp();
17 
18 // Take the memfs mapped into the process-wide namespace for /tmp, and map it to
19 // /tmp in the given namespace.
20 void SetupComponentTemp(fdio_ns_t* ns);
21 
22 }  // namespace dart_utils
23 
24 #endif  // FLUTTER_SHELL_PLATFORM_FUCHSIA_RUNTIME_DART_UTILS_TEMPFS_H_
25