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

Unified Diff: mojom/generators/c/templates/interface.tmpl.go

Issue 2163793002: C bindings: Implement _Validate(), and some pre-requisites (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address comments Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojom/generators/c/cgen/type_translation.go ('k') | mojom/generators/c/templates/struct.tmpl.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojom/generators/c/templates/interface.tmpl.go
diff --git a/mojom/generators/c/templates/interface.tmpl.go b/mojom/generators/c/templates/interface.tmpl.go
index 29f387b8099a7ce5e52e9698201bfc8b05ae0bb8..964a6341f266713e5d575f1d70d6e4b9a30dedab 100644
--- a/mojom/generators/c/templates/interface.tmpl.go
+++ b/mojom/generators/c/templates/interface.tmpl.go
@@ -30,15 +30,11 @@ extern const {{$const.Type}} {{$const.Name}};
#define {{$interface.Name}}_{{$message.Name}}__MinVersion \
((uint32_t){{$message.MinVersion}})
-
struct {{$message.RequestStruct.Name}};
{{template "GenerateStructDeclarations" $message.RequestStruct}}
{{if ne $message.ResponseStruct.Name "" -}}
-#define {{$interface.Name}}_{{$message.Name}}__HasResponse 1
struct {{$message.ResponseStruct.Name}};
{{template "GenerateStructDeclarations" $message.ResponseStruct}}
-{{else}}
-#define {{$interface.Name}}_{{$message.Name}}__HasResponse 0
{{end}}
{{end}}
{{end}}
« no previous file with comments | « mojom/generators/c/cgen/type_translation.go ('k') | mojom/generators/c/templates/struct.tmpl.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698