summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-10-10 21:49:59 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-10-10 21:49:59 +0000
commitdc91319dc2e2ddccc0e57066fae4659b27843019 (patch)
treef12d90ad86db692d7fd1ef426b6cb96cfb37b408
parent90e165c346759d806e9d71122922b44499da34d5 (diff)
etrophy: return const lists
SVN revision: 77822
-rw-r--r--src/lib/Etrophy.h8
-rw-r--r--src/lib/etrophy.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/Etrophy.h b/src/lib/Etrophy.h
index cd83072..ee6117e 100644
--- a/src/lib/Etrophy.h
+++ b/src/lib/Etrophy.h
@@ -90,7 +90,7 @@ EAPI void etrophy_level_free(Etrophy_Level *level);
90EAPI const char *etrophy_level_name_get(const Etrophy_Level *level); 90EAPI const char *etrophy_level_name_get(const Etrophy_Level *level);
91EAPI void etrophy_level_score_add(Etrophy_Level *level, Etrophy_Score *escore); 91EAPI void etrophy_level_score_add(Etrophy_Level *level, Etrophy_Score *escore);
92EAPI void etrophy_level_score_del(Etrophy_Level *level, Etrophy_Score *escore); 92EAPI void etrophy_level_score_del(Etrophy_Level *level, Etrophy_Score *escore);
93EAPI Eina_List *etrophy_level_scores_list_get(const Etrophy_Level *level); 93EAPI const Eina_List *etrophy_level_scores_list_get(const Etrophy_Level *level);
94EAPI void etrophy_level_scores_list_clear(Etrophy_Level *level); 94EAPI void etrophy_level_scores_list_clear(Etrophy_Level *level);
95 95
96/* Etrophy_Gamescore */ 96/* Etrophy_Gamescore */
@@ -103,19 +103,19 @@ EAPI Eina_Bool etrophy_gamescore_save(Etrophy_Gamescore *gamescore, const char *
103EAPI void etrophy_gamescore_level_add(Etrophy_Gamescore *gamescore, Etrophy_Level *level); 103EAPI void etrophy_gamescore_level_add(Etrophy_Gamescore *gamescore, Etrophy_Level *level);
104EAPI void etrophy_gamescore_level_del(Etrophy_Gamescore *gamescore, Etrophy_Level *level); 104EAPI void etrophy_gamescore_level_del(Etrophy_Gamescore *gamescore, Etrophy_Level *level);
105EAPI Etrophy_Level *etrophy_gamescore_level_get(Etrophy_Gamescore *gamescore, const char *name); 105EAPI Etrophy_Level *etrophy_gamescore_level_get(Etrophy_Gamescore *gamescore, const char *name);
106EAPI Eina_List *etrophy_gamescore_levels_list_get(const Etrophy_Gamescore *gamescore); 106EAPI const Eina_List *etrophy_gamescore_levels_list_get(const Etrophy_Gamescore *gamescore);
107EAPI void etrophy_gamescore_levels_list_clear(Etrophy_Gamescore *gamescore); 107EAPI void etrophy_gamescore_levels_list_clear(Etrophy_Gamescore *gamescore);
108 108
109EAPI void etrophy_gamescore_trophy_add(Etrophy_Gamescore *gamescore, Etrophy_Trophy *trophy); 109EAPI void etrophy_gamescore_trophy_add(Etrophy_Gamescore *gamescore, Etrophy_Trophy *trophy);
110EAPI void etrophy_gamescore_trophy_del(Etrophy_Gamescore *gamescore, Etrophy_Trophy *trophy); 110EAPI void etrophy_gamescore_trophy_del(Etrophy_Gamescore *gamescore, Etrophy_Trophy *trophy);
111EAPI Etrophy_Trophy *etrophy_gamescore_trophy_get(Etrophy_Gamescore *gamescore, const char *name); 111EAPI Etrophy_Trophy *etrophy_gamescore_trophy_get(Etrophy_Gamescore *gamescore, const char *name);
112EAPI Eina_List *etrophy_gamescore_trophies_list_get(const Etrophy_Gamescore *gamescore); 112EAPI const Eina_List *etrophy_gamescore_trophies_list_get(const Etrophy_Gamescore *gamescore);
113EAPI void etrophy_gamescore_trophies_list_clear(Etrophy_Gamescore *gamescore); 113EAPI void etrophy_gamescore_trophies_list_clear(Etrophy_Gamescore *gamescore);
114 114
115EAPI void etrophy_gamescore_lock_add(Etrophy_Gamescore *gamescore, Etrophy_Lock *lock); 115EAPI void etrophy_gamescore_lock_add(Etrophy_Gamescore *gamescore, Etrophy_Lock *lock);
116EAPI void etrophy_gamescore_lock_del(Etrophy_Gamescore *gamescore, Etrophy_Lock *lock); 116EAPI void etrophy_gamescore_lock_del(Etrophy_Gamescore *gamescore, Etrophy_Lock *lock);
117EAPI Etrophy_Lock *etrophy_gamescore_lock_get(Etrophy_Gamescore *gamescore, const char *name); 117EAPI Etrophy_Lock *etrophy_gamescore_lock_get(Etrophy_Gamescore *gamescore, const char *name);
118EAPI Eina_List *etrophy_gamescore_locks_list_get(const Etrophy_Gamescore *gamescore); 118EAPI const Eina_List *etrophy_gamescore_locks_list_get(const Etrophy_Gamescore *gamescore);
119EAPI void etrophy_gamescore_locks_list_clear(Etrophy_Gamescore *gamescore); 119EAPI void etrophy_gamescore_locks_list_clear(Etrophy_Gamescore *gamescore);
120 120
121EAPI void etrophy_gamescore_clear(Etrophy_Gamescore *gamescore); 121EAPI void etrophy_gamescore_clear(Etrophy_Gamescore *gamescore);
diff --git a/src/lib/etrophy.c b/src/lib/etrophy.c
index ee036d6..b2c6829 100644
--- a/src/lib/etrophy.c
+++ b/src/lib/etrophy.c
@@ -430,7 +430,7 @@ etrophy_level_scores_list_clear(Etrophy_Level *level)
430 etrophy_score_free(data); 430 etrophy_score_free(data);
431} 431}
432 432
433EAPI inline Eina_List * 433EAPI inline const Eina_List *
434etrophy_level_scores_list_get(const Etrophy_Level *level) 434etrophy_level_scores_list_get(const Etrophy_Level *level)
435{ 435{
436 EINA_SAFETY_ON_NULL_RETURN_VAL(level, NULL); 436 EINA_SAFETY_ON_NULL_RETURN_VAL(level, NULL);
@@ -572,7 +572,7 @@ etrophy_gamescore_levels_list_clear(Etrophy_Gamescore *gamescore)
572 etrophy_level_free(data); 572 etrophy_level_free(data);
573} 573}
574 574
575EAPI inline Eina_List * 575EAPI inline const Eina_List *
576etrophy_gamescore_levels_list_get(const Etrophy_Gamescore *gamescore) 576etrophy_gamescore_levels_list_get(const Etrophy_Gamescore *gamescore)
577{ 577{
578 EINA_SAFETY_ON_NULL_RETURN_VAL(gamescore, NULL); 578 EINA_SAFETY_ON_NULL_RETURN_VAL(gamescore, NULL);
@@ -618,7 +618,7 @@ etrophy_gamescore_trophies_list_clear(Etrophy_Gamescore *gamescore)
618 etrophy_trophy_free(data); 618 etrophy_trophy_free(data);
619} 619}
620 620
621EAPI inline Eina_List * 621EAPI inline const Eina_List *
622etrophy_gamescore_trophies_list_get(const Etrophy_Gamescore *gamescore) 622etrophy_gamescore_trophies_list_get(const Etrophy_Gamescore *gamescore)
623{ 623{
624 EINA_SAFETY_ON_NULL_RETURN_VAL(gamescore, NULL); 624 EINA_SAFETY_ON_NULL_RETURN_VAL(gamescore, NULL);
@@ -673,7 +673,7 @@ etrophy_gamescore_clear(Etrophy_Gamescore *gamescore)
673 etrophy_gamescore_trophies_list_clear(gamescore); 673 etrophy_gamescore_trophies_list_clear(gamescore);
674} 674}
675 675
676EAPI inline Eina_List * 676EAPI inline const Eina_List *
677etrophy_gamescore_locks_list_get(const Etrophy_Gamescore *gamescore) 677etrophy_gamescore_locks_list_get(const Etrophy_Gamescore *gamescore)
678{ 678{
679 EINA_SAFETY_ON_NULL_RETURN_VAL(gamescore, NULL); 679 EINA_SAFETY_ON_NULL_RETURN_VAL(gamescore, NULL);