diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-25 13:28:15 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-25 13:28:15 +0100 |
| commit | ec98567cc51fa1d559cf1fe076898b6537053499 (patch) | |
| tree | dfc07fa64a412f6ce1fa0701dc1ce5e9eacf82e7 /src/global.c | |
| parent | 52f95177eb8050f073a3d65413feb16cfce93baa (diff) | |
Minor changes. Renamed global.[ch] to data_store.[ch], data_store to data_store_t and datamodel() to data_store().
Diffstat (limited to 'src/global.c')
| -rw-r--r-- | src/global.c | 37 |
1 files changed, 0 insertions, 37 deletions
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 <stdlib.h> -#include <string.h> -#include <assert.h> -#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; - } -} - |
