/* * splinter -- approvals that do not care who answers. * * Copyright (c) 2026 Konrad Lother * SPDX-License-Identifier: BSD-3-Clause */ #ifndef SPLINTER_ACK_H #define SPLINTER_ACK_H #include #include "splinter.h" const char *sp_ack_dir(void); int sp_ack_request(const char *tool, const char *args, const char *why, int ttl); int sp_ack_notify(int id, struct sp_buf *log); int sp_ack_wait(int id, int ttl, char *who, size_t who_len); int sp_ack_answer(int id, int yes, const char *who); int sp_ack_list(struct sp_buf *out); /* 1 when an answer for 'id' is waiting, without consuming it */ int sp_ack_answered(int id); #endif /* SPLINTER_ACK_H */