root/trunk/libfreebob/src/libfreebobavc/avc_plug_info.h

Revision 375, 2.6 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_plug_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 AVCPlugInfo_h
22 #define AVCPlugInfo_h
23
24 #include "avc_generic.h"
25
26 #include <libavc1394/avc1394.h>
27
28 #define AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_ISOCHRONOUS_AND_EXTERNAL_PLUG 0x00
29 #define AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_ASYNCHRONOUS_PLUG             0x01
30 #define AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_GENERIC_BUS_PLUG_BLUETOOTH    0x40
31 #define AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_NOT_USED                      0xFF
32
33
34 class PlugInfoCmd: public AVCCommand
35 {
36 public:
37     enum ESubFunction {
38         eSF_SerialBusIsochronousAndExternalPlug  = AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_ISOCHRONOUS_AND_EXTERNAL_PLUG,
39         eSF_SerialBusAsynchonousPlug             = AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_ASYNCHRONOUS_PLUG,
40         eSF_SerialBusPlug                        = AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_GENERIC_BUS_PLUG_BLUETOOTH,
41         eSF_NotUsed                              = AVC1394_PLUG_INFO_SUBFUNCTION_SERIAL_BUS_NOT_USED,
42     };
43
44     PlugInfoCmd( Ieee1394Service& ieee1394service,
45                  ESubFunction eSubFunction = eSF_SerialBusIsochronousAndExternalPlug );
46     PlugInfoCmd( const PlugInfoCmd& rhs );
47     virtual ~PlugInfoCmd();
48
49     virtual bool serialize( IOSSerialize& se );
50     virtual bool deserialize( IISDeserialize& de );
51
52     virtual const char* getCmdName() const
53         { return "PlugInfoCmd"; }
54
55     nr_of_plugs_t m_serialBusIsochronousInputPlugs;
56     nr_of_plugs_t m_serialBusIsochronousOutputPlugs;
57     nr_of_plugs_t m_externalInputPlugs;
58     nr_of_plugs_t m_externalOutputPlugs;
59     nr_of_plugs_t m_serialBusAsynchronousInputPlugs;
60     nr_of_plugs_t m_serialBusAsynchronousOuputPlugs;
61     nr_of_plugs_t m_destinationPlugs;
62     nr_of_plugs_t m_sourcePlugs;
63
64     bool setSubFunction( ESubFunction subFunction );
65
66 protected:
67     subfunction_t m_subFunction;
68
69 };
70
71
72 #endif // AVCPlugInfo_h
Note: See TracBrowser for help on using the browser.