@@ -459,6 +459,56 @@ typedef struct LDKStr {
459
459
bool chars_is_owned;
460
460
} LDKStr;
461
461
462
+ /**
463
+ * Represents an error returned from the bech32 library during validation of some bech32 data
464
+ */
465
+ typedef enum LDKBech32Error_Tag {
466
+ /**
467
+ * String does not contain the separator character
468
+ */
469
+ LDKBech32Error_MissingSeparator,
470
+ /**
471
+ * The checksum does not match the rest of the data
472
+ */
473
+ LDKBech32Error_InvalidChecksum,
474
+ /**
475
+ * The data or human-readable part is too long or too short
476
+ */
477
+ LDKBech32Error_InvalidLength,
478
+ /**
479
+ * Some part of the string contains an invalid character
480
+ */
481
+ LDKBech32Error_InvalidChar,
482
+ /**
483
+ * Some part of the data has an invalid value
484
+ */
485
+ LDKBech32Error_InvalidData,
486
+ /**
487
+ * The bit conversion failed due to a padding issue
488
+ */
489
+ LDKBech32Error_InvalidPadding,
490
+ /**
491
+ * The whole string must be of one case
492
+ */
493
+ LDKBech32Error_MixedCase,
494
+ /**
495
+ * Must be last for serialization purposes
496
+ */
497
+ LDKBech32Error_Sentinel,
498
+ } LDKBech32Error_Tag;
499
+
500
+ typedef struct LDKBech32Error {
501
+ LDKBech32Error_Tag tag;
502
+ union {
503
+ struct {
504
+ uint32_t invalid_char;
505
+ };
506
+ struct {
507
+ uint8_t invalid_data;
508
+ };
509
+ };
510
+ } LDKBech32Error;
511
+
462
512
/**
463
513
* A serialized transaction, in (pointer, length) form.
464
514
*
@@ -7137,56 +7187,6 @@ typedef struct LDKCResult_PaymentIdPaymentErrorZ {
7137
7187
bool result_ok;
7138
7188
} LDKCResult_PaymentIdPaymentErrorZ;
7139
7189
7140
- /**
7141
- * Represents an error returned from the bech32 library during validation of some bech32 data
7142
- */
7143
- typedef enum LDKBech32Error_Tag {
7144
- /**
7145
- * String does not contain the separator character
7146
- */
7147
- LDKBech32Error_MissingSeparator,
7148
- /**
7149
- * The checksum does not match the rest of the data
7150
- */
7151
- LDKBech32Error_InvalidChecksum,
7152
- /**
7153
- * The data or human-readable part is too long or too short
7154
- */
7155
- LDKBech32Error_InvalidLength,
7156
- /**
7157
- * Some part of the string contains an invalid character
7158
- */
7159
- LDKBech32Error_InvalidChar,
7160
- /**
7161
- * Some part of the data has an invalid value
7162
- */
7163
- LDKBech32Error_InvalidData,
7164
- /**
7165
- * The bit conversion failed due to a padding issue
7166
- */
7167
- LDKBech32Error_InvalidPadding,
7168
- /**
7169
- * The whole string must be of one case
7170
- */
7171
- LDKBech32Error_MixedCase,
7172
- /**
7173
- * Must be last for serialization purposes
7174
- */
7175
- LDKBech32Error_Sentinel,
7176
- } LDKBech32Error_Tag;
7177
-
7178
- typedef struct LDKBech32Error {
7179
- LDKBech32Error_Tag tag;
7180
- union {
7181
- struct {
7182
- uint32_t invalid_char;
7183
- };
7184
- struct {
7185
- uint8_t invalid_data;
7186
- };
7187
- };
7188
- } LDKBech32Error;
7189
-
7190
7190
/**
7191
7191
* Sub-errors which don't have specific information in them use this type.
7192
7192
*/
@@ -12479,6 +12479,16 @@ struct LDKStr _ldk_get_compiled_version(void);
12479
12479
12480
12480
struct LDKStr _ldk_c_bindings_get_compiled_version(void);
12481
12481
12482
+ /**
12483
+ * Creates a new Bech32Error which has the same data as `orig`
12484
+ */
12485
+ struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig);
12486
+
12487
+ /**
12488
+ * Releases any memory held by the given `Bech32Error` (which is currently none)
12489
+ */
12490
+ void Bech32Error_free(struct LDKBech32Error o);
12491
+
12482
12492
/**
12483
12493
* Frees the data buffer, if data_is_owned is set and datalen > 0.
12484
12494
*/
0 commit comments