Merge pull request #93 from TheBlueMatt/main
[ldk-c-bindings] / lightning-c-bindings / include / lightning.h
index c06fe657976bf10097b714860e89ad11ccbfb6bd..2022fded751929ce35f6260ed2928cb45bdabf45 100644 (file)
@@ -13501,7 +13501,8 @@ typedef struct MUST_USE_STRUCT LDKBackgroundProcessor {
 
 
 /**
- * Rapid Gossip Sync struct
+ * The main Rapid Gossip Sync object.
+ *
  * See [crate-level documentation] for usage.
  *
  * [crate-level documentation]: crate
@@ -30843,23 +30844,22 @@ struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
 void RapidGossipSync_free(struct LDKRapidGossipSync this_obj);
 
 /**
- * Instantiate a new [`RapidGossipSync`] instance
+ * Instantiate a new [`RapidGossipSync`] instance.
  */
 MUST_USE_RES struct LDKRapidGossipSync RapidGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph);
 
 /**
- * Sync gossip data from a file
+ * Update network graph from binary data.
  * Returns the last sync timestamp to be used the next time rapid sync data is queried.
  *
- * `network_graph`: The network graph to apply the updates to
- *
- * `sync_path`: Path to the file where the gossip update data is located
+ * `network_graph`: network graph to be updated
  *
+ * `update_data`: `&[u8]` binary stream that comprises the update data
  */
-MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_sync_network_graph_with_file_path(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKStr sync_path);
+MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_update_network_graph(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKu8slice update_data);
 
 /**
- * Returns whether a rapid gossip sync has completed at least once
+ * Returns whether a rapid gossip sync has completed at least once.
  */
 MUST_USE_RES bool RapidGossipSync_is_initial_sync_complete(const struct LDKRapidGossipSync *NONNULL_PTR this_arg);
 
@@ -30883,16 +30883,6 @@ struct LDKGraphSyncError GraphSyncError_decode_error(struct LDKDecodeError a);
  */
 struct LDKGraphSyncError GraphSyncError_lightning_error(struct LDKLightningError a);
 
-/**
- * Update network graph from binary data.
- * Returns the last sync timestamp to be used the next time rapid sync data is queried.
- *
- * `network_graph`: network graph to be updated
- *
- * `update_data`: `&[u8]` binary stream that comprises the update data
- */
-MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_update_network_graph(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKu8slice update_data);
-
 #endif /* LDK_C_BINDINGS_H */
 
 #include "ldk_ver.h"