|
tlds
Transactional Operations for Linked Data Structures
|
#include <assert.h>#include <stdlib.h>#include "customer.h"#include "list.h"#include "memory.h"#include "reservation.h"#include "tm.h"#include "types.h"Functions | |
| static long | compareReservationInfo (const void *aPtr, const void *bPtr) |
| static TM_CALLABLE long | TMcompareReservationInfo (TM_ARGDECL const void *aPtr, const void *bPtr) |
| customer_t * | customer_alloc (TM_ARGDECL long id) |
| customer_t * | customer_alloc_seq (long id) |
| long | customer_compare (customer_t *aPtr, customer_t *bPtr) |
| void | customer_free (TM_ARGDECL customer_t *customerPtr) |
| bool_t | customer_addReservationInfo (TM_ARGDECL customer_t *customerPtr, reservation_type_t type, long id, long price) |
| bool_t | customer_removeReservationInfo (TM_ARGDECL customer_t *customerPtr, reservation_type_t type, long id) |
| long | customer_getBill (TM_ARGDECL customer_t *customerPtr) |
Variables | |
| comparator_t customer_comparereservationinfo & | compareReservationInfo |
|
static |
| bool_t customer_addReservationInfo | ( | TM_ARGDECL customer_t * | customerPtr, |
| reservation_type_t | type, | ||
| long | id, | ||
| long | price | ||
| ) |
| customer_t* customer_alloc | ( | TM_ARGDECL long | id | ) |
| customer_t* customer_alloc_seq | ( | long | id | ) |
| long customer_compare | ( | customer_t * | aPtr, |
| customer_t * | bPtr | ||
| ) |
| void customer_free | ( | TM_ARGDECL customer_t * | customerPtr | ) |
| long customer_getBill | ( | TM_ARGDECL customer_t * | customerPtr | ) |
| bool_t customer_removeReservationInfo | ( | TM_ARGDECL customer_t * | customerPtr, |
| reservation_type_t | type, | ||
| long | id | ||
| ) |
|
static |
| comparator_t customer_comparereservationinfo& compareReservationInfo |