mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 23:20:34 +01:00
shared: add nm_auto_destroy_and_unref_gsource macro
This commit is contained in:
parent
01335ecec6
commit
3b95905ae3
1 changed files with 3 additions and 0 deletions
|
|
@ -925,6 +925,9 @@ nm_g_source_destroy_and_unref (GSource *source)
|
|||
g_source_unref (source);
|
||||
}
|
||||
|
||||
NM_AUTO_DEFINE_FCN0 (GSource *, _nm_auto_destroy_and_unref_gsource, nm_g_source_destroy_and_unref);
|
||||
#define nm_auto_destroy_and_unref_gsource nm_auto(_nm_auto_destroy_and_unref_gsource)
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
static inline int
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue