X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning-c-bindings%2Fsrc%2Flightning_invoice%2Fconstants.rs;fp=lightning-c-bindings%2Fsrc%2Flightning_invoice%2Fconstants.rs;h=d4e2e85cb2843983fb7193a8fb9a7e1c8d4d7357;hb=5eebd45b471833805e81ad4c23ec93d7711e0a23;hp=0000000000000000000000000000000000000000;hpb=c35ef17b94a8f4e9e019a2b63e0ed22110671b9c;p=ldk-c-bindings diff --git a/lightning-c-bindings/src/lightning_invoice/constants.rs b/lightning-c-bindings/src/lightning_invoice/constants.rs new file mode 100644 index 0000000..d4e2e85 --- /dev/null +++ b/lightning-c-bindings/src/lightning_invoice/constants.rs @@ -0,0 +1,45 @@ +// This file is Copyright its original authors, visible in version control +// history and in the source files from which this was generated. +// +// This file is licensed under the license available in the LICENSE or LICENSE.md +// file in the root of this repository or, if no such file exists, the same +// license as that which applies to the original source files from which this +// source was automatically generated. + +/// Tag constants as specified in BOLT11 + +use std::str::FromStr; +use std::ffi::c_void; +use bitcoin::hashes::Hash; +use crate::c_types::*; + + +#[no_mangle] +pub static TAG_PAYMENT_HASH: u8 = lightning_invoice::constants::TAG_PAYMENT_HASH; + +#[no_mangle] +pub static TAG_DESCRIPTION: u8 = lightning_invoice::constants::TAG_DESCRIPTION; + +#[no_mangle] +pub static TAG_PAYEE_PUB_KEY: u8 = lightning_invoice::constants::TAG_PAYEE_PUB_KEY; + +#[no_mangle] +pub static TAG_DESCRIPTION_HASH: u8 = lightning_invoice::constants::TAG_DESCRIPTION_HASH; + +#[no_mangle] +pub static TAG_EXPIRY_TIME: u8 = lightning_invoice::constants::TAG_EXPIRY_TIME; + +#[no_mangle] +pub static TAG_MIN_FINAL_CLTV_EXPIRY: u8 = lightning_invoice::constants::TAG_MIN_FINAL_CLTV_EXPIRY; + +#[no_mangle] +pub static TAG_FALLBACK: u8 = lightning_invoice::constants::TAG_FALLBACK; + +#[no_mangle] +pub static TAG_ROUTE: u8 = lightning_invoice::constants::TAG_ROUTE; + +#[no_mangle] +pub static TAG_PAYMENT_SECRET: u8 = lightning_invoice::constants::TAG_PAYMENT_SECRET; + +#[no_mangle] +pub static TAG_FEATURES: u8 = lightning_invoice::constants::TAG_FEATURES;