-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathstrings.c
77 lines (70 loc) · 3.11 KB
/
strings.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/**
* @file strings.c
* @brief Common string variables used throughout the entire program.
* @author Copyright (c) 2019 Quantum Corporation
*/
#include <stddef.h>
#include <cdk.h>
#include "prototypes.h"
/* Dialog radio widget options */
char *g_no_yes_opts[] = {"No", "Yes"},
*g_auth_meth_opts[] = {"None", "Plain Text", "CRAM-MD5"},
*g_ip_opts[] = {"Disabled", "Static", "DHCP"},
*g_hw_write_opts[] = {"Write Through", "Write Back"},
*g_hw_read_opts[] = {"No Read-ahead", "Use Read-ahead"},
*g_hw_raid_opts[] = {"0", "1", "5", "6"},
*g_dsbl_enbl_opts[] = {"Disabled (0)", "Enabled (1)"},
*g_fs_type_opts[] = {"xfs", "btrfs", "ext3", "ext4"},
*g_md_level_opts[] = {"raid0", "raid1", "raid10",
"raid6", "raid5", "raid4"},
*g_md_chunk_opts[] = {"8K", "16K", "32K", "64K", "128K", "512K"};
/* Misc. widget related strings */
char *g_choice_char[] = {"[ ] ", "[*] "},
*g_bonding_map[] = {"None", "Master", "Slave"},
*g_scst_dev_types[] = {"<C>dev_disk", "<C>dev_disk_perf",
"<C>vcdrom", "<C>vdisk_blockio", "<C>vdisk_fileio", "<C>vdisk_nullio",
"<C>dev_changer", "<C>dev_tape", "<C>dev_tape_perf"},
*g_scst_bs_list[] = {"512", "1024", "2048", "4096", "8192"},
*g_fio_types[] = {"<C>File System", "<C>Block Device"},
*g_sync_label_msg[] = {"", "",
"</B> Synchronizing ESOS configuration... ", "", ""},
*g_save_label_msg[] = {"", "",
"</B> Writing the SCST configuration... ", "", ""},
*g_add_ld_label_msg[] = {"", "",
"</B> Adding the new logical drive... ", "", ""},
*g_add_array_label_msg[] = {"", "",
"</B> Adding the new MD array... ", "", ""},
*g_add_lv_label_msg[] = {"", "",
"</B> Adding the new LVM LV... ", "", ""};
/* Button strings */
char *g_ok_cancel_msg[] = {"</B> OK ", "</B> Cancel "},
*g_ok_msg[] = {"</B> OK "},
*g_yes_no_msg[] = {"</B> Yes ", "</B> No "};
/* Other string stuff */
char *g_transports[] = {"unknown", "scsi", "ide", "dac960", "cpqarray",
"file", "ataraid", "i2o", "ubd", "dasd", "viodasd", "sx8", "dm"},
*g_scst_handlers[] = {"dev_disk", "dev_disk_perf", "vcdrom",
"vdisk_blockio", "vdisk_fileio", "vdisk_nullio", "dev_changer",
"dev_tape", "dev_tape_perf"};
/* Functions to return the sizes */
size_t g_scst_dev_types_size() {
return (sizeof g_scst_dev_types) / (sizeof g_scst_dev_types[0]);
}
size_t g_scst_handlers_size() {
return (sizeof g_scst_handlers) / (sizeof g_scst_handlers[0]);
}
size_t g_sync_label_msg_size() {
return (sizeof g_sync_label_msg) / (sizeof g_sync_label_msg[0]);
}
size_t g_save_label_msg_size() {
return (sizeof g_save_label_msg) / (sizeof g_save_label_msg[0]);
}
size_t g_add_ld_label_msg_size() {
return (sizeof g_add_ld_label_msg) / (sizeof g_add_ld_label_msg[0]);
}
size_t g_add_array_label_msg_size() {
return (sizeof g_add_array_label_msg) / (sizeof g_add_array_label_msg[0]);
}
size_t g_add_lv_label_msg_size() {
return (sizeof g_add_lv_label_msg) / (sizeof g_add_lv_label_msg[0]);
}