1 /* wvWare
2  * Copyright (C) Caolan McNamara, Dom Lachowicz, and others
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17  * 02111-1307, USA.
18  */
19 
20 #ifdef HAVE_CONFIG_H
21 #include "config.h"
22 #endif
23 
24 #include <stdlib.h>
25 #include <stdio.h>
26 #include "wv.h"
27 
28 void
wvGetRS(RS * item,wvStream * fd)29 wvGetRS (RS * item, wvStream * fd)
30 {
31     item->fRouted = (S16) read_16ubit (fd);
32     item->fReturnOrig = (S16) read_16ubit (fd);
33     item->fTrackStatus = (S16) read_16ubit (fd);
34     item->fDirty = (S16) read_16ubit (fd);
35     item->nProtect = (S16) read_16ubit (fd);
36     item->iStage = (S16) read_16ubit (fd);
37     item->delOption = (S16) read_16ubit (fd);
38     item->cRecip = (S16) read_16ubit (fd);
39 }
40