/usr/include/dballe/transaction.h is in libdballe-dev 7.21-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #ifndef DBALLE_TRANSACTION_H
#define DBALLE_TRANSACTION_H
namespace dballe {
/**
* A RAII transaction interface.
*
* The transaction will be valid during the lifetime of this object.
*
* You can commit or rollback the transaction using its methods. If at
* destruction time the transaction has not been committed or rolled back, a
* rollback is automatically performed.
*/
class Transaction
{
public:
virtual ~Transaction() {}
/// Commit this transaction
virtual void commit() = 0;
/// Roll back this transaction
virtual void rollback() = 0;
};
}
#endif
|