summaryrefslogtreecommitdiff
path: root/src/network/core/core.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-01-30 17:12:46 +0000
committerrubidium <rubidium@openttd.org>2007-01-30 17:12:46 +0000
commit291b7925ee2fd9b7e16a521a08a5dc6689668984 (patch)
tree8f9202452382a9c2e774f1d3cfdb93dfe45a6d85 /src/network/core/core.h
parent7feba09d9fba82c278df54f5cb1ff51229a8d62c (diff)
downloadopenttd-291b7925ee2fd9b7e16a521a08a5dc6689668984.tar.xz
(svn r8459) -Codechange: move (Send|Recv)GRFIdentifier to NetworkSocketHandler, so it can also be used the TCP socket handler.
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 */