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 // This file contains types and constants/macros common to different Mojo system | 5 // This file contains types and constants/macros common to different Mojo system |
6 // APIs. | 6 // APIs. |
7 // | 7 // |
8 // Note: This header should be compilable as C. | 8 // Note: This header should be compilable as C. |
9 | 9 |
10 #ifndef THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_C_SYSTEM_TYPES_H_ | 10 #ifndef MOJO_PUBLIC_C_SYSTEM_TYPES_H_ |
11 #define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_C_SYSTEM_TYPES_H_ | 11 #define MOJO_PUBLIC_C_SYSTEM_TYPES_H_ |
12 | 12 |
13 #include <stdint.h> | 13 #include <stdint.h> |
14 | 14 |
15 #include "third_party/mojo/src/mojo/public/c/system/macros.h" | 15 #include "mojo/public/c/system/macros.h" |
16 | 16 |
17 // TODO(vtl): Notes: Use of undefined flags will lead to undefined behavior | 17 // TODO(vtl): Notes: Use of undefined flags will lead to undefined behavior |
18 // (typically they'll be ignored), not necessarily an error. | 18 // (typically they'll be ignored), not necessarily an error. |
19 | 19 |
20 // |MojoTimeTicks|: A time delta, in microseconds, the meaning of which is | 20 // |MojoTimeTicks|: A time delta, in microseconds, the meaning of which is |
21 // source-dependent. | 21 // source-dependent. |
22 | 22 |
23 typedef int64_t MojoTimeTicks; | 23 typedef int64_t MojoTimeTicks; |
24 | 24 |
25 // |MojoHandle|: Handles to Mojo objects. | 25 // |MojoHandle|: Handles to Mojo objects. |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // Note: This struct is not extensible (and only has 32-bit quantities), so it's | 175 // Note: This struct is not extensible (and only has 32-bit quantities), so it's |
176 // 32-bit-aligned. | 176 // 32-bit-aligned. |
177 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int32_t) == 4, "int32_t has weird alignment"); | 177 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int32_t) == 4, "int32_t has weird alignment"); |
178 struct MOJO_ALIGNAS(4) MojoHandleSignalsState { | 178 struct MOJO_ALIGNAS(4) MojoHandleSignalsState { |
179 MojoHandleSignals satisfied_signals; | 179 MojoHandleSignals satisfied_signals; |
180 MojoHandleSignals satisfiable_signals; | 180 MojoHandleSignals satisfiable_signals; |
181 }; | 181 }; |
182 MOJO_STATIC_ASSERT(sizeof(MojoHandleSignalsState) == 8, | 182 MOJO_STATIC_ASSERT(sizeof(MojoHandleSignalsState) == 8, |
183 "MojoHandleSignalsState has wrong size"); | 183 "MojoHandleSignalsState has wrong size"); |
184 | 184 |
185 #endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_C_SYSTEM_TYPES_H_ | 185 #endif // MOJO_PUBLIC_C_SYSTEM_TYPES_H_ |
OLD | NEW |