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

Revision 375, 2.2 kB (checked in by wagi, 17 years ago)

AVCCommand: All AVC commants take a reference instead a pointer to 1394 service
BeBoB::AvDevice?: PreSonus? FIREBOX id added

De/Serialize all AvPlugs? through AvPlugManager?
AvPlugManager? can't be a member because of serialization

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