summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-08-18 01:23:26 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2021-08-19 01:17:29 +0000
commit24e8fa317e9905ee30d195c4beedd7b8939ed6e1 (patch)
treeb1dbca81e43d045c2df6fa9848e3a5bb4e9d91e8 /apps/plugin.h
parent4cbb5b42010309677f3590e3a716c69c12e8adf2 (diff)
plugins trade talk_value for talk_value_decimal
talk_value is just talk_value_decimal with 0 decimals lets add the extended function instead static inline int talk_val(long n, int unit, bool enqueue) { #define NODECIMALS 0 return rb->talk_value_decimal(n, unit, NODECIMALS, enqueue); } Change-Id: Iaba3d2f95785f2e1855e294ccf099a977bb6cb20
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 64ced00bfa..bd467bcade 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -495,7 +495,7 @@ struct plugin_api {
int (*talk_dir_or_spell)(const char* filename,
const long *prefix_ids, bool enqueue);
int (*talk_number)(long n, bool enqueue);
- int (*talk_value)(long n, int unit, bool enqueue);
+ int (*talk_value_decimal)(long n, int unit, int decimals, bool enqueue);
int (*talk_spell)(const char* spell, bool enqueue);
void (*talk_time)(const struct tm *tm, bool enqueue);
void (*talk_date)(const struct tm *tm, bool enqueue);