From 578198a6c32d1db8fabadfac76b6fe93a24ad400 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Sun, 10 Jan 2021 01:33:48 -0800 Subject: [PATCH] Allow other 'binding' guids for a proto under 'bindings' key --- templates/proto.j2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/proto.j2 b/templates/proto.j2 index fbbfcda..4627525 100644 --- a/templates/proto.j2 +++ b/templates/proto.j2 @@ -17,7 +17,13 @@ struct {{ name }}; struct {{ name }} { - {% if guid %}static constexpr uefi::guid guid{ {{ guid }} };{% endif %} +{%- if guid %} + static constexpr uefi::guid guid{ {{ guid }} }; +{%- endif -%} +{%- for binding in bindings %} + static constexpr uefi::guid {{ binding.name }}{ {{ binding.guid }} }; +{%- endfor %} + {% for method in methods %} inline uefi::status {{ method.name }}( {%- for arg in method.args -%}