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

Revision 503, 2.3 kB (checked in by ppalmers, 17 years ago)

- put all libavc stuff into it's own name namespace (AVC)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /*
2  * Copyright (C) 2005-2007 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 library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License version 2.1, as published by the Free Software Foundation;
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21  * MA 02110-1301 USA
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( IOSSerialize& se );
61     virtual bool deserialize( 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.