OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "mojo/public/c/bindings/lib/type_descriptor.h" | 5 #include <mojo/bindings/internal/type_descriptor.h> |
6 | 6 |
7 #include <assert.h> | 7 #include <assert.h> |
| 8 #include <mojo/bindings/array.h> |
| 9 #include <mojo/bindings/interface.h> |
| 10 #include <mojo/bindings/internal/util.h> |
| 11 #include <mojo/bindings/map.h> |
| 12 #include <mojo/bindings/struct.h> |
| 13 #include <mojo/bindings/union.h> |
8 #include <stddef.h> | 14 #include <stddef.h> |
9 | 15 |
10 #include "mojo/public/c/bindings/array.h" | |
11 #include "mojo/public/c/bindings/interface.h" | |
12 #include "mojo/public/c/bindings/lib/util.h" | |
13 #include "mojo/public/c/bindings/map.h" | |
14 #include "mojo/public/c/bindings/struct.h" | |
15 #include "mojo/public/c/bindings/union.h" | |
16 | |
17 const struct MojomTypeDescriptorArray g_mojom_string_type_description = { | 16 const struct MojomTypeDescriptorArray g_mojom_string_type_description = { |
18 .elem_type = MOJOM_TYPE_DESCRIPTOR_TYPE_POD, | 17 .elem_type = MOJOM_TYPE_DESCRIPTOR_TYPE_POD, |
19 .elem_descriptor = NULL, | 18 .elem_descriptor = NULL, |
20 .num_elements = 0, | 19 .num_elements = 0, |
21 .elem_num_bits = 8, | 20 .elem_num_bits = 8, |
22 .nullable = false, | 21 .nullable = false, |
23 }; | 22 }; |
24 | 23 |
25 // The encoding of a MojoHandle is an index into an array of Handles. A | 24 // The encoding of a MojoHandle is an index into an array of Handles. A |
26 // null/invalid handle is encoded as index (which is unsigned) "-1", which | 25 // null/invalid handle is encoded as index (which is unsigned) "-1", which |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 in_union_data, | 450 in_union_data, |
452 out_union_data); | 451 out_union_data); |
453 case MOJOM_TYPE_DESCRIPTOR_TYPE_HANDLE: | 452 case MOJOM_TYPE_DESCRIPTOR_TYPE_HANDLE: |
454 case MOJOM_TYPE_DESCRIPTOR_TYPE_INTERFACE: | 453 case MOJOM_TYPE_DESCRIPTOR_TYPE_INTERFACE: |
455 case MOJOM_TYPE_DESCRIPTOR_TYPE_POD: | 454 case MOJOM_TYPE_DESCRIPTOR_TYPE_POD: |
456 break; | 455 break; |
457 } | 456 } |
458 | 457 |
459 return true; | 458 return true; |
460 } | 459 } |
OLD | NEW |