@@ -586,6 +586,32 @@ typedef struct LDKC2TupleTempl_HTLCOutputInCommitment__Signature {
586
586
587
587
typedef LDKC2TupleTempl_HTLCOutputInCommitment__Signature LDKC2Tuple_HTLCOutputInCommitmentSignatureZ ;
588
588
589
+
590
+
591
+ /**
592
+ * An Err type for failure to process messages.
593
+ */
594
+ typedef struct MUST_USE_STRUCT LDKLightningError {
595
+ /**
596
+ * Nearly everywhere, inner must be non-null, however in places where
597
+ * the Rust equivalent takes an Option, it may be set to null to indicate None.
598
+ */
599
+ LDKnativeLightningError * inner ;
600
+ bool is_owned ;
601
+ } LDKLightningError ;
602
+
603
+ typedef union LDKCResultPtr_u8__LightningError {
604
+ uint8_t * result ;
605
+ LDKLightningError * err ;
606
+ } LDKCResultPtr_u8__LightningError ;
607
+
608
+ typedef struct LDKCResultTempl_u8__LightningError {
609
+ LDKCResultPtr_u8__LightningError contents ;
610
+ bool result_ok ;
611
+ } LDKCResultTempl_u8__LightningError ;
612
+
613
+ typedef LDKCResultTempl_u8__LightningError LDKCResult_NoneLightningErrorZ ;
614
+
589
615
typedef struct LDKPublicKey {
590
616
uint8_t compressed_form [33 ];
591
617
} LDKPublicKey ;
@@ -2641,20 +2667,6 @@ typedef struct MUST_USE_STRUCT LDKGossipTimestampFilter {
2641
2667
bool is_owned ;
2642
2668
} LDKGossipTimestampFilter ;
2643
2669
2644
-
2645
-
2646
- /**
2647
- * An Err type for failure to process messages.
2648
- */
2649
- typedef struct MUST_USE_STRUCT LDKLightningError {
2650
- /**
2651
- * Nearly everywhere, inner must be non-null, however in places where
2652
- * the Rust equivalent takes an Option, it may be set to null to indicate None.
2653
- */
2654
- LDKnativeLightningError * inner ;
2655
- bool is_owned ;
2656
- } LDKLightningError ;
2657
-
2658
2670
typedef struct LDKCVecTempl_UpdateAddHTLC {
2659
2671
LDKUpdateAddHTLC * data ;
2660
2672
uintptr_t datalen ;
@@ -3153,6 +3165,10 @@ extern const LDKCResult_NoneChannelMonitorUpdateErrZ (*CResult_NoneChannelMonito
3153
3165
3154
3166
extern const void (* CResult_NoneChannelMonitorUpdateErrZ_free )(LDKCResult_NoneChannelMonitorUpdateErrZ );
3155
3167
3168
+ extern const LDKCResult_NoneLightningErrorZ (* CResult_NoneLightningErrorZ_err )(LDKLightningError );
3169
+
3170
+ extern const void (* CResult_NoneLightningErrorZ_free )(LDKCResult_NoneLightningErrorZ );
3171
+
3156
3172
extern const LDKCResult_NoneMonitorUpdateErrorZ (* CResult_NoneMonitorUpdateErrorZ_err )(LDKMonitorUpdateError );
3157
3173
3158
3174
extern const void (* CResult_NoneMonitorUpdateErrorZ_free )(LDKCResult_NoneMonitorUpdateErrorZ );
@@ -3301,6 +3317,8 @@ LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
3301
3317
3302
3318
LDKC2Tuple_HTLCOutputInCommitmentSignatureZ C2Tuple_HTLCOutputInCommitmentSignatureZ_new (LDKHTLCOutputInCommitment a , LDKSignature b );
3303
3319
3320
+ LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok (void );
3321
+
3304
3322
void Event_free (LDKEvent this_ptr );
3305
3323
3306
3324
LDKEvent Event_clone (const LDKEvent * orig );
@@ -7262,6 +7280,46 @@ LDKNetworkGraph NetworkGraph_read(LDKu8slice ser);
7262
7280
*/
7263
7281
MUST_USE_RES LDKNetworkGraph NetworkGraph_new (void );
7264
7282
7283
+ /**
7284
+ * For an already known node (from channel announcements), update its stored properties from a
7285
+ * given node announcement.
7286
+ *
7287
+ * You probably don't want to call this directly, instead relying on a NetGraphMsgHandler's
7288
+ * RoutingMessageHandler implementation to call it indirectly. This may be useful to accept
7289
+ * routing messages from a source using a protocol other than the lightning P2P protocol.
7290
+ */
7291
+ MUST_USE_RES LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement (LDKNetworkGraph * this_arg , const LDKNodeAnnouncement * msg );
7292
+
7293
+ /**
7294
+ * For an already known node (from channel announcements), update its stored properties from a
7295
+ * given node announcement without verifying the associated signatures. Because we aren't
7296
+ * given the associated signatures here we cannot relay the node announcement to any of our
7297
+ * peers.
7298
+ */
7299
+ MUST_USE_RES LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_unsigned_announcement (LDKNetworkGraph * this_arg , const LDKUnsignedNodeAnnouncement * msg );
7300
+
7301
+ /**
7302
+ * Store or update channel info from a channel announcement.
7303
+ *
7304
+ * You probably don't want to call this directly, instead relying on a NetGraphMsgHandler's
7305
+ * RoutingMessageHandler implementation to call it indirectly. This may be useful to accept
7306
+ * routing messages from a source using a protocol other than the lightning P2P protocol.
7307
+ *
7308
+ * If a `chain::Access` object is provided via `chain_access`, it will be called to verify
7309
+ * the corresponding UTXO exists on chain and is correctly-formatted.
7310
+ */
7311
+ MUST_USE_RES LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_announcement (LDKNetworkGraph * this_arg , const LDKChannelAnnouncement * msg , LDKAccess * chain_access );
7312
+
7313
+ /**
7314
+ * Store or update channel info from a channel announcement without verifying the associated
7315
+ * signatures. Because we aren't given the associated signatures here we cannot relay the
7316
+ * channel announcement to any of our peers.
7317
+ *
7318
+ * If a `chain::Access` object is provided via `chain_access`, it will be called to verify
7319
+ * the corresponding UTXO exists on chain and is correctly-formatted.
7320
+ */
7321
+ MUST_USE_RES LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_unsigned_announcement (LDKNetworkGraph * this_arg , const LDKUnsignedChannelAnnouncement * msg , LDKAccess * chain_access );
7322
+
7265
7323
/**
7266
7324
* Close a channel if a corresponding HTLC fail was sent.
7267
7325
* If permanent, removes a channel from the local storage.
@@ -7270,4 +7328,21 @@ MUST_USE_RES LDKNetworkGraph NetworkGraph_new(void);
7270
7328
*/
7271
7329
void NetworkGraph_close_channel_from_update (LDKNetworkGraph * this_arg , uint64_t short_channel_id , bool is_permanent );
7272
7330
7331
+ /**
7332
+ * For an already known (from announcement) channel, update info about one of the directions
7333
+ * of the channel.
7334
+ *
7335
+ * You probably don't want to call this directly, instead relying on a NetGraphMsgHandler's
7336
+ * RoutingMessageHandler implementation to call it indirectly. This may be useful to accept
7337
+ * routing messages from a source using a protocol other than the lightning P2P protocol.
7338
+ */
7339
+ MUST_USE_RES LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel (LDKNetworkGraph * this_arg , const LDKChannelUpdate * msg );
7340
+
7341
+ /**
7342
+ * For an already known (from announcement) channel, update info about one of the directions
7343
+ * of the channel without verifying the associated signatures. Because we aren't given the
7344
+ * associated signatures here we cannot relay the channel update to any of our peers.
7345
+ */
7346
+ MUST_USE_RES LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned (LDKNetworkGraph * this_arg , const LDKUnsignedChannelUpdate * msg );
7347
+
7273
7348
/* Text to put at the end of the generated file */
0 commit comments