PLAY_MODE_PLAYLIST,
};
-/**
- * Data about one audio file.
- *
- * Needed to produce ls and stat output.
- */
-struct ls_data {
- /** Usual audio format handler information. */
- struct afh_info afhi;
- /** Audio file selector information. */
- struct afs_info afsi;
- /** The full path of the audio file. */
- char *path;
- /** The score value (if -a was given). */
- long score;
- /** The hash value of audio file data. */
- unsigned char *hash;
-};
-
/**
* Codes used for communication between the server and the afs process.
*
LS_MODE_PARSER,
};
+/* Data about one audio file. Needed for ls and stat output. */
+struct ls_data {
+ /* Usual audio format handler information. */
+ struct afh_info afhi;
+ /* Audio file selector information. */
+ struct afs_info afsi;
+ /* The full path of the audio file. */
+ char *path;
+ /* The score value (if -a was given). */
+ long score;
+ /* The hash value of the audio file data. */
+ unsigned char *hash;
+};
+
/** The flags accepted by the ls command. */
enum ls_flags {
/** -p */
/** Define an osl table description for a blob table. */
#define DEFINE_BLOB_TABLE_DESC(table_name) \
- struct osl_table_description table_name ## _table_desc = { \
+ static struct osl_table_description table_name ## _table_desc = { \
.name = #table_name, \
.num_columns = NUM_BLOB_COLUMNS, \
.flags = OSL_LARGE_TABLE, \
/** \file server.c Paraslash's main server. */
/**
- * \mainpage Main data structures:
+ * \mainpage Main data structures and selected APIs:
*
* - Server: \ref server_command, \ref sender,
* - Audio file selector: \ref afs_info, \ref afs_table,
* - Audio format handler: \ref audio_format_handler, \ref afh_info
* - Receivers/filters/writers: \ref receiver, \ref receiver_node,
* \ref filter, \ref filter_node, \ref writer_node, \ref writer.
- *
- * Selected APIs:
- *
* - Scheduling: \ref sched.h,
* - Buffer trees: \ref buffer_tree.h,
* - Sideband API: \ref sideband.h,
* - Interactive sessions: \ref interactive.h,
* - File descriptors: \ref fd.h,
* - Signals: \ref signal.h,
- * - Networking: \ref net.h,
+ * - Networking: \ref net.h,
* - Time: \ref time.c,
* - Doubly linked lists: \ref list.h.
*/