]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
dox
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 31 May 2025 19:02:19 +0000 (21:02 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 10 Jun 2025 14:04:43 +0000 (16:04 +0200)
client.c
play.c
web/documentation.in.html

index a5a8af5337ea67310a01332a9f02b22c389c0442..6f28a25bd87356130d82c84590aa299f35d10f8b 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1,6 +1,14 @@
 /* Copyright (C) 1997 Andre Noll <maan@tuebingen.mpg.de>, 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 <signal.h>
 #include <lopsub.h>
@@ -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 304b1d23cd13aaeb32a4d8d0e59dcc5f657c553d..d1cb59837a0fb60cda8fd32d8cc3becb397ac688 100644 (file)
--- 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 <signal.h>
 #include <lopsub.h>
@@ -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).
  *
index 4d9aea6a09c41baf09b450d7c1124ee7becfb131..9c58221f0a747982559fa19367395984fffed652 100644 (file)
@@ -38,15 +38,15 @@ Reference</a>. Suggested entry points: </p>
        <li> Executables:
                [<a href="doxygen/html/server_8c.html">para_server</a>]
                [<a href="doxygen/html/audiod_8c.html">para_audiod</a>]
-               [<a href="doxygen/html/play_8c.html">para_play</a>]
-               [<a href="doxygen/html/recv_8c.html">para_recv</a>]
-               [<a href="doxygen/html/filter_8c.html">para_filter</a>]
-               [<a href="doxygen/html/write_8c.html">para_write</a>]
                [<a href="doxygen/html/client_8c.html">para_client</a>]
                [<a href="doxygen/html/audioc_8c.html">para_audioc</a>]
                [<a href="doxygen/html/afh_8c.html">para_afh</a>]
-               [<a href="doxygen/html/mixer_8c.html">para_mixer</a>]
+               [<a href="doxygen/html/recv_8c.html">para_recv</a>]
+               [<a href="doxygen/html/filter_8c.html">para_filter</a>]
+               [<a href="doxygen/html/write_8c.html">para_write</a>]
                [<a href="doxygen/html/gui_8c.html">para_gui</a>]
+               [<a href="doxygen/html/mixer_8c.html">para_mixer</a>]
+               [<a href="doxygen/html/play_8c.html">para_play</a>]
        </li> <li> Subsystems:
                [<a href="doxygen/html/sched_8h.html">Scheduler</a>]
                [<a href="doxygen/html/buffer__tree_8h.html">Buffer Trees</a>]