From: Christopher Faulet Date: Tue, 21 Apr 2020 08:46:43 +0000 (+0200) Subject: MINOR: ist: Add a function to retrieve the ist pointer X-Git-Tag: v2.2-dev7~90 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0417975bdc95ebbd85980f1a066cf7d803fb358a;p=thirdparty%2Fhaproxy.git MINOR: ist: Add a function to retrieve the ist pointer There is already the istlen() function to get the ist length. Now, it is possible to call istptr() to get the ist pointer. --- diff --git a/include/common/ist.h b/include/common/ist.h index 68c83ffa0e..2b5178f8c0 100644 --- a/include/common/ist.h +++ b/include/common/ist.h @@ -211,6 +211,12 @@ static inline char *ist0(struct ist ist) return ist.ptr; } +/* returns the pointer of the string */ +static inline char *istptr(const struct ist ist) +{ + return ist.ptr; +} + /* returns the length of the string */ static inline size_t istlen(const struct ist ist) {