|
C bindings pt3: Type table definitions and barebones files to get generated code to compile.
With this checked in, mojoms in //mojo/public/interfaces/bindings/tests will
be generated and compiled, but not yet used.
Changes include:
- Definitions of some structs that are used to construct type tables.
- Definitions for MojomString, MojomArray, MojomMap, MojomStruct.
I don't plan to test the type tables directly, but instead test the
things that use them (New(), ComputeSerializedSize(), Encode..(),
Decode..(), Validate..()).
R=viettrungluu@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/c747b91aa53c244740e99d5b41994535cce2a658
Total comments: 22
Total comments: 6
Total comments: 18
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+336 lines, -54 lines) |
Patch |
|
M |
build/config/compiler/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/c/bindings/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
A |
mojo/public/c/bindings/array.h
|
View
|
1
2
3
4
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
|
A |
mojo/public/c/bindings/interface.h
|
View
|
1
2
3
4
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
|
A |
mojo/public/c/bindings/lib/type_descriptor.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+128 lines, -0 lines |
0 comments
|
Download
|
|
A |
mojo/public/c/bindings/lib/type_descriptor.c
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
mojo/public/c/bindings/map.h
|
View
|
1
2
3
4
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
|
A |
mojo/public/c/bindings/string.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/c/bindings/tests/BUILD.gn
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/tools/bindings/mojom_tool/bin/linux64/generators/c.sha1
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
mojo/public/tools/bindings/mojom_tool/bin/mac64/generators/c.sha1
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
mojom/generators/c/cgen/header.go
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
mojom/generators/c/cgen/type_table.go
|
View
|
1
2
3
4
5
6
7
8
9
10
|
14 chunks |
+19 lines, -30 lines |
0 comments
|
Download
|
|
M |
mojom/generators/c/cgen/type_translation.go
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
mojom/generators/c/templates/header.tmpl.go
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
mojom/generators/c/templates/source.tmpl.go
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
mojom/generators/c/templates/type_table.tmpl.go
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+24 lines, -15 lines |
0 comments
|
Download
|
Total messages: 12 (2 generated)
|