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:
Thomas Haller 2022-03-30 09:22:55 +02:00
parent 528a63d9cc
commit 36e709c021
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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);