]> sjero.net Git - linphone/blob - media_api/basiccall.h
purge out p2pproxy
[linphone] / media_api / basiccall.h
1 /*\r
2         The objective of the media_api is to construct and run the necessary processing \r
3         on audio and video data flows for a given call (two party call) or conference.\r
4         Copyright (C) 2001  Sharath Udupa skuds@gmx.net \r
5 \r
6         This library is free software; you can redistribute it and/or\r
7         modify it under the terms of the GNU Lesser General Public\r
8         License as published by the Free Software Foundation; either\r
9         version 2.1 of the License, or (at your option) any later version.\r
10 \r
11         This library is distributed in the hope that it will be useful,\r
12         but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
14         Lesser General Public License for more details.\r
15 \r
16         You should have received a copy of the GNU Lesser General Public\r
17         License along with this library; if not, write to the Free Software\r
18         Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
19 */\r
20 \r
21 #include "common.h"\r
22 #include "mediaflow.h"\r
23 #include "callmember.h"\r
24 \r
25 //other includes required to be done here\r
26 #define MemberA 1\r
27 #define MemberB 2\r
28 \r
29 \r
30 struct _BasicCall{\r
31         CallMember *memberA, *memberB;\r
32         GList *flows;                   //linked list of MediaFlows\r
33 };\r
34 \r
35 typedef struct _BasicCall BasicCall;\r
36 \r
37 \r
38 BasicCall *basic_call_new();\r
39 \r
40 CallMember *basic_call_get_member(BasicCall *call, int member_nu);\r
41 \r
42 void basic_call_add_flow(BasicCall *call, MediaFlow *flow);\r
43 \r
44 int basic_call_start_flow(BasicCall *call, MediaFlow *flow);\r
45 \r
46 int basic_call_stop_flow(BasicCall *call, MediaFlow *flow);\r
47 \r
48 int basic_call_start_all_flows(BasicCall *call);\r
49 \r
50 int basic_call_destroy(BasicCall *call);\r
51 \r