diff options
author | Ryan Gonzalez <rymg19@gmail.com> | 2019-03-30 16:37:15 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2019-04-12 08:59:35 +0000 |
commit | 7185a00c8523b0368db6e40a44dc6c95d352871a (patch) | |
tree | 266d3240d20247da6edb7d7b35a373fd21d378c0 /common/flatpak-transaction.h | |
parent | 6059a1ae3a4c3808d106af6f88e7dc5e7fc8fc8f (diff) | |
download | flatpak-7185a00c8523b0368db6e40a44dc6c95d352871a.tar.gz |
transaction: Add end-of-lifed-with-rebase signal and add_rebase()
end-of-lifed-with-rebase runs earlier in the transaction system than end-of-lifed, meaning it can modify the transaction for rebasing.
The new flatpak_transaction_add_rebase() function can then be used to apply the rebase if wanted.
Closes: #2775
Approved by: alexlarsson
Diffstat (limited to 'common/flatpak-transaction.h')
-rw-r--r-- | common/flatpak-transaction.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/common/flatpak-transaction.h b/common/flatpak-transaction.h index 9289b804..9d387ccd 100644 --- a/common/flatpak-transaction.h +++ b/common/flatpak-transaction.h @@ -95,9 +95,9 @@ struct _FlatpakTransactionClass { GObjectClass parent_class; - void (*new_operation) (FlatpakTransaction *transaction, - FlatpakTransactionOperation *operation, - FlatpakTransactionProgress *progress); + void (*new_operation) (FlatpakTransaction *transaction, + FlatpakTransactionOperation *operation, + FlatpakTransactionProgress *progress); void (*operation_done) (FlatpakTransaction *transaction, FlatpakTransactionOperation *operation, const char *commit, @@ -114,6 +114,12 @@ struct _FlatpakTransactionClass const char *ref, const char *reason, const char *rebase); + gboolean (*end_of_lifed_with_rebase) (FlatpakTransaction *transaction, + const char *remote, + const char *ref, + const char *reason, + const char *rebased_to_ref, + const char **previous_ids); gboolean (*ready) (FlatpakTransaction *transaction); gboolean (*add_new_remote) (FlatpakTransaction *transaction, @@ -220,6 +226,13 @@ gboolean flatpak_transaction_add_install (FlatpakTransaction *self, const char **subpaths, GError **error); FLATPAK_EXTERN +gboolean flatpak_transaction_add_rebase (FlatpakTransaction *self, + const char *remote, + const char *ref, + const char **subpaths, + const char **previous_ids, + GError **error); +FLATPAK_EXTERN gboolean flatpak_transaction_add_install_bundle (FlatpakTransaction *self, GFile *file, GBytes *gpg_data, |