shared: add nm_auto_destroy_and_unref_gsource macro

This commit is contained in:
Thomas Haller 2019-11-02 15:36:41 +01:00
parent 01335ecec6
commit 3b95905ae3

View file

@ -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