diff options
author | rubidium <rubidium@openttd.org> | 2007-01-30 17:12:46 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-01-30 17:12:46 +0000 |
commit | cd6a826ecfb8a284ad0f74089afbb74fbbad20dd (patch) | |
tree | 8f9202452382a9c2e774f1d3cfdb93dfe45a6d85 /src/network/core/core.h | |
parent | 3090873224b445d78736e2d58a636a346b524c2e (diff) | |
download | openttd-cd6a826ecfb8a284ad0f74089afbb74fbbad20dd.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.h | 7 |
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 */ |