From ec98567cc51fa1d559cf1fe076898b6537053499 Mon Sep 17 00:00:00 2001 From: Mario Kilies Date: Tue, 25 Jan 2011 13:28:15 +0100 Subject: Minor changes. Renamed global.[ch] to data_store.[ch], data_store to data_store_t and datamodel() to data_store(). --- src/global.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 src/global.c (limited to 'src/global.c') diff --git a/src/global.c b/src/global.c deleted file mode 100644 index d2c0804..0000000 --- a/src/global.c +++ /dev/null @@ -1,37 +0,0 @@ -#include -#include -#include -#include "global.h" - -static data_store* data = NULL; - -// returns global data_store -data_store* datamodel() -{ - if(data == NULL) - { - data = malloc(sizeof(data_store)); - memset(data, 0, sizeof(data_store)); - } - - return data; -} - -// indicate which part of model has been changed, -// so UI can be redrawn -void updated_model(update_type_t action) -{ - switch(action) - { - case update_type_players: - // ui_redraw_player_list() - break; - case update_type_stacks: - // ui_redraw_stacks() - break; - case update_type_hand: - // ui_redraw_hand() - break; - } -} - -- cgit v1.2.3