From 0ba41e071c157e96d796a506ddcc73268f2b7a0c Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sat, 29 Jun 2019 15:59:51 +0100 Subject: Move _dbus_check_fdleaks_* from dbus-message-util to tests This is only called from test code. Signed-off-by: Simon McVittie --- test/test-utils.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/test-utils.h') diff --git a/test/test-utils.h b/test/test-utils.h index 8c3c171f..579fd425 100644 --- a/test/test-utils.h +++ b/test/test-utils.h @@ -1,6 +1,7 @@ /* - * Copyright 2002-2008 Red Hat Inc. + * Copyright 2002-2009 Red Hat Inc. * Copyright 2011-2017 Collabora Ltd. + * Copyright 2017 Endless Mobile, Inc. * * SPDX-License-Identifier: MIT * @@ -96,4 +97,8 @@ _DBUS_WARN_UNUSED_RESULT dbus_bool_t _dbus_test_append_different_username (DBusString *username); #endif +typedef struct DBusInitialFDs DBusInitialFDs; +DBusInitialFDs *_dbus_check_fdleaks_enter (void); +void _dbus_check_fdleaks_leave (DBusInitialFDs *fds); + #endif -- cgit v1.2.1