diff options
Diffstat (limited to 'src/clientiface.h')
-rw-r--r-- | src/clientiface.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/clientiface.h b/src/clientiface.h index 3d84944ea..d867c52fe 100644 --- a/src/clientiface.h +++ b/src/clientiface.h @@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "network/address.h" #include "porting.h" #include "threading/mutex_auto_lock.h" +#include "clientdynamicinfo.h" #include <list> #include <vector> @@ -350,6 +351,9 @@ public: void setCachedAddress(const Address &addr) { m_addr = addr; } const Address &getAddress() const { return m_addr; } + void setDynamicInfo(const ClientDynamicInfo &info) { m_dynamic_info = info; } + const ClientDynamicInfo &getDynamicInfo() const { return m_dynamic_info; } + private: // Version is stored in here after INIT before INIT2 u8 m_pending_serialization_version = SER_FMT_VER_INVALID; @@ -360,9 +364,12 @@ private: // Cached here so retrieval doesn't have to go to connection API Address m_addr; - // Client sent language code + // Client-sent language code std::string m_lang_code; + // Client-sent dynamic info + ClientDynamicInfo m_dynamic_info{}; + /* Blocks that have been sent to client. - These don't have to be sent again. |