mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 09:30:16 +01:00
all: add "NM_UTILS_TO_STRING_BUFFER_SIZE" macro
I want to get rid of "_nm_utils_to_string_buffer" (or at least, limit and control its use). Currently it's used all over the place only to get the size of it. Add a define instead.
This commit is contained in:
parent
528a63d9cc
commit
36e709c021
1 changed files with 3 additions and 1 deletions
|
|
@ -1047,7 +1047,9 @@ int _nm_utils_ascii_str_to_bool(const char *str, int default_value);
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
extern _nm_thread_local char _nm_utils_to_string_buffer[2096];
|
||||
#define NM_UTILS_TO_STRING_BUFFER_SIZE 2096
|
||||
|
||||
extern _nm_thread_local char _nm_utils_to_string_buffer[NM_UTILS_TO_STRING_BUFFER_SIZE];
|
||||
|
||||
void nm_utils_to_string_buffer_init(char **buf, gsize *len);
|
||||
gboolean nm_utils_to_string_buffer_init_null(gconstpointer obj, char **buf, gsize *len);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue