74 #define RESERVATION_H 1
228 #define RESERVATION_INFO_ALLOC(type, id, price) \
229 reservation_info_alloc(TM_ARG type, id, price)
230 #define RESERVATION_INFO_FREE(r) \
231 reservation_info_free(TM_ARG r)
233 #define RESERVATION_ALLOC(id, price, tot) \
234 reservation_alloc(TM_ARG id, price, tot)
235 #define RESERVATION_ADD_TO_TOTAL(r, num) \
236 reservation_addToTotal(TM_ARG r, num)
237 #define RESERVATION_MAKE(r) \
238 reservation_make(TM_ARG r)
239 #define RESERVATION_CANCEL(r) \
240 reservation_cancel(TM_ARG r)
241 #define RESERVATION_UPDATE_PRICE(r, price) \
242 reservation_updatePrice(TM_ARG r, price)
243 #define RESERVATION_FREE(r) \
244 reservation_free(TM_ARG r)
long reservation_compare(reservation_t *aPtr, reservation_t *bPtr)
Definition: reservation.c:390
reservation_t * reservation_alloc_seq(long id, long price, long numTotal)
Definition: reservation.c:210
#define TM_CALLABLE
Definition: cxxtm.hpp:32
TM_CALLABLE reservation_info_t * reservation_info_alloc(TM_ARGDECL reservation_type_t type, long id, long price)
Definition: reservation.c:94
bool_t reservation_cancel_seq(reservation_t *reservationPtr)
Definition: reservation.c:333
TM_CALLABLE bool_t reservation_make(TM_ARGDECL reservation_t *reservationPtr)
Definition: reservation.c:275
TM_CALLABLE bool_t reservation_updatePrice(TM_ARGDECL reservation_t *reservationPtr, long newPrice)
Definition: reservation.c:355
TM_CALLABLE long reservation_info_compare(reservation_info_t *aPtr, reservation_info_t *bPtr)
Definition: reservation.c:126
long id
Definition: reservation.h:94
unsigned long ulong_t
Definition: types.h:88
struct reservation reservation_t
bool_t reservation_updatePrice_seq(reservation_t *reservationPtr, long newPrice)
Definition: reservation.c:370
struct reservation_info reservation_info_t
TM_CALLABLE bool_t reservation_addToTotal(TM_ARGDECL reservation_t *reservationPtr, long num)
Definition: reservation.c:235
long price
Definition: reservation.h:98
Definition: reservation.h:93
int bool_t
Definition: portable_defns.h:32
#define TM_ARGDECL
Definition: tm.h:532
TM_CALLABLE void reservation_free(TM_ARGDECL reservation_t *reservationPtr)
Definition: reservation.c:413
bool_t reservation_addToTotal_seq(reservation_t *reservationPtr, long num)
Definition: reservation.c:254
enum reservation_type reservation_type_t
TM_CALLABLE bool_t reservation_cancel(TM_ARGDECL reservation_t *reservationPtr)
Definition: reservation.c:314
Definition: reservation.h:81
bool_t reservation_make_seq(reservation_t *reservationPtr)
Definition: reservation.c:293
long numTotal
Definition: reservation.h:97
long id
Definition: reservation.h:89
ulong_t reservation_hash(reservation_t *reservationPtr)
Definition: reservation.c:401
TM_CALLABLE void reservation_info_free(TM_ARGDECL reservation_info_t *reservationInfoPtr)
Definition: reservation.c:114
long price
Definition: reservation.h:90
long numFree
Definition: reservation.h:96
long numUsed
Definition: reservation.h:95
reservation_type_t type
Definition: reservation.h:88
TM_CALLABLE reservation_t * reservation_alloc(TM_ARGDECL long id, long price, long numTotal)
Definition: reservation.c:191
reservation_type
Definition: reservation.h:80
Definition: reservation.h:83
Definition: reservation.h:87
Definition: reservation.h:84
Definition: reservation.h:82