]> sjero.net Git - linphone/blob - coreapi/callbacks.c
73eeca56ee03f9388b5b3367cf2f425419fda50d
[linphone] / coreapi / callbacks.c
1 /*
2 linphone
3 Copyright (C) 2010  Simon MORLAT (simon.morlat@free.fr)
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9
10 This program 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 this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18 */
19
20
21 #include "sal.h"
22
23 #include "linphonecore.h"
24 #include "private.h"
25
26 static void call_received(SalOp *h){
27 }
28
29 static void call_ringing(SalOp *h){
30 }
31
32 static void call_accepted(SalOp *h){
33 }
34
35 static void call_ack(SalOp *h){
36 }
37
38 static void call_updated(SalOp *){
39 }
40
41 static void call_terminated(SalOp *h){
42 }
43
44 static void call_failure(SalOp *h, SalError error, SalReason reason, const char *details){
45 }
46
47 static void auth_requested(SalOp *h, const char *realm, const char *username){
48 }
49
50 static void auth_success(SalOp *h, const char *realm, const char *username){
51 }
52
53 static void register_success(SalOp *op, bool_t registered){
54 }
55
56 static void register_failure(SalOp *op, SalError error, SalReason reason, const char *details){
57 }
58
59 static void vfu_request(SalOp *op){
60 }
61
62 static void dtmf_received(SalOp *op, char dtmf){
63 }
64
65 static void refer_received(SalOp *op, SalOp *op, const char *referto){
66 }
67
68 static void text_received(Sal *sal, const char *from, const char *msg){
69 }
70
71 static void presence_changed(SalOp *op, SalPresenceStatus status, const char *msg){
72 }
73
74 static void subscribe_received(SalOp *op, const char *from){
75 }
76
77 static void internal_message(SalOp *op, const char *msg){
78 }
79
80
81
82 SalCallbacks linphone_sal_callbacks={
83         call_received,
84         call_ringing,
85         call_accepted,
86         call_ack,
87         call_updated,
88         call_terminated,
89         call_failure,
90         auth_requested,
91         auth_success,
92         register_success,
93         register_failure,
94         vfu_request,
95         dtmf_received,
96         refer_received,
97         text_received,
98         presence_changed,
99         subscribe_received,
100         internal_message
101 };
102
103