From 2fcf2da1801845cf94f84f5f9d3f1bb27f4501a6 Mon Sep 17 00:00:00 2001 From: hemagx Date: Sun, 31 Jan 2016 15:53:35 +0200 Subject: Move P2PTR Macro to socket header and split the macro into two macros for WFIFO/RFIFO. Change packet database enums to defines in mmo.h --- src/common/socket.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common/socket.h') diff --git a/src/common/socket.h b/src/common/socket.h index b33fd2acf..8936c7772 100644 --- a/src/common/socket.h +++ b/src/common/socket.h @@ -77,6 +77,11 @@ struct hplugin_data_store; /* [Ind/Hercules] */ #define RFIFO2PTR(fd) (void*)(sockt->session[fd]->rdata + sockt->session[fd]->rdata_pos) +#define RP2PTR(fd) RFIFO2PTR(fd) + +/* [Hemagx/Hercules] */ +#define WFIFO2PTR(fd) (void*)(sockt->session[fd]->wdata + sockt->session[fd]->wdata_pos) +#define WP2PTR(fd) WFIFO2PTR(fd) // buffer I/O macros #define RBUFP(p,pos) (((uint8*)(p)) + (pos)) -- cgit v1.2.3-60-g2f50