diff options
Diffstat (limited to 'src/transaction-heap.h')
| -rw-r--r-- | src/transaction-heap.h | 18 |
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 | |||
| 9 | struct transaction_heap { | ||
| 10 | struct transaction array[100]; | ||
| 11 | int count; | ||
| 12 | }; | ||
| 13 | |||
| 14 | void transaction_heap__pop (struct transaction_heap *); | ||
| 15 | void transaction_heap__push (struct transaction_heap *, struct transaction); | ||
| 16 | |||
| 17 | #endif // INCLUDED_TRANSACTION_HEAP_H | ||
| 18 | // transaction-heap.h ends here | ||
