summaryrefslogtreecommitdiffstats
path: root/apps/talk.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/talk.h')
-rw-r--r--apps/talk.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/talk.h b/apps/talk.h
index a643cd4f89..bfd8e496af 100644
--- a/apps/talk.h
+++ b/apps/talk.h
@@ -55,6 +55,15 @@ enum {
UNIT_LAST /* END MARKER */
};
+/* Status of loading talk file, shown in debug_menu */
+enum talk_status {
+ TALK_STATUS_OK = 0,
+ TALK_STATUS_ERR_OOM,
+ TALK_STATUS_ERR_ALLOC,
+ TALK_STATUS_ERR_NOFILE,
+ TALK_STATUS_ERR_INCOMPATIBLE
+};
+
#define UNIT_SHIFT (32-5) /* this many bits left from UNIT_xx enum */
#define DECIMAL_SHIFT (32 - 8)
@@ -174,6 +183,7 @@ struct talk_debug_data {
int cached_clips;
int cache_hits;
int cache_misses;
+ enum talk_status status;
};
bool talk_get_debug_data(struct talk_debug_data *data);