OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_NACL_LOADER_NONSFI_ABI_CONVERSION_H_ | 5 #ifndef COMPONENTS_NACL_LOADER_NONSFI_ABI_CONVERSION_H_ |
6 #define COMPONENTS_NACL_LOADER_NONSFI_ABI_CONVERSION_H_ | 6 #define COMPONENTS_NACL_LOADER_NONSFI_ABI_CONVERSION_H_ |
7 | 7 |
8 struct stat; | 8 struct stat; |
9 struct timespec; | |
9 struct nacl_abi_stat; | 10 struct nacl_abi_stat; |
11 struct nacl_abi_timespec; | |
10 | 12 |
11 namespace nacl { | 13 namespace nacl { |
12 namespace nonsfi { | 14 namespace nonsfi { |
13 | 15 |
16 // Converts the timespec struct from NaCl's to host's ABI. | |
17 void NaClAbiTimeSpecToTimeSpec(const struct nacl_abi_timespec& nacl_timespec, | |
Mark Seaborn
2014/01/15 19:49:28
You might consider inlining these two functions, s
hidehiko
2014/01/16 05:30:12
Personally, I like the current style to keep the h
Mark Seaborn
2014/01/16 19:14:13
That's fine; it was only a suggestion.
| |
18 struct timespec* host_timespec); | |
19 | |
20 // Converts the timespec struct from host's to NaCl's ABI. | |
21 void TimeSpecToNaClAbiTimeSpec(const struct timespec& host_timespec, | |
22 struct nacl_abi_timespec* nacl_timespec); | |
23 | |
24 | |
14 // Converts the stat struct from host's to NaCl's ABI. | 25 // Converts the stat struct from host's to NaCl's ABI. |
15 void StatToNaClAbiStat( | 26 void StatToNaClAbiStat( |
16 const struct stat& host_stat, struct nacl_abi_stat* nacl_stat); | 27 const struct stat& host_stat, struct nacl_abi_stat* nacl_stat); |
17 | 28 |
18 } // namespace nonsfi | 29 } // namespace nonsfi |
19 } // namespace nacl | 30 } // namespace nacl |
20 | 31 |
21 #endif // COMPONENTS_NACL_LOADER_NONSFI_ABI_CONVERSION_H_ | 32 #endif // COMPONENTS_NACL_LOADER_NONSFI_ABI_CONVERSION_H_ |
OLD | NEW |