use templates for human type conversions
[ldk-java] / java_strings.py
index 968cb0f1b7320d87e0f821b1572010c8d14d2a33..c9a32171b738c289cf645c57781ffbffe2366966 100644 (file)
@@ -10,6 +10,11 @@ class Consts:
             long = ['long'],
         )
 
+        self.to_hu_conv_templates = dict(
+            ptr = '{human_type} {var_name}_hu_conv = new {human_type}(null, {var_name});',
+            default = '{human_type} {var_name}_hu_conv = new {human_type}(null, {var_name});'
+        )
+
         self.common_base = """package org.ldk.structs;
 import java.util.LinkedList;
 class CommonBase {