repo: Make commit_transaction introspectable

This commit is contained in:
Jasper St. Pierre 2013-09-07 01:37:09 -04:00
parent 3dcff0b2c4
commit 2506e8fb26
1 changed files with 12 additions and 0 deletions

View File

@ -720,6 +720,18 @@ ostree_repo_transaction_set_ref (OstreeRepo *self,
g_hash_table_replace (self->txn_refs, refspec, g_strdup (checksum)); g_hash_table_replace (self->txn_refs, refspec, g_strdup (checksum));
} }
/**
* ostree_repo_commit_transaction:
* @self: An #OstreeRepo
* @out_stats: (allow-none) (out): A set of statisitics of things
* that happened during this transaction.
* @cancellable: Cancellable
* @error: Error
*
* Complete the transaction. Any refs set with
* ostree_repo_transaction_set_ref() or
* ostree_repo_transaction_set_refspec() will be written out.
*/
gboolean gboolean
ostree_repo_commit_transaction (OstreeRepo *self, ostree_repo_commit_transaction (OstreeRepo *self,
OstreeRepoTransactionStats *out_stats, OstreeRepoTransactionStats *out_stats,