X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/b9e77936de735c2fa43d3e9f1384cd246db31ab7..e3953a418a97e0512da7421bb1374c0336fdfd4d:/lib/speaker-protocol.h diff --git a/lib/speaker-protocol.h b/lib/speaker-protocol.h index 24fc970..200e4b5 100644 --- a/lib/speaker-protocol.h +++ b/lib/speaker-protocol.h @@ -1,6 +1,6 @@ /* * This file is part of DisOrder - * Copyright (C) 2005, 2007, 2008 Richard Kettlewell + * Copyright (C) 2005, 2007, 2008, 2013 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 @@ -31,7 +31,7 @@ struct speaker_message { /** @brief Message type * - * Messges from the main server: + * Messages from the main server: * - @ref SM_PLAY * - @ref SM_PAUSE * - @ref SM_RESUME @@ -50,8 +50,10 @@ struct speaker_message { /** @brief Message-specific data */ long data; - /** @brief Track ID (including 0 terminator) */ - char id[24]; /* ID including terminator */ + union { + /** @brief Track ID (including 0 terminator) */ + char id[24]; /* ID including terminator */ + } u; }; /* messages from the main DisOrder server */