X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/6207d2f3bcf38c072c2bcaa7c9e8dbd469b5e8e6..0590cedca75c01811972b2f694f60f24028ee973:/lib/client.c diff --git a/lib/client.c b/lib/client.c index 08d325a..c06bdf1 100644 --- a/lib/client.c +++ b/lib/client.c @@ -59,12 +59,20 @@ #include "rights.h" #include "trackdb.h" +/** @brief Client handle contents */ struct disorder_client { - FILE *fpin, *fpout; + /** @brief Stream to read from */ + FILE *fpin; + /** @brief Stream to write to */ + FILE *fpout; + /** @brief Peer description */ char *ident; + /** @brief Username */ char *user; + /** @brief Report errors to @c stderr */ int verbose; - char *last; /* last error string */ + /** @brief Last error string */ + char *last; }; /** @brief Create a new client @@ -547,6 +555,7 @@ int disorder_playing(disorder_client *c, struct queue_entry **qp) { return 0; } +/** @brief Fetch the queue, recent list, etc */ static int disorder_somequeue(disorder_client *c, const char *cmd, struct queue_entry **qp) { struct queue_entry *qh, **qt = &qh, *q;