if not arg_conv_info.rust_obj in trait_structs and not arg_conv_info.rust_obj in unitary_enums:
print(re_match.group(2) + " bad - " + arg_conv_info.rust_obj)
args_known = False
+ if arg_conv_info.arg_conv is not None and "Warning" in arg_conv_info.arg_conv:
+ args_known = False
arg_names.append(arg_conv_info)
out_java_struct = None
elif fn_line.group(2) == "free":
out_c.write("\t\t.free = " + struct_name + "_JCalls_free,\n")
else:
+ clone_fns.add(struct_name + "_clone")
out_c.write("\t\t.clone = " + struct_name + "_JCalls_clone,\n")
for var_line in field_var_lines:
if var_line.group(1) in trait_structs:
return ret;
}
- public void set_counterparty_features(ChannelDetails this_ptr, InitFeatures val) {
- bindings.ChannelDetails_set_counterparty_features(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- this.ptrs_to.add(val);
- }
-
+ // Skipped ChannelDetails_set_counterparty_features
public long get_channel_value_satoshis(ChannelDetails this_ptr) {
long ret = bindings.ChannelDetails_get_channel_value_satoshis(this_ptr == null ? 0 : this_ptr.ptr & ~1);
this.ptrs_to.add(this_ptr);
return ret;
}
- public void set_features(ChannelInfo this_ptr, ChannelFeatures val) {
- bindings.ChannelInfo_set_features(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- this.ptrs_to.add(val);
- }
-
+ // Skipped ChannelInfo_set_features
public byte[] get_node_one(ChannelInfo this_ptr) {
byte[] ret = bindings.ChannelInfo_get_node_one(this_ptr == null ? 0 : this_ptr.ptr & ~1);
this.ptrs_to.add(this_ptr);
return ret;
}
- public void set_one_to_two(ChannelInfo this_ptr, DirectionalChannelInfo val) {
- bindings.ChannelInfo_set_one_to_two(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- this.ptrs_to.add(val);
- }
-
+ // Skipped ChannelInfo_set_one_to_two
public byte[] get_node_two(ChannelInfo this_ptr) {
byte[] ret = bindings.ChannelInfo_get_node_two(this_ptr == null ? 0 : this_ptr.ptr & ~1);
this.ptrs_to.add(this_ptr);
return ret;
}
- public void set_two_to_one(ChannelInfo this_ptr, DirectionalChannelInfo val) {
- bindings.ChannelInfo_set_two_to_one(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- this.ptrs_to.add(val);
- }
-
+ // Skipped ChannelInfo_set_two_to_one
public ChannelAnnouncement get_announcement_message(ChannelInfo this_ptr) {
ChannelAnnouncement ret = new ChannelAnnouncement(null, bindings.ChannelInfo_get_announcement_message(this_ptr == null ? 0 : this_ptr.ptr & ~1));
this.ptrs_to.add(this_ptr);
bindings.ChannelMessageHandler_free(ptr); super.finalize();
}
- public void call_handle_open_channel(byte[] their_node_id, InitFeatures their_features, OpenChannel msg) {
- bindings.ChannelMessageHandler_call_handle_open_channel(this.ptr, their_node_id, their_features == null ? 0 : their_features.ptr & ~1, msg == null ? 0 : msg.ptr & ~1);
- this.ptrs_to.add(their_features);
- this.ptrs_to.add(msg);
- }
-
- public void call_handle_accept_channel(byte[] their_node_id, InitFeatures their_features, AcceptChannel msg) {
- bindings.ChannelMessageHandler_call_handle_accept_channel(this.ptr, their_node_id, their_features == null ? 0 : their_features.ptr & ~1, msg == null ? 0 : msg.ptr & ~1);
- this.ptrs_to.add(their_features);
- this.ptrs_to.add(msg);
- }
-
+ // Skipped ChannelMessageHandler_call_handle_open_channel
+ // Skipped ChannelMessageHandler_call_handle_accept_channel
public void call_handle_funding_created(byte[] their_node_id, FundingCreated msg) {
bindings.ChannelMessageHandler_call_handle_funding_created(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
this.ptrs_to.add(msg);
this.ptrs_to.add(logger);
}
- public NetGraphMsgHandler(Access chain_access, Logger logger, NetworkGraph network_graph) {
- super(bindings.NetGraphMsgHandler_from_net_graph(chain_access == null ? 0 : chain_access.ptr, logger == null ? 0 : logger.ptr, network_graph == null ? 0 : network_graph.ptr & ~1));
- this.ptrs_to.add(chain_access);
- this.ptrs_to.add(logger);
- this.ptrs_to.add(network_graph);
- }
-
+ // Skipped NetGraphMsgHandler_from_net_graph
public LockedNetworkGraph read_locked_graph() {
LockedNetworkGraph ret = new LockedNetworkGraph(null, bindings.NetGraphMsgHandler_read_locked_graph(this.ptr));
return ret;
return ret;
}
- public void set_features(NodeAnnouncementInfo this_ptr, NodeFeatures val) {
- bindings.NodeAnnouncementInfo_set_features(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- this.ptrs_to.add(val);
- }
-
+ // Skipped NodeAnnouncementInfo_set_features
public int get_last_update(NodeAnnouncementInfo this_ptr) {
int ret = bindings.NodeAnnouncementInfo_get_last_update(this_ptr == null ? 0 : this_ptr.ptr & ~1);
this.ptrs_to.add(this_ptr);
return ret;
}
- public void set_announcement_info(NodeInfo this_ptr, NodeAnnouncementInfo val) {
- bindings.NodeInfo_set_announcement_info(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- this.ptrs_to.add(val);
- }
-
+ // Skipped NodeInfo_set_announcement_info
// Skipped NodeInfo_new
// Skipped NodeInfo_write
public NodeInfo(byte[] ser) {
bindings.PeerManager_free(ptr); super.finalize();
}
- public PeerManager(MessageHandler message_handler, byte[] our_node_secret, byte[] ephemeral_random_data, Logger logger) {
- super(bindings.PeerManager_new(message_handler == null ? 0 : message_handler.ptr & ~1, our_node_secret, ephemeral_random_data, logger == null ? 0 : logger.ptr));
- this.ptrs_to.add(message_handler);
- this.ptrs_to.add(logger);
- }
-
+ // Skipped PeerManager_new
// Skipped PeerManager_get_peer_node_ids
// Skipped PeerManager_new_outbound_connection
// Skipped PeerManager_new_inbound_connection
return ret;
}
- public void set_node_features(RouteHop this_ptr, NodeFeatures val) {
- bindings.RouteHop_set_node_features(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- this.ptrs_to.add(val);
- }
-
+ // Skipped RouteHop_set_node_features
public long get_short_channel_id(RouteHop this_ptr) {
long ret = bindings.RouteHop_get_short_channel_id(this_ptr == null ? 0 : this_ptr.ptr & ~1);
this.ptrs_to.add(this_ptr);
return ret;
}
- public void set_channel_features(RouteHop this_ptr, ChannelFeatures val) {
- bindings.RouteHop_set_channel_features(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- this.ptrs_to.add(val);
- }
-
+ // Skipped RouteHop_set_channel_features
public long get_fee_msat(RouteHop this_ptr) {
long ret = bindings.RouteHop_get_fee_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1);
this.ptrs_to.add(this_ptr);
this.ptrs_to.add(this_ptr);
}
- public RouteHop(byte[] pubkey_arg, NodeFeatures node_features_arg, long short_channel_id_arg, ChannelFeatures channel_features_arg, long fee_msat_arg, int cltv_expiry_delta_arg) {
- super(bindings.RouteHop_new(pubkey_arg, node_features_arg == null ? 0 : node_features_arg.ptr & ~1, short_channel_id_arg, channel_features_arg == null ? 0 : channel_features_arg.ptr & ~1, fee_msat_arg, cltv_expiry_delta_arg));
- this.ptrs_to.add(node_features_arg);
- this.ptrs_to.add(channel_features_arg);
- }
-
+ // Skipped RouteHop_new
}
return ret;
}
- public void set_features(UnsignedChannelAnnouncement this_ptr, ChannelFeatures val) {
- bindings.UnsignedChannelAnnouncement_set_features(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- this.ptrs_to.add(val);
- }
-
+ // Skipped UnsignedChannelAnnouncement_set_features
public byte[] get_chain_hash(UnsignedChannelAnnouncement this_ptr) {
byte[] ret = bindings.UnsignedChannelAnnouncement_get_chain_hash(this_ptr == null ? 0 : this_ptr.ptr & ~1);
this.ptrs_to.add(this_ptr);
return ret;
}
- public void set_features(UnsignedNodeAnnouncement this_ptr, NodeFeatures val) {
- bindings.UnsignedNodeAnnouncement_set_features(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- this.ptrs_to.add(val);
- }
-
+ // Skipped UnsignedNodeAnnouncement_set_features
public int get_timestamp(UnsignedNodeAnnouncement this_ptr) {
int ret = bindings.UnsignedNodeAnnouncement_get_timestamp(this_ptr == null ? 0 : this_ptr.ptr & ~1);
this.ptrs_to.add(this_ptr);