Go to the documentation of this file.
28 #ifndef HOMEPORT_HPD_QUEUE_H
29 #define HOMEPORT_HPD_QUEUE_H
31 #include <bsd/sys/queue.h>
37 #define HPD_TAILQ_FIELD tailq
39 #define HPD_TAILQ_MAP_REMOVE(LIST, FUNC, TYPE, RC) do { \
41 TAILQ_FOREACH_SAFE(_obj, (LIST), HPD_TAILQ_FIELD, _tmp) { \
42 TAILQ_REMOVE((LIST), _obj, HPD_TAILQ_FIELD); \
43 if (((RC) = (FUNC)(_obj))) goto map_error; \
51 #endif //HOMEPORT_HPD_QUEUE_H