mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
db: Consolidate access to the changes in a db
We were passing them in separately, while we could just retrieve them from the db instance instead.
This commit is contained in:
committed by
neil saitug
parent
5baf39e7dc
commit
6020a0d587
@@ -108,8 +108,7 @@ bool plugin_hook_unregister(struct plugin *plugin, const char *method);
|
||||
/* Unregister all hooks a plugin has registered for */
|
||||
void plugin_hook_unregister_all(struct plugin *plugin);
|
||||
|
||||
/* Special sync plugin hook for db: changes[] are SQL statements, with optional
|
||||
* final command appended. */
|
||||
void plugin_hook_db_sync(struct db *db, const char **changes, const char *final);
|
||||
/* Special sync plugin hook for db. */
|
||||
void plugin_hook_db_sync(struct db *db);
|
||||
|
||||
#endif /* LIGHTNING_LIGHTNINGD_PLUGIN_HOOK_H */
|
||||
|
||||
Reference in New Issue
Block a user