mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 19:50:08 +01:00
shared: add nm_auto_unref_io_channel cleanup macro
This commit is contained in:
parent
b911cc17d8
commit
6a9ab7bb30
1 changed files with 3 additions and 0 deletions
|
|
@ -310,6 +310,9 @@ _nm_auto_protect_errno (int *p_saved_errno)
|
|||
NM_AUTO_DEFINE_FCN0 (GSource *, _nm_auto_unref_gsource, g_source_unref);
|
||||
#define nm_auto_unref_gsource nm_auto(_nm_auto_unref_gsource)
|
||||
|
||||
NM_AUTO_DEFINE_FCN0 (GIOChannel *, _nm_auto_unref_io_channel, g_io_channel_unref)
|
||||
#define nm_auto_unref_io_channel nm_auto(_nm_auto_unref_io_channel)
|
||||
|
||||
NM_AUTO_DEFINE_FCN0 (GMainLoop *, _nm_auto_unref_gmainloop, g_main_loop_unref);
|
||||
#define nm_auto_unref_gmainloop nm_auto(_nm_auto_unref_gmainloop)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue