X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FUserConfig.ts;h=06742340f14c4b919dc83b236064ca3fbb0edd74;hb=1854b5cebef22ace9e9e4dd191f609818df9ce08;hp=0cc921e69932d2a0a0ce2fb9ccf7ea16c78fa59d;hpb=5fd405f7a48aaeca779c45c88ec6b3d3d3dbf0e4;p=ldk-java diff --git a/ts/structs/UserConfig.ts b/ts/structs/UserConfig.ts index 0cc921e6..06742340 100644 --- a/ts/structs/UserConfig.ts +++ b/ts/structs/UserConfig.ts @@ -60,8 +60,17 @@ 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;