| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 MOJO_PUBLIC_SYSTEM_CORE_H_ | 5 #ifndef MOJO_PUBLIC_C_SYSTEM_CORE_H_ |
| 6 #define MOJO_PUBLIC_SYSTEM_CORE_H_ | 6 #define MOJO_PUBLIC_C_SYSTEM_CORE_H_ |
| 7 | 7 |
| 8 // Note: This header should be compilable as C. | 8 // Note: This header should be compilable as C. |
| 9 | 9 |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| 11 | 11 |
| 12 #include "mojo/public/system/macros.h" | 12 #include "mojo/public/c/system/macros.h" |
| 13 #include "mojo/public/system/system_export.h" | 13 #include "mojo/public/c/system/system_export.h" |
| 14 | 14 |
| 15 // Types/constants ------------------------------------------------------------- | 15 // Types/constants ------------------------------------------------------------- |
| 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|: Used to specify time ticks. Value is in microseconds. | 20 // |MojoTimeTicks|: Used to specify time ticks. Value is in microseconds. |
| 21 | 21 |
| 22 typedef int64_t MojoTimeTicks; | 22 typedef int64_t MojoTimeTicks; |
| 23 | 23 |
| (...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 MojoMapBufferFlags flags); | 819 MojoMapBufferFlags flags); |
| 820 | 820 |
| 821 // Unmap a buffer pointer that was mapped by |MojoMapBuffer()|. | 821 // Unmap a buffer pointer that was mapped by |MojoMapBuffer()|. |
| 822 // TODO(vtl): More. | 822 // TODO(vtl): More. |
| 823 MOJO_SYSTEM_EXPORT MojoResult MojoUnmapBuffer(void* buffer); // In. | 823 MOJO_SYSTEM_EXPORT MojoResult MojoUnmapBuffer(void* buffer); // In. |
| 824 | 824 |
| 825 #ifdef __cplusplus | 825 #ifdef __cplusplus |
| 826 } // extern "C" | 826 } // extern "C" |
| 827 #endif | 827 #endif |
| 828 | 828 |
| 829 #endif // MOJO_PUBLIC_SYSTEM_CORE_H_ | 829 #endif // MOJO_PUBLIC_C_SYSTEM_CORE_H_ |
| OLD | NEW |