#ifndef _COMMON_H_ #define _COMMON_H_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include struct CToxProto; #define now() time(nullptr) #include "version.h" #include "resource.h" #include "tox_menus.h" #include "tox_thread.h" #include "tox_address.h" #include "tox_dialogs.h" #include "tox_profile.h" #include "tox_options.h" #include "tox_transfer.h" #include "tox_proto.h" #include "http_request.h" extern HINSTANCE g_hInstance; #define MODULE "Tox" #define TOX_ERROR -1 #define TOX_DEFAULT_INTERVAL 50 #define TOX_CHECKING_INTERVAL 1000 #define TOX_MAX_CONNECT_RETRIES 10 #define TOX_MAX_RECONNECT_RETRIES 10 #define TOX_INI_PATH "%miranda_path%\\Plugins\\tox.ini" #define TOX_JSON_PATH "%miranda_userdata%\\tox.json" #define TOX_SETTINGS_ID "ToxID" #define TOX_SETTINGS_DNS "DnsID" #define TOX_SETTINGS_CHAT_ID "ChatID" #define TOX_SETTINGS_PASSWORD "Password" #define TOX_SETTINGS_GROUP "DefaultGroup" #define TOX_SETTINGS_AVATAR_HASH "AvatarHash" #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 DB_EVENT_ACTION 10000 + TOX_MESSAGE_TYPE_ACTION #define DB_EVENT_CORRECTION 10000 + TOX_MESSAGE_TYPE_CORRECTION #define TOX_MAX_AVATAR_SIZE 1 << 16 // 2 ^ 16 bytes extern HANDLE hProfileFolderPath; #endif //_COMMON_H_