| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROMEOS_BINDER_CONSTANTS_H_ | 5 #ifndef CHROMEOS_BINDER_CONSTANTS_H_ |
| 6 #define CHROMEOS_BINDER_CONSTANTS_H_ | 6 #define CHROMEOS_BINDER_CONSTANTS_H_ |
| 7 | 7 |
| 8 #define BINDER_PACK_CHARS(c1, c2, c3, c4) \ | 8 #define BINDER_PACK_CHARS(c1, c2, c3, c4) \ |
| 9 (((c1) << 24) | ((c2) << 16) | ((c3) << 8) | (c4)) | 9 (((c1) << 24) | ((c2) << 16) | ((c3) << 8) | (c4)) |
| 10 | 10 |
| 11 namespace binder { | 11 namespace binder { |
| 12 | 12 |
| 13 // Context manager's handle is always 0. | 13 // Context manager's handle is always 0. |
| 14 const uint32 kContextManagerHandle = 0; | 14 const uint32_t kContextManagerHandle = 0; |
| 15 | 15 |
| 16 // Transaction code constants. | 16 // Transaction code constants. |
| 17 const uint32 kFirstTransactionCode = 0x00000001; | 17 const uint32_t kFirstTransactionCode = 0x00000001; |
| 18 const uint32 kLastTransactionCode = 0x00ffffff; | 18 const uint32_t kLastTransactionCode = 0x00ffffff; |
| 19 const uint32 kPingTransactionCode = BINDER_PACK_CHARS('_', 'P', 'N', 'G'); | 19 const uint32_t kPingTransactionCode = BINDER_PACK_CHARS('_', 'P', 'N', 'G'); |
| 20 | 20 |
| 21 } // namespace binder | 21 } // namespace binder |
| 22 | 22 |
| 23 #endif // CHROMEOS_BINDER_CONSTANTS_H_ | 23 #endif // CHROMEOS_BINDER_CONSTANTS_H_ |
| OLD | NEW |