telepathy: implement own status handling
[siplcs.git] / src / telepathy / telepathy-stubs.c
blob82c176623e255455010c3e1471dc6a5a6ebdcc4f
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 /** FILE TRANSFER ************************************************************/
170 void sipe_backend_ft_error(SIPE_UNUSED_PARAMETER struct sipe_file_transfer *ft,
171 SIPE_UNUSED_PARAMETER const gchar *errmsg) {}
172 void sipe_backend_ft_deallocate(SIPE_UNUSED_PARAMETER struct sipe_file_transfer *ft) {}
173 void sipe_backend_ft_cancel_local(SIPE_UNUSED_PARAMETER struct sipe_file_transfer *ft) {}
174 void sipe_backend_ft_cancel_remote(SIPE_UNUSED_PARAMETER struct sipe_file_transfer *ft) {}
175 void sipe_backend_ft_incoming(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
176 SIPE_UNUSED_PARAMETER struct sipe_file_transfer *ft,
177 SIPE_UNUSED_PARAMETER const gchar *who,
178 SIPE_UNUSED_PARAMETER const gchar *file_name,
179 SIPE_UNUSED_PARAMETER gsize file_size) {}
180 void sipe_backend_ft_start(SIPE_UNUSED_PARAMETER struct sipe_file_transfer *ft,
181 SIPE_UNUSED_PARAMETER struct sipe_backend_fd *fd,
182 SIPE_UNUSED_PARAMETER const char* ip,
183 SIPE_UNUSED_PARAMETER unsigned port) {}
184 gboolean sipe_backend_ft_is_incoming(SIPE_UNUSED_PARAMETER struct sipe_file_transfer *ft) { return(FALSE); }
186 /** GROUP CHAT ***************************************************************/
188 void sipe_backend_groupchat_room_add(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
189 SIPE_UNUSED_PARAMETER const gchar *uri,
190 SIPE_UNUSED_PARAMETER const gchar *name,
191 SIPE_UNUSED_PARAMETER const gchar *description,
192 SIPE_UNUSED_PARAMETER guint users,
193 SIPE_UNUSED_PARAMETER guint32 flags) {}
194 void sipe_backend_groupchat_room_terminate(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public) {}
196 /** IM ***********************************************************************/
198 void sipe_backend_im_message(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
199 SIPE_UNUSED_PARAMETER const gchar *from,
200 SIPE_UNUSED_PARAMETER const gchar *html) {}
201 void sipe_backend_im_topic(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
202 SIPE_UNUSED_PARAMETER const gchar *with,
203 SIPE_UNUSED_PARAMETER const gchar *topic) {}
205 /** MARKUP *******************************************************************/
207 gchar *sipe_backend_markup_css_property(SIPE_UNUSED_PARAMETER SIPE_UNUSED_PARAMETER const gchar *style,
208 SIPE_UNUSED_PARAMETER const gchar *option) { return(g_strdup("")); }
209 gchar *sipe_backend_markup_strip_html(SIPE_UNUSED_PARAMETER SIPE_UNUSED_PARAMETER const gchar *html) { return(g_strdup("")); }
211 /** MEDIA ********************************************************************/
212 #ifdef HAVE_VV
213 struct sipe_backend_media *sipe_backend_media_new(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
214 SIPE_UNUSED_PARAMETER struct sipe_media_call *call,
215 SIPE_UNUSED_PARAMETER const gchar *participant,
216 SIPE_UNUSED_PARAMETER gboolean initiator) { return(NULL); }
217 void sipe_backend_media_free(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media) {}
218 void sipe_backend_media_set_cname(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
219 SIPE_UNUSED_PARAMETER gchar *cname) {}
220 struct sipe_backend_media_relays * sipe_backend_media_relays_convert(SIPE_UNUSED_PARAMETER GSList *media_relays,
221 SIPE_UNUSED_PARAMETER gchar *username,
222 SIPE_UNUSED_PARAMETER gchar *password) { return(NULL); }
223 void sipe_backend_media_relays_free(SIPE_UNUSED_PARAMETER struct sipe_backend_media_relays *media_relays) {}
224 struct sipe_backend_stream *sipe_backend_media_add_stream(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
225 SIPE_UNUSED_PARAMETER const gchar *id,
226 SIPE_UNUSED_PARAMETER const gchar *participant,
227 SIPE_UNUSED_PARAMETER SipeMediaType type,
228 SIPE_UNUSED_PARAMETER SipeIceVersion ice_version,
229 SIPE_UNUSED_PARAMETER gboolean initiator,
230 SIPE_UNUSED_PARAMETER struct sipe_backend_media_relays *media_relays) { return(NULL); }
231 void sipe_backend_media_remove_stream(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
232 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) {}
233 GSList *sipe_backend_media_get_streams(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media) { return(NULL); }
234 struct sipe_backend_stream *sipe_backend_media_get_stream_by_id(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
235 SIPE_UNUSED_PARAMETER const gchar *id) { return(NULL); }
236 void sipe_backend_media_add_remote_candidates(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
237 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream,
238 SIPE_UNUSED_PARAMETER GList *candidates) {}
239 gboolean sipe_backend_media_is_initiator(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
240 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) { return(FALSE); }
241 gboolean sipe_backend_media_accepted(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media) { return(FALSE); }
242 gboolean sipe_backend_candidates_prepared(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media) { return(FALSE); }
243 GList *sipe_backend_media_get_active_local_candidates(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
244 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) { return(NULL); }
245 GList *sipe_backend_media_get_active_remote_candidates(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
246 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) { return(NULL); }
247 const gchar *sipe_backend_stream_get_id(SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) { return(""); }
248 void sipe_backend_stream_hold(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
249 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream,
250 SIPE_UNUSED_PARAMETER gboolean local) {}
251 void sipe_backend_stream_unhold(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
252 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream,
253 SIPE_UNUSED_PARAMETER gboolean local) {}
254 gboolean sipe_backend_stream_is_held(SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) { return(FALSE); }
255 struct sipe_backend_codec *sipe_backend_codec_new(SIPE_UNUSED_PARAMETER int id,
256 SIPE_UNUSED_PARAMETER const char *name,
257 SIPE_UNUSED_PARAMETER SipeMediaType type,
258 SIPE_UNUSED_PARAMETER guint clock_rate) { return(NULL); }
259 void sipe_backend_codec_free(SIPE_UNUSED_PARAMETER struct sipe_backend_codec *codec) {}
260 int sipe_backend_codec_get_id(SIPE_UNUSED_PARAMETER struct sipe_backend_codec *codec) { return(0); }
261 gchar *sipe_backend_codec_get_name(SIPE_UNUSED_PARAMETER struct sipe_backend_codec *codec) { return(g_strdup("")); }
262 guint sipe_backend_codec_get_clock_rate(SIPE_UNUSED_PARAMETER struct sipe_backend_codec *codec) { return(0); }
263 void sipe_backend_codec_add_optional_parameter(SIPE_UNUSED_PARAMETER struct sipe_backend_codec *codec,
264 SIPE_UNUSED_PARAMETER const gchar *name,
265 SIPE_UNUSED_PARAMETER const gchar *value) {}
266 GList *sipe_backend_codec_get_optional_parameters(SIPE_UNUSED_PARAMETER struct sipe_backend_codec *codec) { return(NULL); }
267 gboolean sipe_backend_set_remote_codecs(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
268 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream,
269 SIPE_UNUSED_PARAMETER GList *codecs) { return(FALSE); }
270 GList* sipe_backend_get_local_codecs(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
271 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) { return(NULL); }
272 struct sipe_backend_candidate * sipe_backend_candidate_new(SIPE_UNUSED_PARAMETER const gchar *foundation,
273 SIPE_UNUSED_PARAMETER SipeComponentType component,
274 SIPE_UNUSED_PARAMETER SipeCandidateType type,
275 SIPE_UNUSED_PARAMETER SipeNetworkProtocol proto,
276 SIPE_UNUSED_PARAMETER const gchar *ip,
277 SIPE_UNUSED_PARAMETER guint port,
278 SIPE_UNUSED_PARAMETER const gchar *username,
279 SIPE_UNUSED_PARAMETER const gchar *password) { return(NULL); }
280 void sipe_backend_candidate_free(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) {}
281 gchar *sipe_backend_candidate_get_username(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(g_strdup("")); }
282 gchar *sipe_backend_candidate_get_password(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(g_strdup("")); }
283 gchar *sipe_backend_candidate_get_foundation(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(g_strdup("")); }
284 gchar *sipe_backend_candidate_get_ip(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(g_strdup("127.0.0.1")); }
285 guint sipe_backend_candidate_get_port(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(0); }
286 gchar *sipe_backend_candidate_get_base_ip(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(g_strdup("127.0.0.1")); }
287 guint sipe_backend_candidate_get_base_port(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(0); }
288 guint32 sipe_backend_candidate_get_priority(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(0); }
289 void sipe_backend_candidate_set_priority(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate,
290 SIPE_UNUSED_PARAMETER guint32 priority) {}
291 SipeComponentType sipe_backend_candidate_get_component_type(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(SIPE_COMPONENT_NONE); }
292 SipeCandidateType sipe_backend_candidate_get_type(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(SIPE_CANDIDATE_TYPE_ANY); }
293 SipeNetworkProtocol sipe_backend_candidate_get_protocol(SIPE_UNUSED_PARAMETER struct sipe_backend_candidate *candidate) { return(SIPE_NETWORK_PROTOCOL_TCP_ACTIVE); }
294 GList* sipe_backend_get_local_candidates(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
295 SIPE_UNUSED_PARAMETER struct sipe_backend_stream *stream) { return(NULL); }
296 void sipe_backend_media_accept(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
297 SIPE_UNUSED_PARAMETER gboolean local) {}
298 void sipe_backend_media_hangup(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
299 SIPE_UNUSED_PARAMETER gboolean local) {}
300 void sipe_backend_media_reject(SIPE_UNUSED_PARAMETER struct sipe_backend_media *media,
301 SIPE_UNUSED_PARAMETER gboolean local) {}
302 #endif
304 /** NETWORK ******************************************************************/
306 struct sipe_backend_listendata *sipe_backend_network_listen_range(SIPE_UNUSED_PARAMETER unsigned short port_min,
307 SIPE_UNUSED_PARAMETER unsigned short port_max,
308 SIPE_UNUSED_PARAMETER sipe_listen_start_cb listen_cb,
309 SIPE_UNUSED_PARAMETER sipe_client_connected_cb connect_cb,
310 SIPE_UNUSED_PARAMETER gpointer data) { return(NULL); }
311 void sipe_backend_network_listen_cancel(SIPE_UNUSED_PARAMETER struct sipe_backend_listendata *ldata) {}
313 gboolean sipe_backend_fd_is_valid(SIPE_UNUSED_PARAMETER struct sipe_backend_fd *fd) { return(FALSE); }
314 void sipe_backend_fd_free(SIPE_UNUSED_PARAMETER struct sipe_backend_fd *fd) {}
316 /** NOTIFICATIONS *************************************************************/
318 void sipe_backend_notify_message_error(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
319 SIPE_UNUSED_PARAMETER struct sipe_backend_chat_session *backend_session,
320 SIPE_UNUSED_PARAMETER const gchar *who,
321 SIPE_UNUSED_PARAMETER const gchar *message) {}
322 void sipe_backend_notify_message_info(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
323 SIPE_UNUSED_PARAMETER struct sipe_backend_chat_session *backend_session,
324 SIPE_UNUSED_PARAMETER const gchar *who,
325 SIPE_UNUSED_PARAMETER const gchar *message) {}
326 void sipe_backend_notify_error(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
327 SIPE_UNUSED_PARAMETER const gchar *title,
328 SIPE_UNUSED_PARAMETER const gchar *msg) {}
330 /** SEARCH *******************************************************************/
332 struct sipe_backend_search_results *sipe_backend_search_results_start(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public) { return(NULL); }
333 void sipe_backend_search_results_add(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
334 SIPE_UNUSED_PARAMETER struct sipe_backend_search_results *results,
335 SIPE_UNUSED_PARAMETER const gchar *uri,
336 SIPE_UNUSED_PARAMETER const gchar *name,
337 SIPE_UNUSED_PARAMETER const gchar *company,
338 SIPE_UNUSED_PARAMETER const gchar *country,
339 SIPE_UNUSED_PARAMETER const gchar *email) {}
340 void sipe_backend_search_results_finalize(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
341 SIPE_UNUSED_PARAMETER struct sipe_backend_search_results *results,
342 SIPE_UNUSED_PARAMETER const gchar *description,
343 SIPE_UNUSED_PARAMETER gboolean more) {}
345 /** USER *********************************************************************/
347 void sipe_backend_user_feedback_typing(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
348 SIPE_UNUSED_PARAMETER const gchar *from) {}
349 void sipe_backend_user_feedback_typing_stop(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
350 SIPE_UNUSED_PARAMETER const gchar *from) {}
351 void sipe_backend_user_ask(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public,
352 SIPE_UNUSED_PARAMETER const gchar *message,
353 SIPE_UNUSED_PARAMETER const gchar *accept_label,
354 SIPE_UNUSED_PARAMETER const gchar *decline_label,
355 SIPE_UNUSED_PARAMETER gpointer key) {}
356 void sipe_backend_user_close_ask(SIPE_UNUSED_PARAMETER gpointer key) {}
359 Local Variables:
360 mode: c
361 c-file-style: "bsd"
362 indent-tabs-mode: t
363 tab-width: 8
364 End: