X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FUserConfig.ts;h=06742340f14c4b919dc83b236064ca3fbb0edd74;hb=1854b5cebef22ace9e9e4dd191f609818df9ce08;hp=ed711c9487ff3b806cb69d7924d71ceebcafd0c8;hpb=8c0814bf345323be8f16e075a9af0bd43d9400ee;p=ldk-java diff --git a/ts/structs/UserConfig.ts b/ts/structs/UserConfig.ts index ed711c94..06742340 100644 --- a/ts/structs/UserConfig.ts +++ b/ts/structs/UserConfig.ts @@ -60,13 +60,27 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.UserConfig_set_accept_forwards_to_priv_channels(this.ptr, val); } - public static UserConfig constructor_new(ChannelHandshakeConfig own_channel_config_arg, ChannelHandshakeLimits peer_channel_config_limits_arg, ChannelConfig channel_options_arg, boolean accept_forwards_to_priv_channels_arg) { - number ret = bindings.UserConfig_new(own_channel_config_arg == null ? 0 : own_channel_config_arg.ptr & ~1, peer_channel_config_limits_arg == null ? 0 : peer_channel_config_limits_arg.ptr & ~1, channel_options_arg == null ? 0 : channel_options_arg.ptr & ~1, accept_forwards_to_priv_channels_arg); + public boolean get_accept_inbound_channels() { + boolean ret = bindings.UserConfig_get_accept_inbound_channels(this.ptr); + return ret; + } + + public void set_accept_inbound_channels(boolean val) { + bindings.UserConfig_set_accept_inbound_channels(this.ptr, val); + } + + public static UserConfig constructor_new(ChannelHandshakeConfig own_channel_config_arg, ChannelHandshakeLimits peer_channel_config_limits_arg, ChannelConfig channel_options_arg, boolean accept_forwards_to_priv_channels_arg, boolean accept_inbound_channels_arg) { + number ret = bindings.UserConfig_new(own_channel_config_arg == null ? 0 : own_channel_config_arg.ptr & ~1, peer_channel_config_limits_arg == null ? 0 : peer_channel_config_limits_arg.ptr & ~1, channel_options_arg == null ? 0 : channel_options_arg.ptr & ~1, accept_forwards_to_priv_channels_arg, accept_inbound_channels_arg); const ret_hu_conv: UserConfig = new UserConfig(null, ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; } + public number clone_ptr() { + number ret = bindings.UserConfig_clone_ptr(this.ptr); + return ret; + } + public UserConfig clone() { number ret = bindings.UserConfig_clone(this.ptr); const ret_hu_conv: UserConfig = new UserConfig(null, ret);