29 lines
743 B
C
29 lines
743 B
C
/**
|
|
* @file entry.h
|
|
* Entry structure header file used in the program
|
|
*
|
|
* @todo Add the functions prototypes to this header
|
|
*/
|
|
#ifndef ENTRY_H
|
|
#define ENTRY_H
|
|
|
|
#include "money.h"
|
|
|
|
/**
|
|
* @struct entry
|
|
* @brief Struct representing an entry in the the T-Account
|
|
*/
|
|
typedef struct entry {
|
|
char *name; ///< Name of the entry
|
|
char *description; ///< Description of the entry
|
|
Money *value; ///< Monetary value of the Entry
|
|
struct entry *next; ///< Pointer to the next entry in the list of entries
|
|
} Entry;
|
|
|
|
Entry *initializeEntry(char *name, char *description);
|
|
void setEntryValue(Entry *entry, Money *value);
|
|
void appendEntry(Entry *entry, Entry *newEntry);
|
|
void traverseEntry(Entry *entry);
|
|
void destroyEntry(Entry *entry);
|
|
|
|
#endif |