12024
|
1 /*
|
|
2 The mediastreamer library aims at providing modular media processing and I/O
|
|
3 for linphone, but also for any telephony application.
|
|
4 Copyright (C) 2001 Simon MORLAT simon.morlat@linphone.org
|
|
5
|
|
6 This library is free software; you can redistribute it and/or
|
|
7 modify it under the terms of the GNU Lesser General Public
|
|
8 License as published by the Free Software Foundation; either
|
|
9 version 2.1 of the License, or (at your option) any later version.
|
|
10
|
|
11 This library is distributed in the hope that it will be useful,
|
|
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
14 Lesser General Public License for more details.
|
|
15
|
|
16 You should have received a dispatcher of the GNU Lesser General Public
|
|
17 License along with this library; if not, write to the Free Software
|
|
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
19 */
|
|
20
|
|
21
|
|
22 #ifndef MSQDISPATCHER_H
|
|
23 #define MSQDISPATCHER_H
|
|
24
|
|
25 #include "msfilter.h"
|
|
26
|
|
27
|
|
28 /*this is the class that implements a qdispatcher filter*/
|
|
29
|
|
30 #define MS_QDISPATCHER_MAX_INPUTS 1
|
|
31 #define MS_QDISPATCHER_MAX_OUTPUTS 5
|
|
32
|
|
33 typedef struct _MSQdispatcher
|
|
34 {
|
|
35 /* the MSQdispatcher derivates from MSFilter, so the MSFilter object MUST be the first of the MSQdispatcher object
|
|
36 in order to the object mechanism to work*/
|
|
37 MSFilter filter;
|
|
38 MSQueue *q_inputs[MS_QDISPATCHER_MAX_INPUTS];
|
|
39 MSQueue *q_outputs[MS_QDISPATCHER_MAX_OUTPUTS];
|
|
40 } MSQdispatcher;
|
|
41
|
|
42 typedef struct _MSQdispatcherClass
|
|
43 {
|
|
44 /* the MSQdispatcher derivates from MSFilter, so the MSFilter class MUST be the first of the MSQdispatcher class
|
|
45 in order to the class mechanism to work*/
|
|
46 MSFilterClass parent_class;
|
|
47 } MSQdispatcherClass;
|
|
48
|
|
49 /* PUBLIC */
|
|
50 #define MS_QDISPATCHER(filter) ((MSQdispatcher*)(filter))
|
|
51 #define MS_QDISPATCHER_CLASS(klass) ((MSQdispatcherClass*)(klass))
|
|
52 MSFilter * ms_qdispatcher_new(void);
|
|
53
|
|
54 /* FOR INTERNAL USE*/
|
|
55 void ms_qdispatcher_init(MSQdispatcher *r);
|
|
56 void ms_qdispatcher_class_init(MSQdispatcherClass *klass);
|
|
57 void ms_qdispatcher_destroy( MSQdispatcher *obj);
|
|
58 void ms_qdispatcher_process(MSQdispatcher *r);
|
|
59
|
|
60 #endif
|