2 * @file telepathy-stubs.c
6 * Copyright (C) 2012 SIPE Project <http://sipe.sourceforge.net/>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 * Stubs for all unimplemented backend functions, because
26 * - feature is not yet implemented, or
27 * - feature can't be implemented for telepathy backend
29 * Ordering copied from sipe-backend.h
38 #include "sipe-backend.h"
39 #include "sipe-common.h"
40 #include "sipe-core.h"
42 /** BUDDIES ******************************************************************/
44 sipe_backend_buddy
sipe_backend_buddy_find(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
45 SIPE_UNUSED_PARAMETER
const gchar
*buddy_name
,
46 SIPE_UNUSED_PARAMETER
const gchar
*group_name
) { return(NULL
); }
47 GSList
*sipe_backend_buddy_find_all(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
48 SIPE_UNUSED_PARAMETER
const gchar
*buddy_name
,
49 SIPE_UNUSED_PARAMETER
const gchar
*group_name
) { return(NULL
); }
50 gchar
*sipe_backend_buddy_get_name(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
51 SIPE_UNUSED_PARAMETER
const sipe_backend_buddy who
) { return(NULL
); }
52 gchar
*sipe_backend_buddy_get_alias(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
53 SIPE_UNUSED_PARAMETER
const sipe_backend_buddy who
) { return(NULL
); }
54 gchar
*sipe_backend_buddy_get_server_alias(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
55 SIPE_UNUSED_PARAMETER
const sipe_backend_buddy who
) { return(NULL
); }
56 gchar
*sipe_backend_buddy_get_local_alias(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
57 SIPE_UNUSED_PARAMETER
const sipe_backend_buddy who
) { return(NULL
); }
58 gchar
*sipe_backend_buddy_get_group_name(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
59 SIPE_UNUSED_PARAMETER
const sipe_backend_buddy who
) { return(NULL
); }
60 gchar
*sipe_backend_buddy_get_string(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
61 SIPE_UNUSED_PARAMETER sipe_backend_buddy buddy
,
62 SIPE_UNUSED_PARAMETER
const sipe_buddy_info_fields key
) { return(NULL
); }
63 void sipe_backend_buddy_set_string(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
64 SIPE_UNUSED_PARAMETER sipe_backend_buddy buddy
,
65 SIPE_UNUSED_PARAMETER
const sipe_buddy_info_fields key
,
66 SIPE_UNUSED_PARAMETER
const gchar
*val
) {}
67 guint
sipe_backend_buddy_get_status(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
68 SIPE_UNUSED_PARAMETER
const gchar
*uri
) { return(SIPE_ACTIVITY_AVAILABLE
); }
69 void sipe_backend_buddy_set_alias(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
70 SIPE_UNUSED_PARAMETER
const sipe_backend_buddy who
,
71 SIPE_UNUSED_PARAMETER
const gchar
*alias
) {}
72 void sipe_backend_buddy_set_server_alias(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
73 SIPE_UNUSED_PARAMETER
const sipe_backend_buddy who
,
74 SIPE_UNUSED_PARAMETER
const gchar
*alias
) {}
75 sipe_backend_buddy
sipe_backend_buddy_add(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
76 SIPE_UNUSED_PARAMETER
const gchar
*name
,
77 SIPE_UNUSED_PARAMETER
const gchar
*alias
,
78 SIPE_UNUSED_PARAMETER
const gchar
*groupname
) { return(NULL
); }
79 void sipe_backend_buddy_remove(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
80 SIPE_UNUSED_PARAMETER
const sipe_backend_buddy who
) {}
81 void sipe_backend_buddy_request_add(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
82 SIPE_UNUSED_PARAMETER
const gchar
*who
,
83 SIPE_UNUSED_PARAMETER
const gchar
*alias
) {}
84 void sipe_backend_buddy_request_authorization(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
85 SIPE_UNUSED_PARAMETER
const gchar
*who
,
86 SIPE_UNUSED_PARAMETER
const gchar
*alias
,
87 SIPE_UNUSED_PARAMETER gboolean on_list
,
88 SIPE_UNUSED_PARAMETER sipe_backend_buddy_request_authorization_cb auth_cb
,
89 SIPE_UNUSED_PARAMETER sipe_backend_buddy_request_authorization_cb deny_cb
,
90 SIPE_UNUSED_PARAMETER gpointer data
) {}
91 gboolean
sipe_backend_buddy_is_blocked(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
92 SIPE_UNUSED_PARAMETER
const gchar
*who
) { return(FALSE
); }
93 void sipe_backend_buddy_set_blocked_status(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
94 SIPE_UNUSED_PARAMETER
const gchar
*who
,
95 SIPE_UNUSED_PARAMETER gboolean blocked
) {}
96 void sipe_backend_buddy_set_status(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
97 SIPE_UNUSED_PARAMETER
const gchar
*who
,
98 SIPE_UNUSED_PARAMETER guint activity
) {}
99 void sipe_backend_buddy_set_photo(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
100 SIPE_UNUSED_PARAMETER
const gchar
*who
,
101 SIPE_UNUSED_PARAMETER gpointer image_data
,
102 SIPE_UNUSED_PARAMETER gsize image_len
,
103 SIPE_UNUSED_PARAMETER
const gchar
*photo_hash
) {}
104 const gchar
*sipe_backend_buddy_get_photo_hash(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
105 SIPE_UNUSED_PARAMETER
const gchar
*who
) { return(""); }
106 gboolean
sipe_backend_buddy_group_add(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
107 SIPE_UNUSED_PARAMETER
const gchar
*group_name
) { return(FALSE
); }
108 struct sipe_backend_buddy_info
*sipe_backend_buddy_info_start(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
) { return(NULL
); }
109 void sipe_backend_buddy_info_add(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
110 SIPE_UNUSED_PARAMETER
struct sipe_backend_buddy_info
*info
,
111 SIPE_UNUSED_PARAMETER sipe_buddy_info_fields key
,
112 SIPE_UNUSED_PARAMETER
const gchar
*value
) {}
113 void sipe_backend_buddy_info_break(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
114 SIPE_UNUSED_PARAMETER
struct sipe_backend_buddy_info
*info
) {}
115 void sipe_backend_buddy_info_finalize(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
116 SIPE_UNUSED_PARAMETER
struct sipe_backend_buddy_info
*info
,
117 SIPE_UNUSED_PARAMETER
const gchar
*uri
) {}
118 void sipe_backend_buddy_tooltip_add(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
119 SIPE_UNUSED_PARAMETER
struct sipe_backend_buddy_tooltip
*tooltip
,
120 SIPE_UNUSED_PARAMETER
const gchar
*description
,
121 SIPE_UNUSED_PARAMETER
const gchar
*value
) {}
122 struct sipe_backend_buddy_menu
*sipe_backend_buddy_menu_start(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
) { return(NULL
); }
123 struct sipe_backend_buddy_menu
*sipe_backend_buddy_menu_add(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
124 SIPE_UNUSED_PARAMETER
struct sipe_backend_buddy_menu
*menu
,
125 SIPE_UNUSED_PARAMETER
const gchar
*label
,
126 SIPE_UNUSED_PARAMETER
enum sipe_buddy_menu_type type
,
127 SIPE_UNUSED_PARAMETER gpointer parameter
) { return(NULL
); }
128 struct sipe_backend_buddy_menu
*sipe_backend_buddy_menu_separator(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
129 SIPE_UNUSED_PARAMETER
struct sipe_backend_buddy_menu
*menu
,
130 SIPE_UNUSED_PARAMETER
const gchar
*label
) { return(NULL
); }
131 struct sipe_backend_buddy_menu
*sipe_backend_buddy_sub_menu_add(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
132 SIPE_UNUSED_PARAMETER
struct sipe_backend_buddy_menu
*menu
,
133 SIPE_UNUSED_PARAMETER
const gchar
*label
,
134 SIPE_UNUSED_PARAMETER
struct sipe_backend_buddy_menu
*sub
) { return(NULL
); }
136 /** CHAT *********************************************************************/
138 void sipe_backend_chat_session_destroy(SIPE_UNUSED_PARAMETER
struct sipe_backend_chat_session
*session
) {}
139 void sipe_backend_chat_add(SIPE_UNUSED_PARAMETER
struct sipe_backend_chat_session
*backend_session
,
140 SIPE_UNUSED_PARAMETER
const gchar
*uri
,
141 SIPE_UNUSED_PARAMETER gboolean is_new
) {}
142 void sipe_backend_chat_close(SIPE_UNUSED_PARAMETER
struct sipe_backend_chat_session
*backend_session
) {}
143 struct sipe_backend_chat_session
*sipe_backend_chat_create(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
144 SIPE_UNUSED_PARAMETER
struct sipe_chat_session
*session
,
145 SIPE_UNUSED_PARAMETER
const gchar
*title
,
146 SIPE_UNUSED_PARAMETER
const gchar
*nick
) { return(NULL
); }
147 gboolean
sipe_backend_chat_find(SIPE_UNUSED_PARAMETER
struct sipe_backend_chat_session
*backend_session
,
148 SIPE_UNUSED_PARAMETER
const gchar
*uri
) { return(FALSE
); }
149 gboolean
sipe_backend_chat_is_operator(SIPE_UNUSED_PARAMETER
struct sipe_backend_chat_session
*backend_session
,
150 SIPE_UNUSED_PARAMETER
const gchar
*uri
) { return(FALSE
); }
151 void sipe_backend_chat_message(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
152 SIPE_UNUSED_PARAMETER
struct sipe_backend_chat_session
*backend_session
,
153 SIPE_UNUSED_PARAMETER
const gchar
*from
,
154 SIPE_UNUSED_PARAMETER
const gchar
*html
) {}
155 void sipe_backend_chat_operator(SIPE_UNUSED_PARAMETER
struct sipe_backend_chat_session
*backend_session
,
156 SIPE_UNUSED_PARAMETER
const gchar
*uri
) {}
157 void sipe_backend_chat_rejoin(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
158 SIPE_UNUSED_PARAMETER
struct sipe_backend_chat_session
*backend_session
,
159 SIPE_UNUSED_PARAMETER
const gchar
*nick
,
160 SIPE_UNUSED_PARAMETER
const gchar
*title
) {}
161 void sipe_backend_chat_rejoin_all(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
) {}
162 void sipe_backend_chat_remove(SIPE_UNUSED_PARAMETER
struct sipe_backend_chat_session
*backend_session
,
163 SIPE_UNUSED_PARAMETER
const gchar
*uri
) {}
164 void sipe_backend_chat_show(SIPE_UNUSED_PARAMETER
struct sipe_backend_chat_session
*backend_session
) {}
165 void sipe_backend_chat_topic(SIPE_UNUSED_PARAMETER
struct sipe_backend_chat_session
*backend_session
,
166 SIPE_UNUSED_PARAMETER
const gchar
*topic
) {}
168 /** CONNECTION ***************************************************************/
170 void sipe_backend_connection_completed(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
) {}
171 void sipe_backend_connection_error(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
172 SIPE_UNUSED_PARAMETER sipe_connection_error error
,
173 SIPE_UNUSED_PARAMETER
const gchar
*msg
) {}
174 gboolean
sipe_backend_connection_is_disconnecting(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
) { return(FALSE
); }
175 gboolean
sipe_backend_connection_is_valid(SIPE_UNUSED_PARAMETER SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
) { return(TRUE
); }
177 /** FILE TRANSFER ************************************************************/
179 void sipe_backend_ft_error(SIPE_UNUSED_PARAMETER
struct sipe_file_transfer
*ft
,
180 SIPE_UNUSED_PARAMETER
const gchar
*errmsg
) {}
181 void sipe_backend_ft_deallocate(SIPE_UNUSED_PARAMETER
struct sipe_file_transfer
*ft
) {}
182 void sipe_backend_ft_cancel_local(SIPE_UNUSED_PARAMETER
struct sipe_file_transfer
*ft
) {}
183 void sipe_backend_ft_cancel_remote(SIPE_UNUSED_PARAMETER
struct sipe_file_transfer
*ft
) {}
184 void sipe_backend_ft_incoming(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
185 SIPE_UNUSED_PARAMETER
struct sipe_file_transfer
*ft
,
186 SIPE_UNUSED_PARAMETER
const gchar
*who
,
187 SIPE_UNUSED_PARAMETER
const gchar
*file_name
,
188 SIPE_UNUSED_PARAMETER gsize file_size
) {}
189 void sipe_backend_ft_start(SIPE_UNUSED_PARAMETER
struct sipe_file_transfer
*ft
,
190 SIPE_UNUSED_PARAMETER
struct sipe_backend_fd
*fd
,
191 SIPE_UNUSED_PARAMETER
const char* ip
,
192 SIPE_UNUSED_PARAMETER
unsigned port
) {}
193 gboolean
sipe_backend_ft_is_incoming(SIPE_UNUSED_PARAMETER
struct sipe_file_transfer
*ft
) { return(FALSE
); }
195 /** GROUP CHAT ***************************************************************/
197 void sipe_backend_groupchat_room_add(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
198 SIPE_UNUSED_PARAMETER
const gchar
*uri
,
199 SIPE_UNUSED_PARAMETER
const gchar
*name
,
200 SIPE_UNUSED_PARAMETER
const gchar
*description
,
201 SIPE_UNUSED_PARAMETER guint users
,
202 SIPE_UNUSED_PARAMETER guint32 flags
) {}
203 void sipe_backend_groupchat_room_terminate(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
) {}
205 /** IM ***********************************************************************/
207 void sipe_backend_im_message(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
208 SIPE_UNUSED_PARAMETER
const gchar
*from
,
209 SIPE_UNUSED_PARAMETER
const gchar
*html
) {}
210 void sipe_backend_im_topic(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
211 SIPE_UNUSED_PARAMETER
const gchar
*with
,
212 SIPE_UNUSED_PARAMETER
const gchar
*topic
) {}
214 /** MARKUP *******************************************************************/
216 gchar
*sipe_backend_markup_css_property(SIPE_UNUSED_PARAMETER SIPE_UNUSED_PARAMETER
const gchar
*style
,
217 SIPE_UNUSED_PARAMETER
const gchar
*option
) { return(g_strdup("")); }
218 gchar
*sipe_backend_markup_strip_html(SIPE_UNUSED_PARAMETER SIPE_UNUSED_PARAMETER
const gchar
*html
) { return(g_strdup("")); }
220 /** MEDIA ********************************************************************/
222 struct sipe_backend_media
*sipe_backend_media_new(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
223 SIPE_UNUSED_PARAMETER
struct sipe_media_call
*call
,
224 SIPE_UNUSED_PARAMETER
const gchar
*participant
,
225 SIPE_UNUSED_PARAMETER gboolean initiator
) { return(NULL
); }
226 void sipe_backend_media_free(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
) {}
227 void sipe_backend_media_set_cname(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
228 SIPE_UNUSED_PARAMETER gchar
*cname
) {}
229 struct sipe_backend_media_relays
* sipe_backend_media_relays_convert(SIPE_UNUSED_PARAMETER GSList
*media_relays
,
230 SIPE_UNUSED_PARAMETER gchar
*username
,
231 SIPE_UNUSED_PARAMETER gchar
*password
) { return(NULL
); }
232 void sipe_backend_media_relays_free(SIPE_UNUSED_PARAMETER
struct sipe_backend_media_relays
*media_relays
) {}
233 struct sipe_backend_stream
*sipe_backend_media_add_stream(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
234 SIPE_UNUSED_PARAMETER
const gchar
*id
,
235 SIPE_UNUSED_PARAMETER
const gchar
*participant
,
236 SIPE_UNUSED_PARAMETER SipeMediaType type
,
237 SIPE_UNUSED_PARAMETER SipeIceVersion ice_version
,
238 SIPE_UNUSED_PARAMETER gboolean initiator
,
239 SIPE_UNUSED_PARAMETER
struct sipe_backend_media_relays
*media_relays
) { return(NULL
); }
240 void sipe_backend_media_remove_stream(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
241 SIPE_UNUSED_PARAMETER
struct sipe_backend_stream
*stream
) {}
242 GSList
*sipe_backend_media_get_streams(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
) { return(NULL
); }
243 struct sipe_backend_stream
*sipe_backend_media_get_stream_by_id(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
244 SIPE_UNUSED_PARAMETER
const gchar
*id
) { return(NULL
); }
245 void sipe_backend_media_add_remote_candidates(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
246 SIPE_UNUSED_PARAMETER
struct sipe_backend_stream
*stream
,
247 SIPE_UNUSED_PARAMETER GList
*candidates
) {}
248 gboolean
sipe_backend_media_is_initiator(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
249 SIPE_UNUSED_PARAMETER
struct sipe_backend_stream
*stream
) { return(FALSE
); }
250 gboolean
sipe_backend_media_accepted(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
) { return(FALSE
); }
251 gboolean
sipe_backend_candidates_prepared(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
) { return(FALSE
); }
252 GList
*sipe_backend_media_get_active_local_candidates(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
253 SIPE_UNUSED_PARAMETER
struct sipe_backend_stream
*stream
) { return(NULL
); }
254 GList
*sipe_backend_media_get_active_remote_candidates(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
255 SIPE_UNUSED_PARAMETER
struct sipe_backend_stream
*stream
) { return(NULL
); }
256 const gchar
*sipe_backend_stream_get_id(SIPE_UNUSED_PARAMETER
struct sipe_backend_stream
*stream
) { return(""); }
257 void sipe_backend_stream_hold(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
258 SIPE_UNUSED_PARAMETER
struct sipe_backend_stream
*stream
,
259 SIPE_UNUSED_PARAMETER gboolean local
) {}
260 void sipe_backend_stream_unhold(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
261 SIPE_UNUSED_PARAMETER
struct sipe_backend_stream
*stream
,
262 SIPE_UNUSED_PARAMETER gboolean local
) {}
263 gboolean
sipe_backend_stream_is_held(SIPE_UNUSED_PARAMETER
struct sipe_backend_stream
*stream
) { return(FALSE
); }
264 struct sipe_backend_codec
*sipe_backend_codec_new(SIPE_UNUSED_PARAMETER
int id
,
265 SIPE_UNUSED_PARAMETER
const char *name
,
266 SIPE_UNUSED_PARAMETER SipeMediaType type
,
267 SIPE_UNUSED_PARAMETER guint clock_rate
) { return(NULL
); }
268 void sipe_backend_codec_free(SIPE_UNUSED_PARAMETER
struct sipe_backend_codec
*codec
) {}
269 int sipe_backend_codec_get_id(SIPE_UNUSED_PARAMETER
struct sipe_backend_codec
*codec
) { return(0); }
270 gchar
*sipe_backend_codec_get_name(SIPE_UNUSED_PARAMETER
struct sipe_backend_codec
*codec
) { return(g_strdup("")); }
271 guint
sipe_backend_codec_get_clock_rate(SIPE_UNUSED_PARAMETER
struct sipe_backend_codec
*codec
) { return(0); }
272 void sipe_backend_codec_add_optional_parameter(SIPE_UNUSED_PARAMETER
struct sipe_backend_codec
*codec
,
273 SIPE_UNUSED_PARAMETER
const gchar
*name
,
274 SIPE_UNUSED_PARAMETER
const gchar
*value
) {}
275 GList
*sipe_backend_codec_get_optional_parameters(SIPE_UNUSED_PARAMETER
struct sipe_backend_codec
*codec
) { return(NULL
); }
276 gboolean
sipe_backend_set_remote_codecs(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
277 SIPE_UNUSED_PARAMETER
struct sipe_backend_stream
*stream
,
278 SIPE_UNUSED_PARAMETER GList
*codecs
) { return(FALSE
); }
279 GList
* sipe_backend_get_local_codecs(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
280 SIPE_UNUSED_PARAMETER
struct sipe_backend_stream
*stream
) { return(NULL
); }
281 struct sipe_backend_candidate
* sipe_backend_candidate_new(SIPE_UNUSED_PARAMETER
const gchar
*foundation
,
282 SIPE_UNUSED_PARAMETER SipeComponentType component
,
283 SIPE_UNUSED_PARAMETER SipeCandidateType type
,
284 SIPE_UNUSED_PARAMETER SipeNetworkProtocol proto
,
285 SIPE_UNUSED_PARAMETER
const gchar
*ip
,
286 SIPE_UNUSED_PARAMETER guint port
,
287 SIPE_UNUSED_PARAMETER
const gchar
*username
,
288 SIPE_UNUSED_PARAMETER
const gchar
*password
) { return(NULL
); }
289 void sipe_backend_candidate_free(SIPE_UNUSED_PARAMETER
struct sipe_backend_candidate
*candidate
) {}
290 gchar
*sipe_backend_candidate_get_username(SIPE_UNUSED_PARAMETER
struct sipe_backend_candidate
*candidate
) { return(g_strdup("")); }
291 gchar
*sipe_backend_candidate_get_password(SIPE_UNUSED_PARAMETER
struct sipe_backend_candidate
*candidate
) { return(g_strdup("")); }
292 gchar
*sipe_backend_candidate_get_foundation(SIPE_UNUSED_PARAMETER
struct sipe_backend_candidate
*candidate
) { return(g_strdup("")); }
293 gchar
*sipe_backend_candidate_get_ip(SIPE_UNUSED_PARAMETER
struct sipe_backend_candidate
*candidate
) { return(g_strdup("127.0.0.1")); }
294 guint
sipe_backend_candidate_get_port(SIPE_UNUSED_PARAMETER
struct sipe_backend_candidate
*candidate
) { return(0); }
295 gchar
*sipe_backend_candidate_get_base_ip(SIPE_UNUSED_PARAMETER
struct sipe_backend_candidate
*candidate
) { return(g_strdup("127.0.0.1")); }
296 guint
sipe_backend_candidate_get_base_port(SIPE_UNUSED_PARAMETER
struct sipe_backend_candidate
*candidate
) { return(0); }
297 guint32
sipe_backend_candidate_get_priority(SIPE_UNUSED_PARAMETER
struct sipe_backend_candidate
*candidate
) { return(0); }
298 void sipe_backend_candidate_set_priority(SIPE_UNUSED_PARAMETER
struct sipe_backend_candidate
*candidate
,
299 SIPE_UNUSED_PARAMETER guint32 priority
) {}
300 SipeComponentType
sipe_backend_candidate_get_component_type(SIPE_UNUSED_PARAMETER
struct sipe_backend_candidate
*candidate
) { return(SIPE_COMPONENT_NONE
); }
301 SipeCandidateType
sipe_backend_candidate_get_type(SIPE_UNUSED_PARAMETER
struct sipe_backend_candidate
*candidate
) { return(SIPE_CANDIDATE_TYPE_ANY
); }
302 SipeNetworkProtocol
sipe_backend_candidate_get_protocol(SIPE_UNUSED_PARAMETER
struct sipe_backend_candidate
*candidate
) { return(SIPE_NETWORK_PROTOCOL_TCP_ACTIVE
); }
303 GList
* sipe_backend_get_local_candidates(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
304 SIPE_UNUSED_PARAMETER
struct sipe_backend_stream
*stream
) { return(NULL
); }
305 void sipe_backend_media_accept(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
306 SIPE_UNUSED_PARAMETER gboolean local
) {}
307 void sipe_backend_media_hangup(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
308 SIPE_UNUSED_PARAMETER gboolean local
) {}
309 void sipe_backend_media_reject(SIPE_UNUSED_PARAMETER
struct sipe_backend_media
*media
,
310 SIPE_UNUSED_PARAMETER gboolean local
) {}
313 /** NETWORK ******************************************************************/
315 const gchar
*sipe_backend_network_ip_address(SIPE_UNUSED_PARAMETER
void) { return("127.0.0.1"); }
316 struct sipe_backend_listendata
*sipe_backend_network_listen_range(SIPE_UNUSED_PARAMETER
unsigned short port_min
,
317 SIPE_UNUSED_PARAMETER
unsigned short port_max
,
318 SIPE_UNUSED_PARAMETER sipe_listen_start_cb listen_cb
,
319 SIPE_UNUSED_PARAMETER sipe_client_connected_cb connect_cb
,
320 SIPE_UNUSED_PARAMETER gpointer data
) { return(NULL
); }
321 void sipe_backend_network_listen_cancel(SIPE_UNUSED_PARAMETER
struct sipe_backend_listendata
*ldata
) {}
323 gboolean
sipe_backend_fd_is_valid(SIPE_UNUSED_PARAMETER
struct sipe_backend_fd
*fd
) { return(FALSE
); }
324 void sipe_backend_fd_free(SIPE_UNUSED_PARAMETER
struct sipe_backend_fd
*fd
) {}
326 /** NOTIFICATIONS *************************************************************/
328 void sipe_backend_notify_message_error(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
329 SIPE_UNUSED_PARAMETER
struct sipe_backend_chat_session
*backend_session
,
330 SIPE_UNUSED_PARAMETER
const gchar
*who
,
331 SIPE_UNUSED_PARAMETER
const gchar
*message
) {}
332 void sipe_backend_notify_message_info(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
333 SIPE_UNUSED_PARAMETER
struct sipe_backend_chat_session
*backend_session
,
334 SIPE_UNUSED_PARAMETER
const gchar
*who
,
335 SIPE_UNUSED_PARAMETER
const gchar
*message
) {}
336 void sipe_backend_notify_error(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
337 SIPE_UNUSED_PARAMETER
const gchar
*title
,
338 SIPE_UNUSED_PARAMETER
const gchar
*msg
) {}
340 /** SCHEDULE *****************************************************************/
342 gpointer
sipe_backend_schedule_seconds(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
343 SIPE_UNUSED_PARAMETER guint timeout
,
344 SIPE_UNUSED_PARAMETER gpointer data
) { return(NULL
); }
345 gpointer
sipe_backend_schedule_mseconds(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
346 SIPE_UNUSED_PARAMETER guint timeout
,
347 SIPE_UNUSED_PARAMETER gpointer data
) { return(NULL
); }
348 void sipe_backend_schedule_cancel(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
349 SIPE_UNUSED_PARAMETER gpointer data
) {}
351 /** SEARCH *******************************************************************/
353 struct sipe_backend_search_results
*sipe_backend_search_results_start(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
) { return(NULL
); }
354 void sipe_backend_search_results_add(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
355 SIPE_UNUSED_PARAMETER
struct sipe_backend_search_results
*results
,
356 SIPE_UNUSED_PARAMETER
const gchar
*uri
,
357 SIPE_UNUSED_PARAMETER
const gchar
*name
,
358 SIPE_UNUSED_PARAMETER
const gchar
*company
,
359 SIPE_UNUSED_PARAMETER
const gchar
*country
,
360 SIPE_UNUSED_PARAMETER
const gchar
*email
) {}
361 void sipe_backend_search_results_finalize(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
362 SIPE_UNUSED_PARAMETER
struct sipe_backend_search_results
*results
,
363 SIPE_UNUSED_PARAMETER
const gchar
*description
,
364 SIPE_UNUSED_PARAMETER gboolean more
) {}
366 /** SETTINGS *****************************************************************/
368 const gchar
*sipe_backend_setting(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
369 SIPE_UNUSED_PARAMETER sipe_setting type
) { return(NULL
); }
371 /** STATUS *******************************************************************/
373 guint
sipe_backend_status(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
) { return(SIPE_ACTIVITY_AVAILABLE
); }
374 gboolean
sipe_backend_status_changed(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
375 SIPE_UNUSED_PARAMETER guint activity
,
376 SIPE_UNUSED_PARAMETER
const gchar
*message
) { return(FALSE
); }
377 void sipe_backend_status_and_note(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
378 SIPE_UNUSED_PARAMETER guint activity
,
379 SIPE_UNUSED_PARAMETER
const gchar
*message
) {}
381 /** TRANSPORT ****************************************************************/
383 struct sipe_transport_connection
*sipe_backend_transport_connect(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
384 SIPE_UNUSED_PARAMETER
const sipe_connect_setup
*setup
) { return(NULL
); }
385 void sipe_backend_transport_disconnect(SIPE_UNUSED_PARAMETER
struct sipe_transport_connection
*conn
) {}
386 void sipe_backend_transport_message(SIPE_UNUSED_PARAMETER
struct sipe_transport_connection
*conn
,
387 SIPE_UNUSED_PARAMETER
const gchar
*buffer
) {}
388 void sipe_backend_transport_flush(SIPE_UNUSED_PARAMETER
struct sipe_transport_connection
*conn
) {}
390 /** USER *********************************************************************/
392 void sipe_backend_user_feedback_typing(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
393 SIPE_UNUSED_PARAMETER
const gchar
*from
) {}
394 void sipe_backend_user_feedback_typing_stop(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
395 SIPE_UNUSED_PARAMETER
const gchar
*from
) {}
396 void sipe_backend_user_ask(SIPE_UNUSED_PARAMETER
struct sipe_core_public
*sipe_public
,
397 SIPE_UNUSED_PARAMETER
const gchar
*message
,
398 SIPE_UNUSED_PARAMETER
const gchar
*accept_label
,
399 SIPE_UNUSED_PARAMETER
const gchar
*decline_label
,
400 SIPE_UNUSED_PARAMETER gpointer key
) {}
401 void sipe_backend_user_close_ask(SIPE_UNUSED_PARAMETER SIPE_UNUSED_PARAMETER gpointer key
) {}