-pub extern "C" fn PaymentParameters_set_payee_pubkey(this_ptr: &mut PaymentParameters, mut val: crate::c_types::PublicKey) {
- unsafe { &mut *ObjOps::untweak_ptr(this_ptr.inner) }.payee_pubkey = val.into_rust();
-}
-/// Features supported by the payee.
-///
-/// May be set from the payee's invoice or via [`for_keysend`]. May be `None` if the invoice
-/// does not contain any features.
-///
-/// [`for_keysend`]: Self::for_keysend
-///
-/// Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
-#[no_mangle]
-pub extern "C" fn PaymentParameters_get_features(this_ptr: &PaymentParameters) -> crate::lightning::ln::features::InvoiceFeatures {
- let mut inner_val = &mut this_ptr.get_native_mut_ref().features;
- let mut local_inner_val = crate::lightning::ln::features::InvoiceFeatures { inner: unsafe { (if inner_val.is_none() { core::ptr::null() } else { ObjOps::nonnull_ptr_to_inner( { (inner_val.as_ref().unwrap()) }) } as *const lightning::ln::features::InvoiceFeatures<>) as *mut _ }, is_owned: false };
- local_inner_val
-}
-/// Features supported by the payee.
-///
-/// May be set from the payee's invoice or via [`for_keysend`]. May be `None` if the invoice
-/// does not contain any features.
-///
-/// [`for_keysend`]: Self::for_keysend
-///
-/// Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
-#[no_mangle]
-pub extern "C" fn PaymentParameters_set_features(this_ptr: &mut PaymentParameters, mut val: crate::lightning::ln::features::InvoiceFeatures) {
- let mut local_val = if val.inner.is_null() { None } else { Some( { *unsafe { Box::from_raw(val.take_inner()) } }) };
- unsafe { &mut *ObjOps::untweak_ptr(this_ptr.inner) }.features = local_val;
-}
-/// Hints for routing to the payee, containing channels connecting the payee to public nodes.
-#[no_mangle]
-pub extern "C" fn PaymentParameters_get_route_hints(this_ptr: &PaymentParameters) -> crate::lightning::routing::router::Hints {
- let mut inner_val = &mut this_ptr.get_native_mut_ref().route_hints;
- crate::lightning::routing::router::Hints::from_native(inner_val)
-}
-/// Hints for routing to the payee, containing channels connecting the payee to public nodes.
-#[no_mangle]
-pub extern "C" fn PaymentParameters_set_route_hints(this_ptr: &mut PaymentParameters, mut val: crate::lightning::routing::router::Hints) {
- unsafe { &mut *ObjOps::untweak_ptr(this_ptr.inner) }.route_hints = val.into_native();