root/trunk/libffado/src/libavc/general/avc_unit_info.h

Revision 864, 2.3 kB (checked in by ppalmers, 15 years ago)

update license to GPLv2 or GPLv3 instead of GPLv2 or any later version. Update copyrights to reflect the new year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /*
2  * Copyright (C) 2005-2008 by Daniel Wagner
3  *
4  * This file is part of FFADO
5  * FFADO = Free Firewire (pro-)audio drivers for linux
6  *
7  * FFADO is based upon FreeBoB
8  *
9  * This program is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 2 of the License, or
12  * (at your option) version 3 of the License.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
21  *
22  */
23
24 #ifndef AVCUNITINFO_H
25 #define AVCUNITINFO_H
26
27 #include "avc_generic.h"
28
29 #include <libavc1394/avc1394.h>
30
31 namespace AVC {
32
33
34 class UnitInfoCmd: public AVCCommand
35 {
36 public:
37
38     enum EUnitType {
39         eUT_Monitor       = AVC1394_SUBUNIT_VIDEO_MONITOR,
40         eUT_Audio         = AVC1394_SUBUNIT_AUDIO,
41         eUT_Printer       = AVC1394_SUBUNIT_PRINTER,
42         eUT_Disc          = AVC1394_SUBUNIT_DISC_RECORDER,
43         eUT_VCR           = AVC1394_SUBUNIT_VCR,
44         eUT_Tuner         = AVC1394_SUBUNIT_TUNER,
45         eUT_CA            = AVC1394_SUBUNIT_CA,
46         eUT_Camera        = AVC1394_SUBUNIT_VIDEO_CAMERA,
47         eUT_Panel         = AVC1394_SUBUNIT_PANEL,
48         eUT_BulltinBoard  = AVC1394_SUBUNIT_BULLETIN_BOARD,
49         eUT_CameraStorage = AVC1394_SUBUNIT_CAMERA_STORAGE,
50         eUT_Music         = AVC1394_SUBUNIT_MUSIC,
51         eUT_VendorUnique  = AVC1394_SUBUNIT_VENDOR_UNIQUE,
52         eUT_Reserved      = AVC1394_SUBUNIT_RESERVED,
53         eUT_Extended      = AVC1394_SUBUNIT_EXTENDED,
54         eUT_Unit          = AVC1394_SUBUNIT_UNIT,
55     };
56
57     UnitInfoCmd( Ieee1394Service& ieee1349service );
58     virtual ~UnitInfoCmd();
59
60     virtual bool serialize( Util::Cmd::IOSSerialize& se );
61     virtual bool deserialize( Util::Cmd::IISDeserialize& de );
62
63     virtual const char* getCmdName() const
64     { return "UnitInfoCmd"; }
65
66     reserved_t  m_reserved;
67     unit_type_t m_unit_type;
68     unit_t      m_unit;
69
70     company_id_t m_company_id;
71 };
72
73 }
74
75 #endif // AVCUNITINFO_H
Note: See TracBrowser for help on using the browser.