summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/misc.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/apps/misc.c b/apps/misc.c
index caf2ce5cd4..3e93cc9649 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -1133,15 +1133,6 @@ int read_line(int fd, char* buffer, int buffer_size)
1133 return rdbufend >= 0 ? num_read : -1; 1133 return rdbufend >= 0 ? num_read : -1;
1134} 1134}
1135 1135
1136int confirm_delete_yesno(const char *name)
1137{
1138 const char *lines[] = { ID2P(LANG_REALLY_DELETE), name };
1139 const char *yes_lines[] = { ID2P(LANG_DELETING), name };
1140 const struct text_message message = { lines, 2 };
1141 const struct text_message yes_message = { yes_lines, 2 };
1142 return gui_syncyesno_run(&message, &yes_message, NULL);
1143}
1144
1145char* skip_whitespace(char* const str) 1136char* skip_whitespace(char* const str)
1146{ 1137{
1147 char *s = str; 1138 char *s = str;
@@ -1153,6 +1144,16 @@ char* skip_whitespace(char* const str)
1153} 1144}
1154 1145
1155#if !defined(CHECKWPS) && !defined(DBTOOL) 1146#if !defined(CHECKWPS) && !defined(DBTOOL)
1147
1148int confirm_delete_yesno(const char *name)
1149{
1150 const char *lines[] = { ID2P(LANG_REALLY_DELETE), name };
1151 const char *yes_lines[] = { ID2P(LANG_DELETING), name };
1152 const struct text_message message = { lines, 2 };
1153 const struct text_message yes_message = { yes_lines, 2 };
1154 return gui_syncyesno_run(&message, &yes_message, NULL);
1155}
1156
1156/* time_split_units() 1157/* time_split_units()
1157 split time values depending on base unit 1158 split time values depending on base unit
1158 unit_idx: UNIT_HOUR, UNIT_MIN, UNIT_SEC, UNIT_MS 1159 unit_idx: UNIT_HOUR, UNIT_MIN, UNIT_SEC, UNIT_MS