From c5826edc22894af945509905eeb7a155b8ce2d87 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sun, 23 Jan 2011 16:52:32 +0100 Subject: added global data store and update function --- src/global.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/global.h (limited to 'src/global.h') diff --git a/src/global.h b/src/global.h new file mode 100644 index 0000000..c8ad6d3 --- /dev/null +++ b/src/global.h @@ -0,0 +1,25 @@ +#ifndef OXEN_GLOBAL_H +#define OXEN_GLOBAL_H + +#include "player.h" +#include "table_stacks.h" +#include "hand.h" + +typedef struct +{ + player_list players; + table_stacks_t table_stacks; + hand_t hand; +} data_store; + +typedef enum +{ + update_type_players = 0x0, + update_type_stacks = 0x1, + update_type_hand = 0x2 +} update_type_t; + +void updated_model(update_type_t type); +data_store* datamodel(); + +#endif // OXEN_GLOBAL_H -- cgit v1.2.3