summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ppapi/generators/idl_gen_wrapper.py3
-rw-r--r--ppapi/generators/test_gen_pnacl/test_interfaces.idl8
2 files changed, 5 insertions, 6 deletions
diff --git a/ppapi/generators/idl_gen_wrapper.py b/ppapi/generators/idl_gen_wrapper.py
index 0f3cec8..6d4b74a 100644
--- a/ppapi/generators/idl_gen_wrapper.py
+++ b/ppapi/generators/idl_gen_wrapper.py
@@ -230,9 +230,8 @@ const void *__%(wrapper_prefix)s_PPPGetInterface(const char *name) {
releases_for_iface = iface.GetUniqueReleases(releases)
for release in releases_for_iface:
version = iface.GetVersion(release)
- not_latest = release != releases_for_iface[-1]
struct_name = self.cgen.GetStructName(iface, release,
- include_version=not_latest)
+ include_version=True)
needs_wrap = self.InterfaceVersionNeedsWrapping(iface, version)
if not needs_wrap:
InfoOut.Log('Interface %s ver %s does not need wrapping' %
diff --git a/ppapi/generators/test_gen_pnacl/test_interfaces.idl b/ppapi/generators/test_gen_pnacl/test_interfaces.idl
index 731fce0..78c21eb 100644
--- a/ppapi/generators/test_gen_pnacl/test_interfaces.idl
+++ b/ppapi/generators/test_gen_pnacl/test_interfaces.idl
@@ -39,8 +39,8 @@ struct some_struct2 {
/*
* static __attribute__((pnaclcall)) int32_t
* Pnacl_M15_PPB_Iface_struct_wrap_foo1(int32_t a, struct some_struct b) {
- * const struct PPB_Iface_struct_wrap *iface =
- * Pnacl_WrapperInfo_PPB_Iface_struct_wrap.real_iface;
+ * const struct PPB_Iface_struct_wrap_2_0 *iface =
+ * Pnacl_WrapperInfo_PPB_Iface_struct_wrap_2_0.real_iface;
* return iface->foo1(a, b);
* }
*/
@@ -52,8 +52,8 @@ interface PPB_Iface_struct_wrap {
/*
* static __attribute__((pnaclcall)) int32_t
* Pnacl_M15_PPB_Iface_union_wrap_foo1(int32_t a, union some_union b) {
- * const struct PPB_Iface_union_wrap *iface =
- * Pnacl_WrapperInfo_PPB_Iface_union_wrap.real_iface;
+ * const struct PPB_Iface_union_wrap_2_0 *iface =
+ * Pnacl_WrapperInfo_PPB_Iface_union_wrap_2_0.real_iface;
* return iface->foo1(a, b);
* }
*/