mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 06:08:02 +02:00
shared: add nm_auto_destroy_and_unref_gsource macro
(cherry picked from commit3b95905ae3) (cherry picked from commit502646f1f9)
This commit is contained in:
parent
cad2a24699
commit
bb20f18cd4
1 changed files with 3 additions and 0 deletions
|
|
@ -896,6 +896,9 @@ nm_g_source_destroy_and_unref (GSource *source)
|
||||||
g_source_unref (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
|
static inline int
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue