public void set_own_channel_config(ChannelHandshakeConfig val) {
bindings.UserConfig_set_own_channel_config(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public ChannelHandshakeLimits get_peer_channel_config_limits() {
public void set_peer_channel_config_limits(ChannelHandshakeLimits val) {
bindings.UserConfig_set_peer_channel_config_limits(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public ChannelConfig get_channel_options() {
public void set_channel_options(ChannelConfig val) {
bindings.UserConfig_set_channel_options(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
- public static UserConfig constructor_new(ChannelHandshakeConfig own_channel_config_arg, ChannelHandshakeLimits peer_channel_config_limits_arg, ChannelConfig channel_options_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);
+ public boolean get_accept_forwards_to_priv_channels() {
+ boolean ret = bindings.UserConfig_get_accept_forwards_to_priv_channels(this.ptr);
+ return ret;
+ }
+
+ public void set_accept_forwards_to_priv_channels(boolean val) {
+ 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);
const ret_hu_conv: UserConfig = new UserConfig(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(own_channel_config_arg);
- ret_hu_conv.ptrs_to.add(peer_channel_config_limits_arg);
- ret_hu_conv.ptrs_to.add(channel_options_arg);
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);