telepathy: add stubs for media backend functions
[siplcs.git] / src / telepathy / telepathy-stubs.c
blob4022972c23a944aa74195b491cb51eeffe4d59cf
1 /**
2 * @file telepathy-stubs.c
4 * pidgin-sipe
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
32 #ifdef HAVE_CONFIG_H
33 #include "config.h"
34 #endif
36 #include <glib.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 /** DNS QUERY ****************************************************************/
179 struct sipe_dns_query *sipe_backend_dns_query_srv(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
180 SIPE_UNUSED_PARAMETER const gchar *protocol,
181 SIPE_UNUSED_PARAMETER const gchar *transport,
182 SIPE_UNUSED_PARAMETER const gchar *domain,
183 SIPE_UNUSED_PARAMETER sipe_dns_resolved_cb callback,
184 SIPE_UNUSED_PARAMETER gpointer data) { return(NULL); }
185 struct sipe_dns_query *sipe_backend_dns_query_a(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
186 SIPE_UNUSED_PARAMETER const gchar *hostname,
187 SIPE_UNUSED_PARAMETER int port,
188 SIPE_UNUSED_PARAMETER sipe_dns_resolved_cb callback,
189 SIPE_UNUSED_PARAMETER gpointer data) { return(NULL); }
190 void sipe_backend_dns_query_cancel(SIPE_UNUSED_PARAMETER struct sipe_dns_query *query) {}
192 /** FILE TRANSFER ************************************************************/
194 void sipe_backend_ft_error(SIPE_UNUSED_PARAMETER struct sipe_file_transfer *ft,
195 SIPE_UNUSED_PARAMETER const gchar *errmsg) {}
196 void sipe_backend_ft_deallocate(SIPE_UNUSED_PARAMETER struct sipe_file_transfer *ft) {}
197 void sipe_backend_ft_cancel_local(SIPE_UNUSED_PARAMETER struct sipe_file_transfer *ft) {}
198 void sipe_backend_ft_cancel_remote(SIPE_UNUSED_PARAMETER struct sipe_file_transfer *ft) {}
199 void sipe_backend_ft_incoming(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
200 SIPE_UNUSED_PARAMETER struct sipe_file_transfer *ft,
201 SIPE_UNUSED_PARAMETER const gchar *who,
202 SIPE_UNUSED_PARAMETER const gchar *file_name,
203 SIPE_UNUSED_PARAMETER gsize file_size) {}
204 void sipe_backend_ft_start(SIPE_UNUSED_PARAMETER struct sipe_file_transfer *ft,
205 SIPE_UNUSED_PARAMETER struct sipe_backend_fd *fd,
206 SIPE_UNUSED_PARAMETER const char* ip,
207 SIPE_UNUSED_PARAMETER unsigned port) {}
208 gboolean sipe_backend_ft_is_incoming(SIPE_UNUSED_PARAMETER struct sipe_file_transfer *ft) { return(FALSE); }
210 /** GROUP CHAT ***************************************************************/
212 void sipe_backend_groupchat_room_add(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
213 SIPE_UNUSED_PARAMETER const gchar *uri,
214 SIPE_UNUSED_PARAMETER const gchar *name,
215 SIPE_UNUSED_PARAMETER const gchar *description,
216 SIPE_UNUSED_PARAMETER guint users,
217 SIPE_UNUSED_PARAMETER guint32 flags) {}
218 void sipe_backend_groupchat_room_terminate(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public) {}
220 /** IM ***********************************************************************/
222 void sipe_backend_im_message(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
223 SIPE_UNUSED_PARAMETER const gchar *from,
224 SIPE_UNUSED_PARAMETER const gchar *html) {}
225 void sipe_backend_im_topic(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
226 SIPE_UNUSED_PARAMETER const gchar *with,
227 SIPE_UNUSED_PARAMETER const gchar *topic) {}
229 /** MARKUP *******************************************************************/
231 gchar *sipe_backend_markup_css_property(SIPE_UNUSED_PARAMETER SIPE_UNUSED_PARAMETER const gchar *style,
232 SIPE_UNUSED_PARAMETER const gchar *option) { return(g_strdup("")); }
233 gchar *sipe_backend_markup_strip_html(SIPE_UNUSED_PARAMETER SIPE_UNUSED_PARAMETER const gchar *html) { return(g_strdup("")); }
235 /** MEDIA ********************************************************************/
236 #ifdef HAVE_VV
237 struct sipe_backend_media *sipe_backend_media_new(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
238 SIPE_UNUSED_PARAMETER struct sipe_media_call *call,
239 SIPE_UNUSED_PARAMETER const gchar *participant,
240 SIPE_UNUSED_PARAMETER gboolean initiator) { return(NULL); }
241 void sipe_backend_media_free(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media) {}
242 void sipe_backend_media_set_cname(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
243 SIPE_UNUSED_PARAMETER gchar *cname) {}
244 struct sipe_backend_media_relays * sipe_backend_media_relays_convert(SIPE_UNUSED_PARAMETER GSList *media_relays,
245 SIPE_UNUSED_PARAMETER gchar *username,
246 SIPE_UNUSED_PARAMETER gchar *password) { return(NULL); }
247 void sipe_backend_media_relays_free(SIPE_UNUSED_PARAMETER struct sipe_backend_media_relays *media_relays) {}
248 struct sipe_backend_stream *sipe_backend_media_add_stream(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
249 SIPE_UNUSED_PARAMETER const gchar *id,
250 SIPE_UNUSED_PARAMETER const gchar *participant,
251 SIPE_UNUSED_PARAMETER SipeMediaType type,
252 SIPE_UNUSED_PARAMETER SipeIceVersion ice_version,
253 SIPE_UNUSED_PARAMETER gboolean initiator,
254 SIPE_UNUSED_PARAMETER struct sipe_backend_media_relays *media_relays) { return(NULL); }
255 void sipe_backend_media_remove_stream(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
256 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) {}
257 GSList *sipe_backend_media_get_streams(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media) { return(NULL); }
258 struct sipe_backend_stream *sipe_backend_media_get_stream_by_id(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
259 SIPE_UNUSED_PARAMETER const gchar *id) { return(NULL); }
260 void sipe_backend_media_add_remote_candidates(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
261 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream,
262 SIPE_UNUSED_PARAMETER GList *candidates) {}
263 gboolean sipe_backend_media_is_initiator(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
264 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) { return(FALSE); }
265 gboolean sipe_backend_media_accepted(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media) { return(FALSE); }
266 gboolean sipe_backend_candidates_prepared(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media) { return(FALSE); }
267 GList *sipe_backend_media_get_active_local_candidates(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
268 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) { return(NULL); }
269 GList *sipe_backend_media_get_active_remote_candidates(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
270 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) { return(NULL); }
271 const gchar *sipe_backend_stream_get_id(SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) { return(""); }
272 void sipe_backend_stream_hold(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
273 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream,
274 SIPE_UNUSED_PARAMETER gboolean local) {}
275 void sipe_backend_stream_unhold(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
276 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream,
277 SIPE_UNUSED_PARAMETER gboolean local) {}
278 gboolean sipe_backend_stream_is_held(SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) { return(FALSE); }
279 struct sipe_backend_codec *sipe_backend_codec_new(SIPE_UNUSED_PARAMETER int id,
280 SIPE_UNUSED_PARAMETER const char *name,
281 SIPE_UNUSED_PARAMETER SipeMediaType type,
282 SIPE_UNUSED_PARAMETER guint clock_rate) { return(NULL); }
283 void sipe_backend_codec_free(SIPE_UNUSED_PARAMETER struct sipe_backend_codec *codec) {}
284 int sipe_backend_codec_get_id(SIPE_UNUSED_PARAMETER struct sipe_backend_codec *codec) { return(0); }
285 gchar *sipe_backend_codec_get_name(SIPE_UNUSED_PARAMETER struct sipe_backend_codec *codec) { return(g_strdup("")); }
286 guint sipe_backend_codec_get_clock_rate(SIPE_UNUSED_PARAMETER struct sipe_backend_codec *codec) { return(0); }
287 void sipe_backend_codec_add_optional_parameter(SIPE_UNUSED_PARAMETER struct sipe_backend_codec *codec,
288 SIPE_UNUSED_PARAMETER const gchar *name,
289 SIPE_UNUSED_PARAMETER const gchar *value) {}
290 GList *sipe_backend_codec_get_optional_parameters(SIPE_UNUSED_PARAMETER struct sipe_backend_codec *codec) { return(NULL); }
291 gboolean sipe_backend_set_remote_codecs(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
292 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream,
293 SIPE_UNUSED_PARAMETER GList *codecs) { return(FALSE); }
294 GList* sipe_backend_get_local_codecs(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
295 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) { return(NULL); }
296 struct sipe_backend_candidate * sipe_backend_candidate_new(SIPE_UNUSED_PARAMETER const gchar *foundation,
297 SIPE_UNUSED_PARAMETER SipeComponentType component,
298 SIPE_UNUSED_PARAMETER SipeCandidateType type,
299 SIPE_UNUSED_PARAMETER SipeNetworkProtocol proto,
300 SIPE_UNUSED_PARAMETER const gchar *ip,
301 SIPE_UNUSED_PARAMETER guint port,
302 SIPE_UNUSED_PARAMETER const gchar *username,
303 SIPE_UNUSED_PARAMETER const gchar *password) { return(NULL); }
304 void sipe_backend_candidate_free(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) {}
305 gchar *sipe_backend_candidate_get_username(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(g_strdup("")); }
306 gchar *sipe_backend_candidate_get_password(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(g_strdup("")); }
307 gchar *sipe_backend_candidate_get_foundation(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(g_strdup("")); }
308 gchar *sipe_backend_candidate_get_ip(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(g_strdup("127.0.0.1")); }
309 guint sipe_backend_candidate_get_port(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(0); }
310 gchar *sipe_backend_candidate_get_base_ip(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(g_strdup("127.0.0.1")); }
311 guint sipe_backend_candidate_get_base_port(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(0); }
312 guint32 sipe_backend_candidate_get_priority(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(0); }
313 void sipe_backend_candidate_set_priority(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate,
314 SIPE_UNUSED_PARAMETER guint32 priority) {}
315 SipeComponentType sipe_backend_candidate_get_component_type(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(SIPE_COMPONENT_NONE); }
316 SipeCandidateType sipe_backend_candidate_get_type(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(SIPE_CANDIDATE_TYPE_ANY); }
317 SipeNetworkProtocol sipe_backend_candidate_get_protocol(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(SIPE_NETWORK_PROTOCOL_TCP_ACTIVE); }
318 GList* sipe_backend_get_local_candidates(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
319 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) { return(NULL); }
320 void sipe_backend_media_accept(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
321 SIPE_UNUSED_PARAMETER gboolean local) {}
322 void sipe_backend_media_hangup(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
323 SIPE_UNUSED_PARAMETER gboolean local) {}
324 void sipe_backend_media_reject(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
325 SIPE_UNUSED_PARAMETER gboolean local) {}
326 #endif
328 /** NETWORK ******************************************************************/
330 const gchar *sipe_backend_network_ip_address(SIPE_UNUSED_PARAMETER void) { return("127.0.0.1"); }
331 struct sipe_backend_listendata *sipe_backend_network_listen_range(SIPE_UNUSED_PARAMETER unsigned short port_min,
332 SIPE_UNUSED_PARAMETER unsigned short port_max,
333 SIPE_UNUSED_PARAMETER sipe_listen_start_cb listen_cb,
334 SIPE_UNUSED_PARAMETER sipe_client_connected_cb connect_cb,
335 SIPE_UNUSED_PARAMETER gpointer data) { return(NULL); }
336 void sipe_backend_network_listen_cancel(SIPE_UNUSED_PARAMETER struct sipe_backend_listendata *ldata) {}
338 gboolean sipe_backend_fd_is_valid(SIPE_UNUSED_PARAMETER struct sipe_backend_fd *fd) { return(FALSE); }
339 void sipe_backend_fd_free(SIPE_UNUSED_PARAMETER struct sipe_backend_fd *fd) {}
341 /** NOTIFICATIONS *************************************************************/
343 void sipe_backend_notify_message_error(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
344 SIPE_UNUSED_PARAMETER struct sipe_backend_chat_session *backend_session,
345 SIPE_UNUSED_PARAMETER const gchar *who,
346 SIPE_UNUSED_PARAMETER const gchar *message) {}
347 void sipe_backend_notify_message_info(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
348 SIPE_UNUSED_PARAMETER struct sipe_backend_chat_session *backend_session,
349 SIPE_UNUSED_PARAMETER const gchar *who,
350 SIPE_UNUSED_PARAMETER const gchar *message) {}
351 void sipe_backend_notify_error(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
352 SIPE_UNUSED_PARAMETER const gchar *title,
353 SIPE_UNUSED_PARAMETER const gchar *msg) {}
355 /** SCHEDULE *****************************************************************/
357 gpointer sipe_backend_schedule_seconds(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
358 SIPE_UNUSED_PARAMETER guint timeout,
359 SIPE_UNUSED_PARAMETER gpointer data) { return(NULL); }
360 gpointer sipe_backend_schedule_mseconds(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
361 SIPE_UNUSED_PARAMETER guint timeout,
362 SIPE_UNUSED_PARAMETER gpointer data) { return(NULL); }
363 void sipe_backend_schedule_cancel(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
364 SIPE_UNUSED_PARAMETER gpointer data) {}
366 /** SEARCH *******************************************************************/
368 struct sipe_backend_search_results *sipe_backend_search_results_start(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public) { return(NULL); }
369 void sipe_backend_search_results_add(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
370 SIPE_UNUSED_PARAMETER struct sipe_backend_search_results *results,
371 SIPE_UNUSED_PARAMETER const gchar *uri,
372 SIPE_UNUSED_PARAMETER const gchar *name,
373 SIPE_UNUSED_PARAMETER const gchar *company,
374 SIPE_UNUSED_PARAMETER const gchar *country,
375 SIPE_UNUSED_PARAMETER const gchar *email) {}
376 void sipe_backend_search_results_finalize(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
377 SIPE_UNUSED_PARAMETER struct sipe_backend_search_results *results,
378 SIPE_UNUSED_PARAMETER const gchar *description,
379 SIPE_UNUSED_PARAMETER gboolean more) {}
381 /** SETTINGS *****************************************************************/
383 const gchar *sipe_backend_setting(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
384 SIPE_UNUSED_PARAMETER sipe_setting type) { return(NULL); }
386 /** STATUS *******************************************************************/
388 guint sipe_backend_status(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public) { return(SIPE_ACTIVITY_AVAILABLE); }
389 gboolean sipe_backend_status_changed(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
390 SIPE_UNUSED_PARAMETER guint activity,
391 SIPE_UNUSED_PARAMETER const gchar *message) { return(FALSE); }
392 void sipe_backend_status_and_note(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
393 SIPE_UNUSED_PARAMETER guint activity,
394 SIPE_UNUSED_PARAMETER const gchar *message) {}
396 /** TRANSPORT ****************************************************************/
398 struct sipe_transport_connection *sipe_backend_transport_connect(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
399 SIPE_UNUSED_PARAMETER const sipe_connect_setup *setup) { return(NULL); }
400 void sipe_backend_transport_disconnect(SIPE_UNUSED_PARAMETER struct sipe_transport_connection *conn) {}
401 void sipe_backend_transport_message(SIPE_UNUSED_PARAMETER struct sipe_transport_connection *conn,
402 SIPE_UNUSED_PARAMETER const gchar *buffer) {}
403 void sipe_backend_transport_flush(SIPE_UNUSED_PARAMETER struct sipe_transport_connection *conn) {}
405 /** USER *********************************************************************/
407 void sipe_backend_user_feedback_typing(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
408 SIPE_UNUSED_PARAMETER const gchar *from) {}
409 void sipe_backend_user_feedback_typing_stop(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
410 SIPE_UNUSED_PARAMETER const gchar *from) {}
411 void sipe_backend_user_ask(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
412 SIPE_UNUSED_PARAMETER const gchar *message,
413 SIPE_UNUSED_PARAMETER const gchar *accept_label,
414 SIPE_UNUSED_PARAMETER const gchar *decline_label,
415 SIPE_UNUSED_PARAMETER gpointer key) {}
416 void sipe_backend_user_close_ask(SIPE_UNUSED_PARAMETER SIPE_UNUSED_PARAMETER gpointer key) {}
419 Local Variables:
420 mode: c
421 c-file-style: "bsd"
422 indent-tabs-mode: t
423 tab-width: 8
424 End: