From ae2662ecab94bfa53c70a6d0daf1502879f0fa04 Mon Sep 17 00:00:00 2001
From: Andre Noll
Date: Sat, 31 May 2025 21:02:19 +0200
Subject: [PATCH] dox
---
client.c | 27 +++++++++++++++++++++------
play.c | 9 +++++----
web/documentation.in.html | 10 +++++-----
3 files changed, 31 insertions(+), 15 deletions(-)
diff --git a/client.c b/client.c
index a5a8af53..6f28a25b 100644
--- a/client.c
+++ b/client.c
@@ -1,6 +1,14 @@
/* Copyright (C) 1997 Andre Noll , see file COPYING. */
-/** \file client.c The client program used to connect to para_server. */
+/** \file client.c The client program used to connect to para_server.
+ *
+ * The bulk of the code of this file is the completers because interactive
+ * sessions are implemented in \ref interactive.c and the autentication
+ * handshake (shared with para_audiod(1)) is implemented in \ref
+ * client_common.c. This file contains no non-static functions except main().
+ */
+
+/** \cond */
#include
#include
@@ -17,7 +25,6 @@
#include "buffer_tree.h"
#include "error.h"
-/** Array of error strings. */
DEFINE_PARA_ERRLIST;
static struct sched sched;
@@ -607,13 +614,21 @@ static int supervisor_post_monitor(struct sched *s, void *context)
static struct supervisor_task supervisor_task;
-/**
+/** \endcond
+ *
* The client program to connect to para_server.
*
- * \param argc Usual argument count.
- * \param argv Usual argument vector.
+ * \param argc Options are defined in the client lopsub suite.
+ * \param argv The client suite defines no subcommands.
+ *
+ * If --complete is specified, possible completions are determined by executing
+ * a second instance of para_client(1). For example, if attribute completion
+ * is needed, the lsatt server subcommand is run.
+ *
+ * If run with no arguments, an interactive session is started. In this
+ * case we call \ref i9e_open() of \ref interactive.c, which implements
+ * interactive sessions, including command line editing and tab completion.
*
- * When called without a paraslash command, an interactive session is started.
* Otherwise, the client task and the supervisor task are started. The former
* communicates with para_server while the latter monitors whether the client
* task intends to read from stdin or write to stdout.
diff --git a/play.c b/play.c
index 304b1d23..d1cb5983 100644
--- a/play.c
+++ b/play.c
@@ -2,7 +2,7 @@
/** \file play.c Paraslash's standalone player
*
- * The para_play(1) is an interactive tool to play audio files in a terminal.
+ * para_play(1) is an interactive tool to play audio files in a terminal.
* It employs the buffer tree API to link together the afh receiver, a
* decoder and the default writer (alsa on linux), enabling playback for
* all supported audio formats.
@@ -10,8 +10,9 @@
* Interactive command line editing is based on the API defined in \ref
* interactive.h. Subcommands of para_play(1) are realized as lopsub
* subcommands.
- *
- * \cond doxygen_ignore */
+ */
+
+/** \cond */
#include
#include
@@ -1182,7 +1183,7 @@ static int play_post_monitor(__a_unused struct sched *s, __a_unused void *contex
return 1;
}
-/** \endcond doxygen_ignore
+/** \endcond
*
* The main function of para_play(1).
*
diff --git a/web/documentation.in.html b/web/documentation.in.html
index 4d9aea6a..9c58221f 100644
--- a/web/documentation.in.html
+++ b/web/documentation.in.html
@@ -38,15 +38,15 @@ Reference. Suggested entry points:
Executables:
[para_server]
[para_audiod]
- [para_play]
- [para_recv]
- [para_filter]
- [para_write]
[para_client]
[para_audioc]
[para_afh]
- [para_mixer]
+ [para_recv]
+ [para_filter]
+ [para_write]
[para_gui]
+ [para_mixer]
+ [para_play]
Subsystems:
[Scheduler]
[Buffer Trees]
--
2.39.5