summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src/common.h')
-rw-r--r--protocols/Tox/src/common.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/protocols/Tox/src/common.h b/protocols/Tox/src/common.h
index 13aadf38aa..1d75169087 100644
--- a/protocols/Tox/src/common.h
+++ b/protocols/Tox/src/common.h
@@ -46,18 +46,22 @@ extern HINSTANCE g_hInstance;
#define TOX_ERROR -1
+#define TOX_MAX_CONNECT_RETRIES 200
#define TOX_MAX_DISCONNECT_RETRIES 100
+#define TOX_INI_PATH "%miranda_path%\\Plugins\\tox.ini"
+
#define TOX_SETTINGS_ID "ToxID"
#define TOX_SETTINGS_DNS "DnsID"
#define TOX_SETTINGS_GROUP "DefaultGroup"
#define TOX_SETTINGS_AVATAR_HASH "AvatarHash"
-#define TOX_SETTINGS_NODE_IPV4 "Node_%d_IPv4"
-#define TOX_SETTINGS_NODE_IPV6 "Node_%d_IPv6"
-#define TOX_SETTINGS_NODE_PORT "Node_%d_Port"
-#define TOX_SETTINGS_NODE_PKEY "Node_%d_PubKey"
-#define TOX_SETTINGS_NODE_COUNT "NodeCount"
+#define TOX_SETTINGS_NODE_PREFIX "Node_"
+#define TOX_SETTINGS_NODE_IPV4 TOX_SETTINGS_NODE_PREFIX"%d_IPv4"
+#define TOX_SETTINGS_NODE_IPV6 TOX_SETTINGS_NODE_PREFIX"%d_IPv6"
+#define TOX_SETTINGS_NODE_PORT TOX_SETTINGS_NODE_PREFIX"%d_Port"
+#define TOX_SETTINGS_NODE_PKEY TOX_SETTINGS_NODE_PREFIX"%d_PubKey"
+#define TOX_SETTINGS_NODE_COUNT TOX_SETTINGS_NODE_PREFIX"Count"
#define TOX_DB_EVENT_TYPE_ACTION 10001