mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 08:18:03 +02:00
platform: expose internal buffer for to_string() functions
I'd like to reuse this buffer for other to-string functions that are platform related.
This commit is contained in:
parent
806109c245
commit
655a0e71d4
2 changed files with 2 additions and 1 deletions
|
|
@ -2435,7 +2435,7 @@ _lifetime_summary_to_string (gint32 now, guint32 timestamp, guint32 preferred, g
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char _nm_platform_to_string_buffer[256];
|
char _nm_platform_to_string_buffer[256];
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
nm_platform_link_to_string (const NMPlatformLink *link)
|
nm_platform_link_to_string (const NMPlatformLink *link)
|
||||||
|
|
|
||||||
|
|
@ -315,6 +315,7 @@ typedef struct {
|
||||||
extern const NMPlatformVTableRoute nm_platform_vtable_route_v4;
|
extern const NMPlatformVTableRoute nm_platform_vtable_route_v4;
|
||||||
extern const NMPlatformVTableRoute nm_platform_vtable_route_v6;
|
extern const NMPlatformVTableRoute nm_platform_vtable_route_v6;
|
||||||
|
|
||||||
|
extern char _nm_platform_to_string_buffer[256];
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int peer;
|
int peer;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue