root/trunk/libffado/src/bebob/bebob_avplug.h

Revision 1154, 2.3 kB (checked in by ppalmers, 13 years ago)

add expat based parsing of the device cache. add compile-time selection between libxml++ and expat. will allow to get rid of the libxml++ dependency on the long run. scons SERIALIZE_USE_EXPAT=0Only compile testedscons SERIALIZE_USE_EXPAT=0

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 BEBOB_AVPLUG_H
25 #define BEBOB_AVPLUG_H
26
27 #include "libavc/ccm/avc_signal_source.h"
28 #include "libavc/streamformat/avc_extended_stream_format.h"
29 #include "libavc/general/avc_extended_plug_info.h"
30 #include "libavc/general/avc_extended_cmd_generic.h"
31 #include "libavc/avc_definitions.h"
32 #include "libavc/general/avc_generic.h"
33 #include "libavc/general/avc_plug.h"
34
35 #include "libutil/serialize.h"
36
37 #include "debugmodule/debugmodule.h"
38
39 class Ieee1394Service;
40 class ConfigRom;
41
42 namespace BeBoB {
43
44 class AvDevice;
45
46 class Plug : public AVC::Plug {
47 public:
48
49     // \todo This constructors sucks. too many parameters. fix it.
50     Plug( AVC::Unit* unit,
51           AVC::Subunit* subunit,
52           AVC::function_block_type_t functionBlockType,
53           AVC::function_block_type_t functionBlockId,
54           AVC::Plug::EPlugAddressType plugAddressType,
55           AVC::Plug::EPlugDirection plugDirection,
56           AVC::plug_id_t plugId );
57     Plug( const Plug& rhs );
58     virtual ~Plug();
59
60     bool discover();
61     bool discoverConnections();
62
63  public:
64
65 protected:
66     Plug();
67
68     bool discoverPlugType();
69     bool discoverName();
70     bool discoverNoOfChannels();
71     bool discoverChannelPosition();
72     bool discoverChannelName();
73     bool discoverClusterInfo();
74     bool discoverConnectionsInput();
75     bool discoverConnectionsOutput();
76
77 private:
78     bool copyClusterInfo(AVC::ExtendedPlugInfoPlugChannelPositionSpecificData&
79                          channelPositionData );
80     AVC::ExtendedPlugInfoCmd setPlugAddrToPlugInfoCmd();
81
82
83 };
84
85 }
86
87 #endif // BEBOB_AVPLUG_H
Note: See TracBrowser for help on using the browser.