summaryrefslogtreecommitdiff
path: root/src/network/core/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/core/core.h')
-rw-r--r--src/network/core/core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/network/core/core.h b/src/network/core/core.h
index a4cef3b5e..865213471 100644
--- a/src/network/core/core.h
+++ b/src/network/core/core.h
@@ -6,6 +6,7 @@
#ifdef ENABLE_NETWORK
#include "os_abstraction.h"
+#include "../../newgrf_config.h"
/**
* @file core.h Base for all network types (UDP and TCP)
@@ -27,6 +28,9 @@ typedef enum {
NETWORK_RECV_STATUS_CLOSE_QUERY, ///< Done quering the server
} NetworkRecvStatus;
+/** Forward declaration due to circular dependencies */
+class Packet;
+
/**
* SocketHandler for all network sockets in OpenTTD.
*/
@@ -66,6 +70,9 @@ public:
* @return true when the current client has quit, false otherwise
*/
bool HasClientQuit() { return this->has_quit; }
+
+ void Send_GRFIdentifier(Packet *p, const GRFIdentifier *grf);
+ void Recv_GRFIdentifier(Packet *p, GRFIdentifier *grf);
};
#endif /* ENABLE_NETWORK */