Files
@ r10031:f42fea05eb07
Branch filter:
Location: cpp/openttd-patchpack/source/src/network/network_gui.h - annotation
r10031:f42fea05eb07
876 B
text/x-c
(svn r14190) -Codechange: use alloc instead of malloc+free when the allocated memory shouldn't be used after the function ended.
r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r9111:983de9c5a848 r9111:983de9c5a848 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r9428:6800206a6c0d r9428:6800206a6c0d r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5587:034e5e185dc2 r6531:6adce565d8c5 r6247:96e840dbefcc r6247:96e840dbefcc r6247:96e840dbefcc r9241:4fad6d9f7a34 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r6531:6adce565d8c5 r6247:96e840dbefcc r6247:96e840dbefcc r9241:4fad6d9f7a34 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 | /* $Id$ */
/** @file network_gui.h GUIs related to networking. */
#ifndef NETWORK_GUI_H
#define NETWORK_GUI_H
#ifdef ENABLE_NETWORK
#include "../window_type.h"
#include "network_type.h"
void ShowNetworkNeedPassword(NetworkPasswordType npt);
void ShowNetworkGiveMoneyWindow(PlayerID player); // PlayerID
void ShowNetworkChatQueryWindow(DestType type, int dest);
void ShowJoinStatusWindow();
void ShowNetworkGameWindow();
void ShowClientList();
void ShowNetworkCompanyPasswordWindow(Window *parent);
#else /* ENABLE_NETWORK */
/* Network function stubs when networking is disabled */
static inline void ShowNetworkChatQueryWindow(byte desttype, int dest) {}
static inline void ShowClientList() {}
static inline void ShowNetworkGameWindow() {}
static inline void ShowNetworkCompanyPasswordWindow(Window *parent) {}
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_GUI_H */
|