diff options
author | Simon McVittie <smcv@collabora.com> | 2019-06-29 15:59:51 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2019-07-02 20:44:33 +0100 |
commit | 0ba41e071c157e96d796a506ddcc73268f2b7a0c (patch) | |
tree | 51e4bb3ef9ea32fb806922750cd8780e060913f7 /test/test-utils.h | |
parent | 0b8878133f806351b213b80097b2bd6de5677f2c (diff) | |
download | dbus-0ba41e071c157e96d796a506ddcc73268f2b7a0c.tar.gz |
Move _dbus_check_fdleaks_* from dbus-message-util to tests
This is only called from test code.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'test/test-utils.h')
-rw-r--r-- | test/test-utils.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 |