Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1201)

Side by Side Diff: mojo/public/c/lib/bindings/type_descriptor.c

Issue 2232833003: Change the canonical way to include the C bindings headers to <mojo/bindings/*.h>. (Closed) Base URL: https://github.com/domokit/mojo.git@work791_mojo_tests
Patch Set: rebased Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/public/c/lib/bindings/struct.c ('k') | mojo/public/c/lib/bindings/union.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « mojo/public/c/lib/bindings/struct.c ('k') | mojo/public/c/lib/bindings/union.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698