1 |
/* $Id$ */ |
---|
2 |
|
---|
3 |
/* |
---|
4 |
* FreeBob streaming API |
---|
5 |
* FreeBob = Firewire (pro-)audio for linux |
---|
6 |
* |
---|
7 |
* http://freebob.sf.net |
---|
8 |
* |
---|
9 |
* Copyright (C) 2006 Pieter Palmers <pieterpalmers@users.sourceforge.net> |
---|
10 |
* |
---|
11 |
* This program is free software {} you can redistribute it and/or modify |
---|
12 |
* it under the terms of the GNU General Public License as published by |
---|
13 |
* the Free Software Foundation {} either version 2 of the License, or |
---|
14 |
* (at your option) any later version. |
---|
15 |
* |
---|
16 |
* This program is distributed in the hope that it will be useful, |
---|
17 |
* but WITHOUT ANY WARRANTY {} without even the implied warranty of |
---|
18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
19 |
* GNU General Public License for more details. |
---|
20 |
* |
---|
21 |
* You should have received a copy of the GNU General Public License |
---|
22 |
* along with this program {} if not, write to the Free Software |
---|
23 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
24 |
* |
---|
25 |
* |
---|
26 |
* |
---|
27 |
*/ |
---|
28 |
#ifndef __FREEBOB_ISOHANDLERMANAGER__ |
---|
29 |
#define __FREEBOB_ISOHANDLERMANAGER__ |
---|
30 |
|
---|
31 |
#include <vector> |
---|
32 |
|
---|
33 |
namespace FreebobStreaming |
---|
34 |
{ |
---|
35 |
|
---|
36 |
/*! |
---|
37 |
\brief The ISO Handler management class |
---|
38 |
|
---|
39 |
This class manages the use of ISO handlers by ISO streams |
---|
40 |
|
---|
41 |
*/ |
---|
42 |
|
---|
43 |
class IsoHandler; |
---|
44 |
class IsoXmitHandler; |
---|
45 |
class IsoRecvHandler; |
---|
46 |
|
---|
47 |
typedef std::vector<IsoXmitHandler *> IsoXmitHandlerVector; |
---|
48 |
typedef std::vector<IsoXmitHandler *>::iterator IsoXmitHandlerVectorIterator; |
---|
49 |
typedef std::vector<IsoRecvHandler *> IsoRecvHandlerVector; |
---|
50 |
typedef std::vector<IsoRecvHandler *>::iterator IsoRecvHandlerVectorIterator; |
---|
51 |
|
---|
52 |
|
---|
53 |
class IsoHandlerManager |
---|
54 |
{ |
---|
55 |
private: |
---|
56 |
IsoXmitHandlerVector m_IsoXmitHandlers; |
---|
57 |
IsoRecvHandlerVector m_IsoRecvHandlers; |
---|
58 |
|
---|
59 |
public: |
---|
60 |
|
---|
61 |
IsoHandlerManager(); |
---|
62 |
virtual ~IsoHandlerManager(); |
---|
63 |
|
---|
64 |
int RegisterHandler(IsoHandler *); |
---|
65 |
int UnregisterHandler(IsoHandler *); |
---|
66 |
|
---|
67 |
|
---|
68 |
}; |
---|
69 |
|
---|
70 |
} |
---|
71 |
|
---|
72 |
#endif /* __FREEBOB_ISOHANDLERMANAGER__ */ |
---|
73 |
|
---|
74 |
|
---|
75 |
|
---|