mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 04:28:29 +02:00
platform: add nm_platform_try_get() function
(cherry picked from commit 90caa93582)
This commit is contained in:
parent
e43baa1481
commit
2f4db91fcc
2 changed files with 7 additions and 0 deletions
|
|
@ -124,6 +124,12 @@ nm_platform_get ()
|
||||||
return singleton_instance;
|
return singleton_instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NMPlatform *
|
||||||
|
nm_platform_try_get (void)
|
||||||
|
{
|
||||||
|
return singleton_instance;
|
||||||
|
}
|
||||||
|
|
||||||
/******************************************************************/
|
/******************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -489,6 +489,7 @@ GType nm_platform_get_type (void);
|
||||||
|
|
||||||
void nm_platform_setup (NMPlatform *instance);
|
void nm_platform_setup (NMPlatform *instance);
|
||||||
NMPlatform *nm_platform_get (void);
|
NMPlatform *nm_platform_get (void);
|
||||||
|
NMPlatform *nm_platform_try_get (void);
|
||||||
|
|
||||||
#define NM_PLATFORM_GET (nm_platform_get ())
|
#define NM_PLATFORM_GET (nm_platform_get ())
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue