aboutsummaryrefslogtreecommitdiff
path: root/src/transaction-heap.h
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-11-10 08:29:58 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-10 08:33:56 +0000
commit776276d5c7e67356a880f3e31076d32cdc1c1882 (patch)
treecbde131f3d46338adee9c67ac0f988295736bdd4 /src/transaction-heap.h
downloadcoursework-master.tar.gz
publishHEADmaster
Diffstat (limited to 'src/transaction-heap.h')
-rw-r--r--src/transaction-heap.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/transaction-heap.h b/src/transaction-heap.h
new file mode 100644
index 0000000..43eeea3
--- /dev/null
+++ b/src/transaction-heap.h
@@ -0,0 +1,18 @@
1// transaction-heap.h
2#ifndef INCLUDED_TRANSACTION_HEAP_H
3#define INCLUDED_TRANSACTION_HEAP_H
4
5#include <stdint.h>
6
7#include "transaction.h"
8
9struct transaction_heap {
10 struct transaction array[100];
11 int count;
12};
13
14void transaction_heap__pop (struct transaction_heap *);
15void transaction_heap__push (struct transaction_heap *, struct transaction);
16
17#endif // INCLUDED_TRANSACTION_HEAP_H
18// transaction-heap.h ends here