mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-03 18:52:04 +00:00
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.
This commit is contained in:
parent
a67ed43b71
commit
0417975bdc
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user