transaction: Add private getter for the FlatpakDecomposed of the op

This commit is contained in:
Alexander Larsson
2020-11-09 10:15:32 +01:00
committed by Alexander Larsson
parent 3fd710b5f4
commit f2cfd53bd1
2 changed files with 9 additions and 0 deletions

View File

@@ -22,12 +22,15 @@
#define __FLATPAK_TRANSACTION_PRIVATE_H__
#include "flatpak-transaction.h"
#include "flatpak-ref-utils-private.h"
FlatpakRemoteState *flatpak_transaction_ensure_remote_state (FlatpakTransaction *self,
FlatpakTransactionOperationType kind,
const char *remote,
GError **error);
FlatpakDecomposed * flatpak_transaction_operation_get_decomposed (FlatpakTransactionOperation *self);
#include "flatpak-dir-private.h"
#endif /* __FLATPAK_TRANSACTION_PRIVATE_H__ */

View File

@@ -692,6 +692,12 @@ flatpak_transaction_operation_get_ref (FlatpakTransactionOperation *self)
return flatpak_decomposed_get_ref (self->ref);
}
FlatpakDecomposed *
flatpak_transaction_operation_get_decomposed (FlatpakTransactionOperation *self)
{
return self->ref;
}
/**
* flatpak_transaction_operation_get_related_to_ops:
* @self: a #FlatpakTransactionOperation