diff options
author | Haru <haru@dotalux.com> | 2016-02-04 21:11:55 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-04 21:11:55 +0100 |
commit | a59d2cf735c961d86050ae51d345a5a81cfeb77c (patch) | |
tree | 9c09b376c9ef5d2b7fc0db696651111963e10aba /src/common/socket.h | |
parent | cbe69a98346e10ec39cb3de287614df52dd20172 (diff) | |
parent | 2fcf2da1801845cf94f84f5f9d3f1bb27f4501a6 (diff) | |
download | hercules-a59d2cf735c961d86050ae51d345a5a81cfeb77c.tar.gz hercules-a59d2cf735c961d86050ae51d345a5a81cfeb77c.tar.bz2 hercules-a59d2cf735c961d86050ae51d345a5a81cfeb77c.tar.xz hercules-a59d2cf735c961d86050ae51d345a5a81cfeb77c.zip |
Merge pull request #1129 from hemagx/map-clif_rewrite
Move P2PTR Macro and Define Packet DB enums
Diffstat (limited to 'src/common/socket.h')
-rw-r--r-- | src/common/socket.h | 5 |
1 files changed, 5 insertions, 0 deletions
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)) |