summaryrefslogtreecommitdiffstats
path: root/src/game.h
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-03-16 10:13:58 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-03-16 10:13:58 (EDT)
commit71e445c1ffd01b371c9b3060a57c866dc85e3e00 (patch)
treeacb798330759368e861b35fd114216a0cd9718b0 /src/game.h
parent60abe24450a8d02b0a0f85c40190f26472fb5ab8 (diff)
downloaddodge-balls-71e445c1ffd01b371c9b3060a57c866dc85e3e00.zip
dodge-balls-71e445c1ffd01b371c9b3060a57c866dc85e3e00.tar.gz
dodge-balls-71e445c1ffd01b371c9b3060a57c866dc85e3e00.tar.bz2
db_games_find(): Initialize game structures
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game.h b/src/game.h
index f49c7e8..8065105 100644
--- a/src/game.h
+++ b/src/game.h
@@ -20,6 +20,13 @@
#ifndef DB_GAME_H_
#define DB_GAME_H_
-int db_games_find(const char *games_dir, char ***games);
+struct db_game;
+
+int db_games_find(const char *games_dir, struct db_game ***games);
+const char *db_game_get_name(struct db_game *game)
+ __attribute__((__pure__));
+const char *db_game_get_desc(struct db_game *game)
+ __attribute__((__pure__));
+void db_game_free(struct db_game *game);
#endif /* DB_GAME_H_ */