d10036d32eac25c861f9075ade2c007f5524b81eTimo Sirainentypedef void child_wait_callback_t(const struct child_wait_status *status,
d10036d32eac25c861f9075ade2c007f5524b81eTimo Sirainenchild_wait_new_with_pid(pid_t pid, child_wait_callback_t *callback,
27a44fcfd8d19bffe0f267f20a2b5d3fe7600fddTimo Sirainen#define child_wait_new_with_pid(pid, callback, context) \
27a44fcfd8d19bffe0f267f20a2b5d3fe7600fddTimo Sirainen const struct child_wait_status *status, typeof(context))), \
d10036d32eac25c861f9075ade2c007f5524b81eTimo Sirainen child_wait_new_with_pid((pid_t)-1, callback, context)
d10036d32eac25c861f9075ade2c007f5524b81eTimo Sirainenvoid child_wait_free(struct child_wait **wait);
d10036d32eac25c861f9075ade2c007f5524b81eTimo Sirainenvoid child_wait_add_pid(struct child_wait *wait, pid_t pid);