MAke doxygen happy again and add documentation for com_setatt().
---
N: init
P: AFS_READ | AFS_WRITE
-D: FIXME
-U: FIXME
-H: FIXME
+D: Initialize the osl tables for the audio file selector.
+U: init [table_name ...]
+H: When invoked without arguments, this command creates all tables. Otherwise
+H: only the tables given by table_name... are created.
---
N: afs_ls
P: AFS_READ
P: AFS_READ
D: List attributes
U: lsatt [-a] [-l]
-H:
+H:
H: Print the list of all defined attributes.
-H:
+H:
H: Options:
-H: -a Sort attributes alphabetically by name. The default is to sort by attribute
-H: identifier.
-H:
-H: -l Print a long listing containing both identifier and attribute name. The
-H: default is to print only the name.
+H: -a Sort attributes alphabetically by name. The default is to sort by
+H: identifier.
+H:
+H: -l Print a long listing containing both identifier and attribute name. The
+H: default is to print only the name.
---
N: setatt
P: AFS_READ | AFS_WRITE
D: FIXME
-U: FIXME
-H: FIXME
+U: setatt attribute1{+|-} [attribute2{+|-}...] pattern
+
+H: Set ('+') or unset ('-') the given attributes for all audio files matching
+H: pattern. Example:
+H:
+H: sa rock+ punk+ classic- '*foo.mp3'
+H:
+H: sets the 'rock' and the 'punk' attribute but unsets the 'classic'
+H: attribute of all files ending with 'foo.mp3'.
---
N: addatt
P: AFS_READ | AFS_WRITE
O: int com_ls@member@(int fd, int argc, char * const * const argv);
P: AFS_READ
D: FIXME
-U: cat@member@ <pattern>
+U: ls@member@ pattern
H: FIXME
---
T: rm
* \param buf Result.
*
* This function prints a string of at most 64 characters plus the terminating
- * \p NULL character into \buf which must be provided by the caller and at
+ * \p NULL character into \a buf which must be provided by the caller and at
* least 65 bytes long. The "x" character is used for set attributes and "-" is
* used for unset attributes.
*
* A wrapper around connect(2).
*
* \param fd The file descriptor.
- * \param their_addr The address to connect.
+ * \param addr The address to connect.
+ * \param len The size of \a addr.
*
* This should not be called directly. Always use the PARA_CONNECT macro.
*
*
* \sa connect(2), PARA_CONNECT.
*/
-_static_inline_ int _para_connect(int fd, void *addr, socklen_t len)
+static inline int _para_connect(int fd, void *addr, socklen_t len)
{
if (connect(fd, (struct sockaddr *)addr, len) == -1)
return -E_CONNECT;
#include <dirent.h> /* readdir() */
#include <assert.h>
-//#define FMT_OFF_T "%li"
-
-
/**
* A wrapper for lseek(2).
*
}
/**
- * Waraper for the write system call.
+ * Wrapper for the write system call.
*
* \param fd The file descriptor to write to.
* \param buf The buffer to write.
* If \a diff is not \p NULL, it contains the absolute value |\a b - \a a| on
* return.
*
- * \return If \a b < \a, this function returns -1, otherwise it returns 1.
+ * \return If \a b < \a a, this function returns -1, otherwise it returns 1.
*/
int tv_diff(const struct timeval *b, const struct timeval *a, struct timeval *diff)
{
*
* \param a First addend.
* \param b Second addend.
- *
- * \param \a Sum contains the sum \a + \a b on return.
+ * \param sum Contains the sum \a + \a b on return.
*/
void tv_add(const struct timeval *a, const struct timeval *b,
struct timeval *sum)