summaryrefslogtreecommitdiff
path: root/src/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/global.h')
-rw-r--r--src/global.h38
1 files changed, 1 insertions, 37 deletions
diff --git a/src/global.h b/src/global.h
index 4a73d9e..fe8f5c2 100644
--- a/src/global.h
+++ b/src/global.h
@@ -53,42 +53,6 @@ struct global_config {
struct global_send_email send_email;
};
-#if __MAIN_FILE_C
-struct global_config Global = {
- .user = {
- .name = NULL,
- .email = NULL,
- },
- .core = {
- .verbose = false,
- .interactive = true,
- .sms_init = true,
- .baud_rate = B115200,
- .read_timeout = 5000,
- .device = DEFAULT_DEVICE,
- .msg_store_read = "MT",
- .msg_store_send = "MT",
- .msg_store_new = "MT",
- .pb_store = "ME",
- .editor = "vi",
- .edit_file = "${HOME}/.smsmsg",
- },
- .smtp = {
- .server = NULL,
- .port = 0,
- .user = NULL,
- .passwd = NULL,
- .encryption = NULL,
- },
- .send_email = {
- .domain = NULL,
- },
-};
-#else
-extern struct global_config Global;
-#endif
-
-
+GLOBAL_EXTERN struct global_config Global;
#endif /* ~__GLOBAL_H */
-