mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 01:20:07 +01:00
shared/strbuf: add nm_str_buf_get_str_unsafe() helper function to give direct access to string buffer
This commit is contained in:
parent
7dc467bbbc
commit
f8efed528d
1 changed files with 7 additions and 0 deletions
|
|
@ -217,6 +217,13 @@ nm_str_buf_get_str (NMStrBuf *strbuf)
|
|||
return strbuf->_str;
|
||||
}
|
||||
|
||||
static inline char *
|
||||
nm_str_buf_get_str_unsafe (NMStrBuf *strbuf)
|
||||
{
|
||||
_nm_str_buf_assert (strbuf);
|
||||
return strbuf->_str;
|
||||
}
|
||||
|
||||
/**
|
||||
* nm_str_buf_finalize:
|
||||
* @strbuf: an initilized #NMStrBuf
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue