+/// If this is set to true, LDK will intercept HTLCs that are attempting to be forwarded over
+/// fake short channel ids generated via [`ChannelManager::get_intercept_scid`]. Upon HTLC
+/// intercept, LDK will generate an [`Event::HTLCIntercepted`] which MUST be handled by the user.
+///
+/// Setting this to true may break backwards compatibility with LDK versions < 0.0.113.
+///
+/// Default value: false.
+///
+/// [`ChannelManager::get_intercept_scid`]: crate::ln::channelmanager::ChannelManager::get_intercept_scid
+/// [`Event::HTLCIntercepted`]: crate::util::events::Event::HTLCIntercepted
+#[no_mangle]
+pub extern "C" fn UserConfig_get_accept_intercept_htlcs(this_ptr: &UserConfig) -> bool {
+ let mut inner_val = &mut this_ptr.get_native_mut_ref().accept_intercept_htlcs;
+ *inner_val
+}
+/// If this is set to true, LDK will intercept HTLCs that are attempting to be forwarded over
+/// fake short channel ids generated via [`ChannelManager::get_intercept_scid`]. Upon HTLC
+/// intercept, LDK will generate an [`Event::HTLCIntercepted`] which MUST be handled by the user.
+///
+/// Setting this to true may break backwards compatibility with LDK versions < 0.0.113.
+///
+/// Default value: false.
+///
+/// [`ChannelManager::get_intercept_scid`]: crate::ln::channelmanager::ChannelManager::get_intercept_scid
+/// [`Event::HTLCIntercepted`]: crate::util::events::Event::HTLCIntercepted
+#[no_mangle]
+pub extern "C" fn UserConfig_set_accept_intercept_htlcs(this_ptr: &mut UserConfig, mut val: bool) {
+ unsafe { &mut *ObjOps::untweak_ptr(this_ptr.inner) }.accept_intercept_htlcs = val;
+}