chiark / gitweb /
Doxygen file headers for most files
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 25 Oct 2008 17:42:35 +0000 (18:42 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 25 Oct 2008 17:42:35 +0000 (18:42 +0100)
102 files changed:
cgi/login.c
clients/authorize.c
clients/authorize.h
clients/disorder.c
clients/disorderfm.c
clients/filename-bytes.c
disobedience/added.c
disobedience/choose-menu.c
disobedience/choose-search.c
disobedience/choose.h
disobedience/lookup.c
disobedience/popup.c
disobedience/popup.h
disobedience/queue-generic.c
disobedience/queue-generic.h
disobedience/queue-menu.c
disobedience/queue.c
disobedience/recent.c
lib/Makefile.am
lib/arcfour.c
lib/arcfour.h
lib/authhash.h
lib/basen.h
lib/charset.h
lib/client-common.c
lib/client-common.h
lib/defs.h
lib/event.h
lib/eventdist.c
lib/eventdist.h
lib/eventlog.c
lib/eventlog.h
lib/fprintf.c
lib/hash.c
lib/hash.h
lib/hex.h
lib/hostname.c
lib/hostname.h
lib/inputline.h
lib/kvp.c
lib/kvp.h
lib/log.h
lib/logfd.c
lib/logfd.h
lib/mem.h
lib/memgc.c
lib/printf.c
lib/printf.h
lib/queue.c
lib/queue.h
lib/regsub.c
lib/regsub.h
lib/rtp.h
lib/sendmail.c
lib/sendmail.h
lib/signame.c
lib/signame.h
lib/snprintf.c
lib/split.c
lib/split.h
lib/syscalls.c
lib/syscalls.h
lib/table.c
lib/table.h
lib/timeval.h
lib/trackdb-int.h
lib/trackname.c
lib/trackname.h
lib/trackorder.c
lib/tracksort.c
lib/unidata.c
lib/unidata.h
lib/vacopy.h
lib/vector.c
lib/version.c
lib/version.h
lib/xgetdate.c
plugins/exec.c
plugins/execraw.c
plugins/fs.c
plugins/mad.c
plugins/madshim.h
plugins/notify.c
plugins/shell.c
plugins/tracklength.c
scripts/make-unidata
server/api-server.c
server/api.c
server/dbupgrade.c
server/deadlock.c
server/disorder-server.h
server/disorderd.c
server/dump.c
server/exports.c
server/play.c
server/plugin.c
server/queue-ops.c
server/rescan.c
server/state.c
server/stats.c
server/trackname.c
tests/udplog.c

index d490151595de933feb70dcd2a1c3e0b98c619291..a7a6dc0818fd069f83259168097ea5e0fe96be72 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file cgi/login.c
+ * @brief Web login support
+ */
 #include "disorder-cgi.h"
 
 /** @brief Client used by CGI
index 6dced26963c46525321e595d9d7950ee09340842..93fe3f46a23b0fa65421d8881ea605d07ea2fcb1 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file clients/authorize.c
+ * @brief Create a new login
+ */
 
 #include "common.h"
 
index de73294ca748e05cbc7e9fb43841ff8f7ff68db5..977e248d32d7a57e47fbf3dee464b3eb6474071f 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file clients/authorize.h
+ * @brief Create a new login
+ */
 #ifndef AUTHORIZE_H
 #define AUTHORIZE_H
 
index b07ffa1f2b66edc655d1cf4413ce98b34a7bec71..6ac27bcbb915d6e045bc6cb15a3c503e2d0f1f69 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file clients/disorder.c
+ * @brief Command-line client
+ */
 
 #include "common.h"
 
index 63ff12d36fc501ac7052fbca6545af8cbf760104..07743f88aaf6a9b45b89d9307704a22bcfbb00b7 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file clients/disorderfm.c
+ * @brief DisOrder file manager
+ *
+ * Intended to support encoding conversion, tag extraction, etc.  Not yet
+ * complete (and hasn't been worked on for ages).
+ */
 #include "common.h"
 
 #include <getopt.h>
index 8bba942aa7b4b4684fbffffca4029f8653bec74d..13eea1965361570a2ac23097fd1505a1f529b7fc 100644 (file)
@@ -1,5 +1,6 @@
-/* Grotty program to print out the bytes making up filenames in some
- * directory */
+/** @file clients/filename-bytes.c
+ * @brief Print out raw bytes of filenames in a directory
+ */
 
 #include "common.h"
 
index 9f9058b51ba27780356a9562bd3589ff5d4e806f..32628ac93c16245907296bb7fdd55f5aa2a4387e 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file disobedience/added.c
+ * @brief List of recently added tracks
+ */
 #include "disobedience.h"
 #include "popup.h"
 #include "queue-generic.h"
index a57e887e0e788d5dabff430e9598d996cc277647..37167e7810f602fc26e43e24702f9e547839faf3 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file disobedience/choose-menu.c
+ * @brief Popup menu for choose screen
+ */
 #include "disobedience.h"
 #include "popup.h"
 #include "choose.h"
index b06e9f92b7d8658bc821b91020ab9f16b1de6760..1208f174f6996c4fcf2b5c6ee6dc0bdb41153786 100644 (file)
@@ -16,7 +16,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 /** @file disobedience/choose-search.c
- * @brief Search support
+ * @brief Search support for Disobedience choose window
  */
 #include "disobedience.h"
 #include "choose.h"
index dea27b234fefc5568c78883b2f774660057588ef..97f70957663fc43e6a7f0f20d3effd3a9f9c45ae 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file disobedience/choose.h
+ * @brief Choose window for Disobedience
+ */
 #ifndef CHOOSE_H
 #define CHOOSE_H
 
index f1605017d87b88fc8f1e1fde6b9b1e5450ffed24..68939aef2915f015b925c5699e196a70017ef18c 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file disobedience/lookup.c
+ * @brief Disobedience server lookups and caching
+ */
 #include "disobedience.h"
 
 static int namepart_lookups_outstanding;
index 6504722e2af6a8124010398a74a5f91d92c5e073..6613cfc4fb7f0691e71621cafb8b03458ec37093 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file disobedience/popup.c
+ * @brief Disobedience popup menus
+ */
 #include "disobedience.h"
 #include "popup.h"
 
index dd5dfeb7d9de79735266f41d36b678f2e9c32618..9706e0398b2de45bbe2db7b5dabf1fa0298ed148 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file disobedience/popup.h
+ * @brief Disobedience popup menus
+ */
 #ifndef POPUP_H
 #define POPUP_H
 
index 1fd1a530525d3e886011745128d5932801afab58..fe327ca04910c31e22259c41e514794119841613 100644 (file)
@@ -16,7 +16,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 /** @file disobedience/queue-generic.c
- * @brief Queue widgets
+ * @brief Disobedience queue widgets
  *
  * This file provides contains code shared between all the queue-like
  * widgets - the queue, the recent list and the added tracks list.
index 9a493e8dbe5edc42b888dd804e9b44b95b15eb41..b73d90ab1924234ca402507e19eef1e8db152e4c 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file disobedience/queue-generic.h
+ * @brief Disobedience queue widgets
+ */
 #ifndef QUEUE_GENERIC_H
 #define QUEUE_GENERIC_H
 
index 7ccee6cb38a74bdd611eb1e3d7c00aa881f60d40..8111205739a4b603737290065bbe738a85895f93 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file disobedience/queue-menu.c
+ * @brief Disobedience queue widget popup menu
+ */
 #include "disobedience.h"
 #include "popup.h"
 #include "queue-generic.h"
index 0e652458e351558f6893886e81641089ad67b7b8..c19dbc92a2c64706fe2b949039f09764611ad44e 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file disobedience/queue.c
+ * @brief Disobedience queue widget
+ */
 #include "disobedience.h"
 #include "popup.h"
 #include "queue-generic.h"
index 36a98d115927d52ef12c6d2f0cdb427f8daa7837..0923a6d240ee852e224b9ce277ac87e8dffef234 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file disobedience/recent.c
+ * @brief Disobedience recently-played widget
+ */
 #include "disobedience.h"
 #include "popup.h"
 #include "queue-generic.h"
index 9b500898553dacb1c93a3b58f694439b1990a1e0..ef10c490b1aaf5dc72f838e267d6c18e3e920179 100644 (file)
@@ -106,7 +106,12 @@ versionstring.h: version-string ${top_srcdir}/scripts/text2c
 
 definitions.h: Makefile
        rm -f $@.new
-       echo "#define PKGLIBDIR \"${pkglibdir}\"" > $@.new
+       echo "/** @file lib/definitions.h" >> $@.new
+       echo " * @brief Definitions exported from makefile" >> $@.new
+       echo " *" >> $@.new
+       echo " * DO NOT EDIT." >> $@.new
+       echo " */" >> $@.new
+       echo "#define PKGLIBDIR \"${pkglibdir}\"" >> $@.new
        echo "#define PKGCONFDIR \"${sysconfdir}/\"PACKAGE" >> $@.new
        echo "#define PKGSTATEDIR \"${localstatedir}/\"PACKAGE" >> $@.new
        echo "#define PKGDATADIR \"${pkgdatadir}/\"" >> $@.new
index 42aaf2b9a3f6bebc52be0c82d3bc50a5db382afb..7d469d8a7b0ab988f0a3d0a7e3d049fce13828d8 100644 (file)
  * 02110-1301, USA.
  *
  */
-
-/* Code from Libgcrypt adapted for gnulib by Simon Josefsson. */
-
-/*
+/** @file lib/arcfour.c
+ * @brief Arcfour (RC4-compatible) stream cipher implementation
+ *
+ * Code from Libgcrypt adapted for gnulib by Simon Josefsson.
+ *
  * For a description of the algorithm, see:
+ * 
  *   Bruce Schneier: Applied Cryptography. John Wiley & Sons, 1996.
  *   ISBN 0-471-11709-9. Pages 397 ff.
  */
index 0a9d75c0f745fd9c18a84abd3cf4654f326c1084..af6e9414a6091553431bb13a9853341b2ab3bc78 100644 (file)
@@ -18,6 +18,9 @@
  * 02110-1301, USA.
  *
  */
+/** @file lib/arcfour.h
+ * @brief Arcfour (RC4-compatible) stream cipher implementation
+ */
 
 /* Code from Libgcrypt adapted for gnulib by Simon Josefsson. */
 
index df5b62904f0672e85e0bd07762f8aeefd204312e..8604a13948f1a81e602ea15992a87ecc15c35c29 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * This file is part of DisOrder.
- * Copyright (C) 2004, 2006, 2007 Richard Kettlewell
+ * Copyright (C) 2004, 2006, 2007, 2008 Richard Kettlewell
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -15,6 +15,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/authhash.h @brief The authorization hash */
 #ifndef AUTHHASH_H
 #define AUTHHASH_H
 
index 5a7b84b1c7700f951c46f5c4fdbee8a587e84088..717f2eaeb48396fa887dc3b3883d9aeb9ceef2a1 100644 (file)
@@ -15,7 +15,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/basen.h @brief Arbitrary base conversion */
 #ifndef BASEN_H
 #define BASEN_H
 
index 4395aecca262b4f17ee7f21c5c33bf5cf946ee98..be2b05a45ae5a3ced48f189fb1b69167b701a330 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * This file is part of DisOrder.
  * Copyright (C) 2004, 2005, 2007, 2008 Richard Kettlewell
@@ -16,6 +15,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/charset.h @brief Character set conversion */
 #ifndef CHARSET_H
 #define CHARSET_H
 
index 946cab7441893736e0d80d9f756712368e37cb68..ced82e4fb6eaf71199dc79fd422cb9ae4cbca8d4 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/client-common.c
+ * @brief Common code to client APIs
+ */
 
 #include "common.h"
 
index 9bc90cf856fc138549d8a843f104fa7e044a3129..736ac6f209a363cc936ec4b9af39c25e8e2b8483 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/client-common.h
+ * @brief Common code to client APIs
+ */
 
 #ifndef CLIENT_COMMON_H
 #define CLIENT_COMMON_H
index 4fe5c86ba52a781fb6365714813f77c48b52e542..41b65ea584254f7b5a3fbce6ef0b1415a25c7ea0 100644 (file)
@@ -15,7 +15,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/defs.h @brief Definitions chosen by configure */
 #ifndef DEFS_H
 #define DEFS_H
 
index 5b312a3374a55d9ad0a2dae7c4f2affc6cad25f9..2838c41412f994387ddcca4ad3e09bc2304969ea 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/event.h
+ * @brief DisOrder event loop
+ */
 #ifndef EVENT_H
 #define EVENT_H
 
index 66eae8816969e26a37cefa693553fc4944212258..37893b6ef1cc30fd5dfdf6d60441ea00002b5e0d 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/eventdist.c
+ * @brief Event distribution
+ */
 #include "common.h"
 
 #include "mem.h"
index 789239112c07c54e6388704d2922a22dec52afe5..367d8165ff142273ff41398bff889719b3ed233c 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/eventdist.h
+ * @brief Event distribution
+ */
 #ifndef EVENTDIST_H
 #define EVENTDIST_H
 
index 9297906e89565cebbf9db45737c7873d446ef764..a56884b33d50b3874f3f537eca2b5daedbfb3b5a 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/eventlog.c
+ * @brief Event logging
+ */
 #include "common.h"
 
 #include <stdarg.h>
index 236943e4352f9a7c8bf3a5e15e392c5afba7980c..87eea513495368e51c3ee588b54477f00cf40923 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/eventlog.h
+ * @brief Event logging
+ */
 #ifndef EVENTLOG_H
 #define EVENTLOG_H
 
index 812a93131894498a16eb80e37ba375b18a375e5a..b4de8300cd8175706198245c986523e70641862b 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/fprintf.c
+ * @brief UTF-8 workalike for fprintf() and vfprintf()
+ */
 
 #include "common.h"
 
index 64a48bb9e81f5ea4cf55a3fbc4784bcda840c7aa..d507d0a376b86473125843720e2062bce3dd6d19 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/hash.c
+ * @brief A simple hash table
+ */
 #include "common.h"
 
 #include "hash.h"
index 1577e0354b5cbfc51e6e1d7374d6bc499017528e..e932f4b359b93534b0dd08a2ee05757be5ab140a 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/hash.h
+ * @brief A simple hash table
+ */
 
 #ifndef HASH_H
 #define HASH_H
index e3702401adc91ebff54242bf54f3236fba0320ce..150621970f4928ccb01a1a9f13113e769098bf0c 100644 (file)
--- a/lib/hex.h
+++ b/lib/hex.h
@@ -15,6 +15,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/hex.h @brief Hexadecimal encoding and decoding */
 
 #ifndef HEX_H
 #define HEX_H
index 8e67d847003e14f358ade635de4516441024ab12..292b3add4e2b6d094679a891a6e16d0b45996d5c 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/hostname.c
+ * @brief Get the local hostname
+ */
 
 #include "common.h"
 
index f8defd126146420b6364c3cd35536237f2896fbb..38808ee2d274bd0bdf02ea4d83eaef72ad751c68 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/hostname.h
+ * @brief Get the local hostname
+ */
 
 #ifndef HOSTNAME_H
 #define HOSTNAME_H
index c9a0449ea815054c73656b96bd62ea1c426f44ce..a844194c6382fe5fa853143f58b8d4ed7854f276 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/inputline.h
+ * @brief Line input
+ */
 
 #ifndef INPUTLINE_H
 #define INPUTLINE_H
index 13a5cc4d7f610aa722e26474515ae92ef963251a..748c47ef30c637ee8a4dbe6d13565a3e931db293 100644 (file)
--- a/lib/kvp.c
+++ b/lib/kvp.c
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/kvp.c
+ * @brief Linked list of key-value pairs
+ *
+ * Also supports URL encoding/decoding (of raw strings and kvp lists).
+ *
+ * For large sets of keys, see @ref lib/hash.c.
+ */
 
 #include "common.h"
 
index 7b418374c7b6ea091abe9864fef3d6d2dae47c31..745304b75f58f704f4921391efb0cf271b432468 100644 (file)
--- a/lib/kvp.h
+++ b/lib/kvp.h
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/kvp.h
+ * @brief Linked list of key-value pairs
+ */
 
 #ifndef KVP_H
 #define KVP_H
index b51270693dd1a0e9f63a901c0d4fe6c175321a0d..e7f6e43c221026e6666ad5db172f38c33ad59bcd 100644 (file)
--- a/lib/log.h
+++ b/lib/log.h
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/log.h
+ * @brief Errors and logging
+ */
 
 #ifndef LOG_H
 #define LOG_H
index 74133798d8ca5a5ba6cb75f0e34b0bee1d75c62b..a6f14c3022a44766c350158340967ef027a06548 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/logfd.c
+ * @brief Redirect subprocess stderr to DisOrder server's log
+ */
 
 #include "common.h"
 
index 9cab2cbb89a7ed28e89dbd3e23b248c7e45bf5b5..ad4370059fab96fa1edd7aa9718fe9cb1b5941d2 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/logfd.h
+ * @brief Redirect subprocess stderr to DisOrder server's log
+ */
 
 #ifndef LOGFD_H
 #define LOGFD_H
index 3ef42636ba02fe86c9bf43aaab3b0085178c6e96..2aa70aaf57d644eb6d2917f6b922a251e9d81675 100644 (file)
--- a/lib/mem.h
+++ b/lib/mem.h
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/mem.h
+ * @brief Memory management
+ */
 
 #ifndef MEM_H
 #define MEM_H
index 3df46213a0d58474e92ecd0ab0579483003458e6..4b7dabeb9f8097263acea3ccfc3e7270fe2e1836 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/memgc.c
+ * @brief Memory management with garbage collection
+ */
 
 #define GC 1
 #include "mem.c"
index f227142a432e979e40a25994cd6b97a06549269b..f921791ed32961b6c12959a1e070e1a30d44fd0e 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/printf.c
+ * @brief UTF-8 *printf workalike (core)
+ */
 
 #define NO_MEMORY_ALLOCATION
 /* because byte_snprintf used from log.c */
index 0c7869e05257e89bde224d5f297c888cfdf617d0..9adb9ab40b4106bdc2fdd9467d2e8df6eaf717b5 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/printf.h
+ * @brief UTF-8 *printf workalikes
+ */
 #ifndef PRINTF_H
 #define PRINTF_H
 
index cd11a50beb874aab4651582f9b276a5801425953..71d85aaf2c4cfb91fede7ff59dc703247136dcd2 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/queue.c
+ * @brief Track queues
+ */
 #include "common.h"
 
 #include <errno.h>
index ad70b34613f24ea67f679bcedfd4544f34537b5f..a0845024f2b2fff6251cf0776a7dfc302dd1791e 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/queue.h
+ * @brief Track queues
+ *
+ * Used for the queue, the recently played list and the currently playing
+ * track, both in the server and in clients.
+ */
 #ifndef QUEUE_H
 #define QUEUE_H
 
index aab20e23f957c3429950554b94a78853381c0f00..cde61cf75e561ae4a7b9898c78cbb2a44f5bd09c 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/regsub.c
+ * @brief Regexp substitution
+ */
 #include "common.h"
 
 #include <pcre.h>
index c4107e052f8cb568154a16e1a9bfe5986de9c4f4..1a5aa4341e158ebc1afed57519be7cd05577ad0e 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/regsub.h
+ * @brief Regexp substitution
+ */
 #ifndef REGSUB_H
 #define REGSUB_H
 
index 3ac14befc419b95984088b06f3785e3c1e99fb3e..d0ab1ed3eaa50593ed8d42ac76119c897740336e 100644 (file)
--- a/lib/rtp.h
+++ b/lib/rtp.h
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/rtp.h
+ * @brief RTP packet header format
+ *
+ * See <a href="http://www.ietf.org/rfc/rfc1889.txt">RFC1889</a>.
+ */
 
 #ifndef RTP_H
 #define RTP_H
 
-/* RTP is defined in RFC1889 */
+/** @brief RTP packet header format
+ *
+ * See <a href="http://www.ietf.org/rfc/rfc1889.txt">RFC1889</a> (now obsoleted
+ * by <a href="http://www.ietf.org/rfc/rfc3550.txt">RFC3550</a>).
+ */
 struct attribute((packed)) rtp_header {
+  /** @brief Version, padding, extension and CSRC
+   *
+   * Version is bits 6 and 7; currently always 2.
+   *
+   * Padding is bit 5; if set frame includes padding octets.
+   *
+   * eXtension is bit 4; if set there is a header extension.
+   *
+   * CSRC Count is bits 0-3 and is the number of CSRC identifiers following the
+   * header.
+   */
   uint8_t vpxcc;
+
+  /** @brief Marker and payload type
+   *
+   * Marker is bit 7.  Profile-defined.
+   *
+   * Payload Type is bits 0-6.  Profile defined.  
+   */
   uint8_t mpt;
+
+  /** @brief Sequence number */
   uint16_t seq;
+
+  /** @brief Timestamp */
   uint32_t timestamp;
+
+  /** @brief Synchronization source */
   uint32_t ssrc;
 };
 
index b53a89f86770073634cdf169bb700efd4dad41f7..5b9a82cb26eef9dfd0acd33ecd9a6e28b148dc68 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/sendmail.c
+ * @brief Sending email
+ *
+ * Can send email either via a local MTA or by connecting to an SMTP TCP port.
+ * The former is preferred as there is a strong implication that the local MTA
+ * will queue for you than some random TCP SMTP server you found.
+ */
 #include "common.h"
 
 #include <errno.h>
index 3852137fd1817c35f4f969ff2d21028ea92053b4..945dc251dc165b8d4ebd44679d660bdddd294072 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/sendmail.h
+ * @brief Sending email
+ */
 
 #ifndef SENDMAIL_H
 #define SENDMAIL_H
index 212ebeee9d3c7cc6cab8f9aec81920fd00ed86f5..27f9509c49653419b7f19fdf8a0e3460035fe23b 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/signame.c
+ * @brief Signal names
+ */
 #include "common.h"
 
 #include <signal.h>
@@ -132,6 +134,10 @@ static const struct sigtable {
 #undef S
 };
 
+/** @brief Map a signal name to its number
+ * @param s Signal name e.g. "SIGINT"
+ * @return Signal value or -1 if not found
+ */
 int find_signal(const char *s) {
   int n;
 
index 5c50fcfa66d5fe8ad6e8202f043b4cd6978bcebf..040668159a4460c20fabaa10ac8bcf3f52aa38fa 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/signame.h
+ * @brief Signal names
+ */
 #ifndef SIGNAME_H
 #define SIGNAME_H
 
index 69bafc777da79cca866fec2676991f6107a7f8a5..e62e3c9434a80c0698d5ab69141710cff950f812 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/snprintf.c
+ * @brief UTF-8 capable *snprintf workalikes
+ */
 
 #define NO_MEMORY_ALLOCATION
 /* because used from log.c */
index ebcf8210b96b714b24883f742fa5a8d3ad808323..d4410dcd6bdfd5edcda2cd9f67ea512224097ffc 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/split.c
+ * @brief String splitting
+ */
 #include "common.h"
 
 #include <ctype.h>
index b2b99d555573d6e78ceef4bafb50346bc67593ac..7aee4b6d4223c3684df4ea7aa0739337e0473e8a 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/split.h
+ * @brief String splitting
+ */
 #ifndef SPLIT_H
 #define SPLIT_H
 
index 0415a2d9eaa6bb3ae0986097e555878c85a43aa2..0d5dc187a0111eb637b32469951a769d50b27b60 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/syscalls.c
+ * @brief Error-checking library call wrappers
+ */
 #include "common.h"
 
 #include <unistd.h>
index 7031eac7e3609e56afd4c5c48e6f655219a16ced..9f8bd206fb142c17ad6840804ac4b972c0c6eba3 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/syscalls.h
+ * @brief Error-checking library call wrappers
+ */
 #ifndef SYSCALLS_H
 #define SYSCALLS_H
 
index 7295532c8930269f756138ce288386124cbfb5ef..a646d92f3d7a6b2be3aa1e4aec211c3017c79b70 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/table.c
+ * @brief Generic binary search
+ */
 #include "common.h"
 
 #include "table.h"
index 12c05c0366fb9915388e81e6c57a0ff7454c79e2..db237acf0ff3af38c7e51920d3c2b3931bf06d00 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/table.h
+ * @brief Generic binary search
+ */
 #ifndef TABLE_H
 #define TABLE_H
 
index 2911dd4c0b5d6b98079400803389c77f3be83cda..930ad24efabc00afc8007e8337e5b2e63b50ca4a 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/timeval.h
+ * @brief Arithmetic on timeval structures
+ */
 #ifndef TIMEVAL_H
 #define TIMEVAL_H
 
index cb00e146318c7fa48d5c70ba60c8c0c508a5d5af..6d5234e064228c9de706e9a4675858d5c5339405 100644 (file)
@@ -15,7 +15,8 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/trackdb-int.h
+ * @brief Track database internals */
 #ifndef TRACKDB_INT_H
 #define TRACKDB_INT_H
 
index 36e438fe5a046f86649a1798bbe3632e154e8b17..fa40c3b840a567ec722d49d9edd4b4827e55344c 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/trackname.c
+ * @brief Track name calculation
+ */
 #include "common.h"
 
 #include <pcre.h>
index 31c7df8eb4899d3431768fd0b418b26ce26f552e..63b881bb836c523ad962b81f26118e4d47129c9f 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/trackname.h
+ * @brief Track name calculation
+ */
 #ifndef TRACKNAME_H
 #define TRACKNAME_H
 
index df86e2902519c78e8df568d1a9a0a2cb28dc64ce..d0ae4486f597927de06222858fa65863ce959a0d 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/trackorder.c
+ * @brief Track ordering
+ */
 #include "common.h"
 
 #include <pcre.h>
index 5ae0d034cc0029ea0ef4245f2da9d6754cab1c05..2f81739098583802ff2f382ebfa6e57470c64531 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/tracksort.c
+ * @brief Track ordering
+ */
 #include "common.h"
 
 #include "trackname.h"
index db4334d1080c4061ec6105a03138230e91b55602..b22b5bc21ebf133ea0c0c1e4baa0ba170b2e7bfd 100644 (file)
@@ -1,4 +1,10 @@
-/* Automatically generated file, see scripts/make-unidata */
+/** @file lib/unidata.c
+ * @brief Unicode tables
+ *
+ * Automatically generated file, see scripts/make-unidata
+ *
+ * DO NOT EDIT.
+ */
 #include "common.h"
 #include "unidata.h"
 #define Cc unicode_General_Category_Cc
index aa8814d2a47e4ceae1c1b4ab84e717b1a51e61ec..86f5fee78b7480dda62a58cd5f706e37e9111000 100644 (file)
@@ -1,4 +1,10 @@
-/* Automatically generated file, see scripts/make-unidata */
+/** @file lib/unidata.h
+ * @brief Unicode tables
+ *
+ * Automatically generated file, see scripts/make-unidata
+ *
+ * DO NOT EDIT.
+ */
 #ifndef UNIDATA_H
 #define UNIDATA_H
 enum unicode_General_Category {
index f93339679f83cfea9e08bedb466f0aee02808c55..d152b36d6bb36637c7423e2707226a80262d6458 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/vacopy.h
+ * @brief va_copy fixup
+ */
 #ifndef VACOPY_H
 #define VACOPY_H
 
index 6803a14483428728b7e26645a9528e3987ac9c33..4d798f1b31037554a22a466a1271e8cb1f1e8bba 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/vector.c
+ * @brief Dynamic array utilities
+ */
 #include "common.h"
 
 #include <stddef.h>
index e5912223ecdd249489f200ee27cf462a74caee0a..e4eb0052f77bd74990390204a04cf8ac05263d00 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/version.c
+ * @brief Display version string and exit
+ */
 #include "common.h"
 
 #include "syscalls.h"
index 0b0a00438faa63502c9791bb4b4fafcd944cdd00..b8ee0d5a9a6ff0226e41ed63e286587be4553dca 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file lib/version.h
+ * @brief Display version string and exit
+ */
 #ifndef VERSION_H
 #define VERSION_H
 
index 9d8b492e395e6940f4ce3fb281ba608e3528cfb9..d3a3862c05725b3d1fd4a609adb40fba70c80bf9 100644 (file)
@@ -1,7 +1,11 @@
-/* Derived from getdate.c in glibc 2.3.6.  This is pretty much
+/** @file lib/xgetdate.c
+ * @brief Date parsing
+ *
+ * Derived from getdate.c in glibc 2.3.6.  This is pretty much
  * standard getdate() except that you supply the template in an
  * argument, rather than messing around with environment variables and
- * files.  */
+ * files.
+ */
 
 /* Convert a string representation of time to a time value.
    Copyright (C) 1997,1998,1999,2000,2001,2003 Free Software Foundation, Inc.
index 6efc2bf8da802f6b416d9d6c0e92ca9c40d9deef..f6ed8b37d4c8b1eeb6e75658a74b19bc67121826 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file plugins/exec.c
+ * @brief Plugin to play a track by executing a command
+ */
 #include <config.h>
 
 #include <unistd.h>
index c967fdafb11d8eb7307c3bd9591c23f1e55a911f..8af8c61c1288c132e49c7163022c523c24b051ba 100644 (file)
@@ -1,3 +1,8 @@
+/** @file plugins/execraw.c
+ * @brief Plugin to play a track by executing a command (raw mode)
+ *
+ * Shares code with @ref exec.c.
+ */
 #define TYPE DISORDER_PLAYER_RAW
 #include "exec.c"
 
index 9e857f9f77bd57bc23b8acc88b428b622e944e3f..1099d145465d4da9bb0658451c31b74ea7eaecf6 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file plugins/fs.c
+ * @brief Plugin to find tracks in a filesystem
+ */
 #include <config.h>
 
 #include <string.h>
index 1e40325e733cb2cf87bd9610c4611fa436a072ad..005c3e6fe10ad9dc6a924194f8503919773e5fea 100644 (file)
@@ -1,5 +1,9 @@
-/* This file is a subset of the debian source tarball of mpg321-0.2.10.3/mad.c
-   - see http://mpg321.sourceforge.net/ */
+/** @file plugins/mad.c
+ * @brief MP3 Length calculation
+ *
+ * This file is a subset of the debian source tarball of
+ * mpg321-0.2.10.3/mad.c - see http://mpg321.sourceforge.net/
+ */
 
 /*
     mpg321 - a fully free clone of mpg123.
index 83a709b7b9458160b478cd5e663d36a335baa723..5d73611a95f47c32167cd0b3f846ea40f1bcd740 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file plugins/madshim.h
+ * @brief Integrate code from mpg123
+ */
 
 #ifndef MADSHIM_H
 #define MADSHIM_H
 
-/* shim to integrate code from mpg123 */
-
 typedef struct {
   int num_frames;
   mad_timer_t duration;
index 8f9dc8038d6dcc9279bcdc5a5d4809d3486bf84e..a0d7c114782eb4e713b5dca200db5bef2ba86470 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file plugins/notify.c
+ * @brief Standard notify plugin
+ *
+ * The arrangements here are not very satisfactory - you wanted to be
+ * able to replace the plugin but still keep its features.  So you
+ * wanted a list of plugins really.
+ */
 
 #include "common.h"
 
index 90cb4acbdf27cfc613d3bf40d64a573d71657249..bbd7a4ec18ebad2ac9928fb2b5f28d63d47bcda8 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file plugins/shell.c
+ * @brief Plugin to execute track players via the shell.
+ */
 
 #include <config.h>
 
index 21b7fae0ac2712545809b6c71202742ecab96651..86a1fc8a26667b94ef5393be51536c37342557d9 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file plugins/tracklength.c
+ * @brief Plugin to compute track lengths
+ *
+ * Currently implements MP3, OGG, FLAC and WAV.
+ */
 
 #include <config.h>
 
index e0b7b6a81a8e2d8e8cee582006b6f4632d60441d..d1490cc77fac7a3c662097cf5216be06000f70b5 100755 (executable)
@@ -336,7 +336,13 @@ while(<>) {
 print STDERR "Generating unidata.h...\n";
 open(STDOUT, ">unidata.h") or die "unidata.h: $!\n";
 
-out("/* Automatically generated file, see scripts/make-unidata */\n",
+out("/** \@file lib/unidata.h\n",
+    " * \@brief Unicode tables\n",
+    " *\n",
+    " * Automatically generated file, see scripts/make-unidata\n",
+    " *\n",
+    " * DO NOT EDIT.\n",
+    " */\n",
     "#ifndef UNIDATA_H\n",
     "#define UNIDATA_H\n");
 
@@ -436,7 +442,13 @@ close STDOUT or die "unidata.h: $!\n";
 print STDERR "Generating unidata.c...\n";
 open(STDOUT, ">unidata.c") or die "unidata.c: $!\n";
 
-out("/* Automatically generated file, see scripts/make-unidata */\n",
+out("/** \@file lib/unidata.c\n",
+    " * \@brief Unicode tables\n",
+    " *\n",
+    " * Automatically generated file, see scripts/make-unidata\n",
+    " *\n",
+    " * DO NOT EDIT.\n",
+    " */\n",
     "#include \"common.h\"\n",
     "#include \"unidata.h\"\n");
 
index ce5e1233067f80c57a80a1efb632ef245916d9cd..bfd8923bee57c5e31bc00185fe0e4dc4217c3038 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file server/api-server.c
+ * @brief Server API functions
+ *
+ * These functions are made available to server-side plugins.
+ */
 
 #include "disorder-server.h"
 
index e5783c1fe4c1aa1a8580a95923531eb1ee1d1a71..fe9686c19e1f2b09394d273b86841eb39ddc53fa 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file server/api.c
+ * @brief Generic API
+ *
+ * These functions are made available to all kinds of plugins.
+ */
 #include "disorder-server.h"
 
 /* shared implementation of vararg functions */
index e89cd4e399ee35a241526d4cb10980ea9724a6a3..bd08eed738e0dc7ee518a2072dc87eb8d4999e0f 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file server/dbupgrade.c
+ * @brief Database upgrade utility
+ *
+ * Invoked by the server when necessary.
+ */
 #include "disorder-server.h"
 
 static DB_TXN *global_tid;
index b53bbd5a43827fb987b96983dde3a904e8367bcc..3c1335133b6d994d936b53e49178a80b54ba8a3a 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file server/deadlock.c
+ * @brief Deadlock monitor
+ *
+ * Spawned by the server.
+ */
 #include "disorder-server.h"
 
 static const struct option options[] = {
index c3a0e6913c8a4fcddcb174b2ac275fb5dba7e8c1..09eafbc63cc9544819c8459674b7b2c78c68b962 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file server/disorder-server.h
+ * @brief Definitions for server and allied utilities
+ */
 
 #ifndef DISORDER_SERVER_H
 #define DISORDER_SERVER_H
index 10ff89bb673b3021bcec2de832107ee568f1b663..e03fa42dd71200337f98e41f085cbaa4e721e4bd 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file server/disorderd.c
+ * @brief Main DisOrder server
+ */
 #include "disorder-server.h"
 
 static ev_source *ev;
index af1d43d13294cd502f15cc8d23441f7c836f18af..e08b32f6f21e7fcb5da022c4f6ca1177931c02c0 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file server/dump.c
+ * @brief Dump and restore database contents
+ */
 #include "disorder-server.h"
 
 static const struct option options[] = {
index 1a0bb7ecb0b474594c796eba19c8dd3c2a14e50c..fb8426f2428c26163970bd81198755d4f31b5060 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file server/exports.c
+ * @brief Server exports
+ *
+ * Force functions to be included in the server so they can be exported
+ * to plugins.
+ */
 #include "disorder.h"
 
 typedef void (*fptr)(void);
index 2889e4279fd7084c7a75159c904516cf7983e861..f657d6f153a944b5bf4c1b1730fc3a073868afa6 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file server/play.c
+ * @brief Playing tracks
+ */
 
 #include "disorder-server.h"
 #include <ao/ao.h>
index 2032d9da259d848665199b8b8f40520654d4b46a..6695d5a9b1c814103962605b013f602c57521939 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file server/plugin.c
+ * @brief Server plugin interface
+ */
 #include "disorder-server.h"
 
 #include <dlfcn.h>
index fd883aa747bdb6e034048f2b9c41444cc3090a38..01987a2b7d3735a6e1d3e9c771b5e4f00e452789 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file server/queue-ops.c
+ * @brief Track queues (server-specific code)
+ */
 #include "disorder-server.h"
 
 static int find_in_list(struct queue_entry *needle,
index f779d021b419f444f238dac31c65a472a6b93e0b..1380e24fd493709bc188011b0b9104b2c745cfd2 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file server/rescan.c
+ * @brief Rescanning utility
+ *
+ * Invoked by the server.
+ */
 #include "disorder-server.h"
 
 static time_t last_report;
index f23c06cf928e58f1a5672ad8ffa9bdded8df866d..a99474eff11e65ef9a9a6bfa99c401a47595e34f 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file server/state.c
+ * @brief Global server state
+ */
 #include "disorder-server.h"
 
 static const char *current_unix;
index 772be1314a344f78a48bfb6baa878784d4c99527..81c92f44473570997c0084cd84f0747bb3a078a7 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @file server/stats.c
+ * @brief Generate server statistics
+ *
+ * This is done in a subprogram because it can be quite slow and we don't want
+ * to wedge the rest of the server for the duration.
+ */
 
 #include "disorder-server.h"
 
index 116fed5fd1c057f1fb3bdf34dcae1a3ad55f17ef..ec84f682a3eb660e79ce532d08ca9cc2112ca436 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file server/trackname.c
+ * @brief Utility to run the track name calculator in isolation
+ */
 #include "disorder-server.h"
 
 static const struct option options[] = {
index f8839c85e1f031eb5700c66764865644596b81f2..a27252c49d8d869185a4f656e821ac3718ddc30d 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  * USA
  */
-
+/** @file tests/udplog.c
+ * @brief UDP logging utility
+ *
+ * Intended for low-level debugging.
+ */
 #include "common.h"
 
 #include <getopt.h>