57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen This file is part of systemd.
96df036fe3d25525a44f5efdb2fc8560e82e6cfdTom Gundersen Copyright 2014-2015 Tom Gundersen <teg@jklm.no>
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen systemd is free software; you can redistribute it and/or modify it
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen under the terms of the GNU Lesser General Public License as published by
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen the Free Software Foundation; either version 2.1 of the License, or
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen (at your option) any later version.
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen systemd is distributed in the hope that it will be useful, but
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen WITHOUT ANY WARRANTY; without even the implied warranty of
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen Lesser General Public License for more details.
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen You should have received a copy of the GNU Lesser General Public License
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen along with systemd; If not, see <http://www.gnu.org/licenses/>.
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen#define FOREACH_DEVICE_PROPERTY(device, key, value) \
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen for (key = sd_device_get_property_first(device, &(value)); \
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen key = sd_device_get_property_next(device, &(value)))
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen for (attr = sd_device_get_sysattr_first(device); \
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen#define FOREACH_DEVICE_DEVLINK(device, devlink) \
57fa1d094cd2c5ac68970526ad0a0754c548e75dTom Gundersen for (devlink = sd_device_get_devlink_first(device); \
96df036fe3d25525a44f5efdb2fc8560e82e6cfdTom Gundersen for (device = sd_device_enumerator_get_device_first(enumerator); \
96df036fe3d25525a44f5efdb2fc8560e82e6cfdTom Gundersen device = sd_device_enumerator_get_device_next(enumerator))
96df036fe3d25525a44f5efdb2fc8560e82e6cfdTom Gundersen#define FOREACH_SUBSYSTEM(enumerator, device) \
96df036fe3d25525a44f5efdb2fc8560e82e6cfdTom Gundersen for (device = sd_device_enumerator_get_subsystem_first(enumerator); \