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:
Christian Decker
2019-12-18 11:06:09 +01:00
committed by neil saitug
parent 5baf39e7dc
commit 6020a0d587
6 changed files with 17 additions and 9 deletions

View File

@@ -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 */