Comments for every function: the last batch; CI checks it

The UI tests, Gradle's script, the iOS app and the native test hosts
(batch 6 of 8, comment lines only) and the checker's own. Every
function in the app is now documented; android.yml's docs job runs
tools/doc_check.py first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
This commit is contained in:
Claude committed 2026-10-27 08:23:54 +00:00
1 parent ebbb5eb4a4
commit 9915decc6d
51 files changed
+240

No files matched your search

+6
View File
@@ -66,6 +66,7 @@ bool spk_was_on;
long spk_samples;
std::string logs;
/* the engine's status kept, and the rates once it's online; the waiters woken */
void on_engine_status(const Status &s)
{
std::lock_guard<std::mutex> lk(mu);
@@ -78,6 +79,7 @@ void on_engine_status(const Status &s)
cv.notify_all();
}
/* the engine's exit counted, its result kept; the waiters woken */
void on_engine_exit(int r)
{
std::lock_guard<std::mutex> lk(mu);
@@ -86,6 +88,7 @@ void on_engine_exit(int r)
cv.notify_all();
}
/* whether the engine has exited n times within secs */
bool wait_exits(int n, int secs)
{
std::unique_lock<std::mutex> lk(mu);
@@ -121,6 +124,7 @@ bool expect(int fd, const char *re, int secs, std::string *got = nullptr)
return false;
}
/* s written to fd */
void put(int fd, const std::string &s)
{
if (write(fd, s.data(), s.size()) != (ssize_t)s.size())
@@ -182,6 +186,7 @@ pid_t start_dmodemd(const char *path, int *pty)
return pid;
}
/* the engine's settings: user e at dmodemd's loopback port, SIP on ENGINE_PORT, listening or not */
Config config(bool listen)
{
Config c;
@@ -268,6 +273,7 @@ void call_out(int app, int pty, const char *what, bool speaker)
} // namespace
/* the engine against the dmodemd at argv[1], call by call (see above): 1 if any check failed */
int main(int argc, char *argv[])
{
int pty = -1, app;