CrimsonCare
CrimsonCare is a C project designed to provide a robust solution for blood management.
 
Loading...
Searching...
No Matches
transaction_manager.h
Go to the documentation of this file.
1
31#ifndef TRANSACTION_MANAGER_H
32#define TRANSACTION_MANAGER_H
33
34#include <stdbool.h>
35#include <stdint.h>
36#include <stdio.h>
37#include <stdlib.h>
38#include <string.h>
39#include <time.h>
40#include <errno.h>
41
47#define MAX_TRANSACTION_NAME_LENGTH 50
48
54#define MAX_TRANSACTION_DATE_LENGTH 11
55
61#define MAX_TRANSACTION_TOKEN_LENGTH 12
62
72
105bool logTransaction(TransactionType type, const char* name, uint32_t bloodId, uint32_t quantity, const char* date, const char* token);
106
135bool addTransaction(TransactionType type, const char* name, uint32_t bloodId, uint32_t quantity);
136
137
147void displayTransactions(void);
148
153
154#endif
void freeTransaction(void)
Free transaction list from memory.
TransactionType
Transaction type enum.
void displayTransactions(void)
Display all transactions.