diff options
Diffstat (limited to 'dependencies/nDPIsrvd.h')
-rw-r--r-- | dependencies/nDPIsrvd.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dependencies/nDPIsrvd.h b/dependencies/nDPIsrvd.h index 60d7f4032..1c0b4c23e 100644 --- a/dependencies/nDPIsrvd.h +++ b/dependencies/nDPIsrvd.h @@ -1645,4 +1645,14 @@ static inline void nDPIsrvd_flow_info(struct nDPIsrvd_socket const * const sock, } } +static inline int nDPIsrvd_json_buffer_length(struct nDPIsrvd_socket const * const sock) +{ + return (int)sock->buffer.json_string_length; +} + +static inline char const *nDPIsrvd_json_buffer_string(struct nDPIsrvd_socket const * const sock) +{ + return sock->buffer.json_string; +} + #endif |