Skip to content

Commit ba6ce25

Browse files
authored
Merge pull request #138 from TheBlueMatt/main
Update auto-generated bindings to LDK 0.1.3
2 parents b65e093 + 2770b20 commit ba6ce25

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

lightning-c-bindings/include/lightning.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54465,6 +54465,17 @@ MUST_USE_RES struct LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12Seman
5446554465
*/
5446654466
MUST_USE_RES struct LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ VerifiedInvoiceRequest_respond_using_derived_keys_no_std(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg, struct LDKCVec_BlindedPaymentPathZ payment_paths, struct LDKThirtyTwoBytes payment_hash, uint64_t created_at);
5446754467

54468+
/**
54469+
* Fetch the [`InvoiceRequestFields`] for this verified invoice.
54470+
*
54471+
* These are fields which we expect to be useful when receiving a payment for this invoice
54472+
* request, and include the returned [`InvoiceRequestFields`] in the
54473+
* [`PaymentContext::Bolt12Offer`].
54474+
*
54475+
* [`PaymentContext::Bolt12Offer`]: crate::blinded_path::payment::PaymentContext::Bolt12Offer
54476+
*/
54477+
MUST_USE_RES struct LDKInvoiceRequestFields VerifiedInvoiceRequest_fields(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
54478+
5446854479
/**
5446954480
* Serialize the UnsignedInvoiceRequest object into a byte array which can be read by UnsignedInvoiceRequest_read
5447054481
*/

lightning-c-bindings/src/lightning/offers/invoice_request.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,6 +1331,20 @@ pub extern "C" fn VerifiedInvoiceRequest_respond_using_derived_keys_no_std(this_
13311331
local_ret
13321332
}
13331333

1334+
/// Fetch the [`InvoiceRequestFields`] for this verified invoice.
1335+
///
1336+
/// These are fields which we expect to be useful when receiving a payment for this invoice
1337+
/// request, and include the returned [`InvoiceRequestFields`] in the
1338+
/// [`PaymentContext::Bolt12Offer`].
1339+
///
1340+
/// [`PaymentContext::Bolt12Offer`]: crate::blinded_path::payment::PaymentContext::Bolt12Offer
1341+
#[must_use]
1342+
#[no_mangle]
1343+
pub extern "C" fn VerifiedInvoiceRequest_fields(this_arg: &crate::lightning::offers::invoice_request::VerifiedInvoiceRequest) -> crate::lightning::offers::invoice_request::InvoiceRequestFields {
1344+
let mut ret = unsafe { &*ObjOps::untweak_ptr(this_arg.inner) }.fields();
1345+
crate::lightning::offers::invoice_request::InvoiceRequestFields { inner: ObjOps::heap_alloc(ret), is_owned: true }
1346+
}
1347+
13341348
#[no_mangle]
13351349
/// Serialize the UnsignedInvoiceRequest object into a byte array which can be read by UnsignedInvoiceRequest_read
13361350
pub extern "C" fn UnsignedInvoiceRequest_write(obj: &crate::lightning::offers::invoice_request::UnsignedInvoiceRequest) -> crate::c_types::derived::CVec_u8Z {

0 commit comments

Comments
 (0)