提交 8cb9d249 编写于 作者: J Jiri Denemark

util: Define g_autoptr callback for FILE

Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 f600c426
......@@ -89,6 +89,7 @@ static inline void virForceCloseHelper(int *fd)
*/
#define VIR_AUTOCLOSE __attribute__((cleanup(virForceCloseHelper))) int
G_DEFINE_AUTOPTR_CLEANUP_FUNC(FILE, fclose);
/* Opaque type for managing a wrapper around a fd. */
struct _virFileWrapperFd;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册