udev: String substitutions can be done in ENV, too
[systemd_ALT.git] / src / nss-systemd / nss-systemd.h
blobe97b801575528ef76552de40ccf5d3693207ced4
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
4 #include <stdbool.h>
6 int _nss_systemd_block(bool b);
7 bool _nss_systemd_is_blocked(void);
9 /* For use with the _cleanup_() macro */
10 static inline void _nss_systemd_unblockp(bool *b) {
11 if (*b)
12 assert_se(_nss_systemd_block(false) >= 0);