Release 1.25.0 -- Buddy Idle Time, RTF
[siplcs.git] / src / miranda / miranda-media.c
blob80b866c93f294c8947613ab852fe69e0cf03f432
1 /**
2 * @file miranda-media.c
4 * pidgin-sipe
6 * Copyright (C) 2010-2016 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
23 #include <windows.h>
24 #include <stdio.h>
26 #include <glib.h>
28 #include "newpluginapi.h"
29 #include "m_protosvc.h"
30 #include "m_protoint.h"
32 #include "sipe-common.h"
33 #include "sipe-backend.h"
34 #include "sipe-core.h"
35 #include "miranda-private.h"
37 struct sipe_backend_media {
38 int dummy;
41 struct sipe_backend_media *
42 sipe_backend_media_new(struct sipe_core_public *sipe_public,
43 struct sipe_media_call *call,
44 const gchar *participant,
45 SipeMediaCallFlags flags)
47 struct sipe_backend_media *m = g_new0(struct sipe_backend_media,1);
49 return m;
52 void
53 sipe_backend_media_free(struct sipe_backend_media *media)
55 _NIF();
58 void
59 sipe_backend_media_set_cname(struct sipe_backend_media *media, gchar *cname)
61 _NIF();
64 struct sipe_backend_media_relays *
65 sipe_backend_media_relays_convert(GSList *media_relays, gchar *username, gchar *password)
67 _NIF();
68 return NULL;
71 void
72 sipe_backend_media_relays_free(struct sipe_backend_media_relays *media_relays)
74 _NIF();
77 struct sipe_backend_media_stream *
78 sipe_backend_media_add_stream(struct sipe_media_stream *stream,
79 SipeMediaType type,
80 SipeIceVersion ice_version,
81 gboolean initiator,
82 struct sipe_backend_media_relays *media_relays,
83 guint min_port, guint max_port)
85 _NIF();
86 return NULL;
89 void
90 sipe_backend_media_add_remote_candidates(struct sipe_media_call *media,
91 struct sipe_media_stream *stream,
92 GList *candidates)
94 _NIF();
97 gboolean sipe_backend_media_is_initiator(struct sipe_media_call *media,
98 struct sipe_media_stream *stream)
100 _NIF();
101 return FALSE;
104 gboolean sipe_backend_media_accepted(struct sipe_backend_media *media)
106 _NIF();
107 return FALSE;
110 gboolean
111 sipe_backend_stream_initialized(struct sipe_media_call *media,
112 struct sipe_media_stream *stream)
114 _NIF();
115 return FALSE;
118 GList *
119 sipe_backend_media_stream_get_active_local_candidates(struct sipe_media_stream *stream)
121 _NIF();
122 return NULL;
125 GList *
126 sipe_backend_media_stream_get_active_remote_candidates(struct sipe_media_stream *stream)
128 _NIF();
129 return NULL;
132 sipe_backend_media_set_encryption_keys(struct sipe_media_call *media,
133 struct sipe_media_stream *stream,
134 const guchar *encryption_key,
135 const guchar *decryption_key)
137 _NIF();
140 void
141 sipe_backend_media_set_require_encryption(struct sipe_media_call *media,
142 struct sipe_media_stream *stream,
143 const gboolean require_encryption)
145 _NIF();
148 void
149 sipe_backend_stream_hold(struct sipe_media_call *media,
150 struct sipe_media_stream *stream,
151 gboolean local)
153 _NIF();
156 void
157 sipe_backend_stream_unhold(struct sipe_media_call *media,
158 struct sipe_media_stream *stream,
159 gboolean local)
161 _NIF();
164 gboolean
165 sipe_backend_stream_is_held(struct sipe_media_stream *stream)
167 _NIF();
168 return FALSE;
171 void
172 sipe_backend_media_stream_end(struct sipe_media_call *media,
173 struct sipe_media_stream *stream)
175 _NIF();
178 void
179 sipe_backend_media_stream_free(struct sipe_backend_media_stream *stream)
181 _NIF();
184 struct sipe_backend_codec *
185 sipe_backend_codec_new(int id, const char *name, SipeMediaType type,
186 guint clock_rate, guint channels)
188 _NIF();
189 return NULL;
192 void
193 sipe_backend_codec_free(struct sipe_backend_codec *codec)
195 _NIF();
199 sipe_backend_codec_get_id(struct sipe_backend_codec *codec)
201 _NIF();
202 return 0;
205 gchar *
206 sipe_backend_codec_get_name(struct sipe_backend_codec *codec)
208 _NIF();
209 return NULL;
212 guint
213 sipe_backend_codec_get_clock_rate(struct sipe_backend_codec *codec)
215 _NIF();
216 return 0;
219 void
220 sipe_backend_codec_add_optional_parameter(struct sipe_backend_codec *codec,
221 const gchar *name, const gchar *value)
223 _NIF();
226 GList *
227 sipe_backend_codec_get_optional_parameters(struct sipe_backend_codec *codec)
229 _NIF();
230 return NULL;
233 gboolean
234 sipe_backend_set_remote_codecs(struct sipe_media_call *media,
235 struct sipe_media_stream *stream,
236 GList *codecs)
238 _NIF();
239 return FALSE;
242 GList*
243 sipe_backend_get_local_codecs(struct sipe_media_call *media,
244 struct sipe_media_stream *stream)
246 _NIF();
247 return NULL;
250 struct sipe_backend_candidate *
251 sipe_backend_candidate_new(const gchar *foundation,
252 SipeComponentType component,
253 SipeCandidateType type, SipeNetworkProtocol proto,
254 const gchar *ip, guint port,
255 const gchar *username,
256 const gchar *password)
258 _NIF();
259 return NULL;
262 void
263 sipe_backend_candidate_free(struct sipe_backend_candidate *candidate)
265 _NIF();
268 gchar *
269 sipe_backend_candidate_get_username(struct sipe_backend_candidate *candidate)
271 _NIF();
272 return NULL;
275 gchar *
276 sipe_backend_candidate_get_password(struct sipe_backend_candidate *candidate)
278 _NIF();
279 return NULL;
282 gchar *
283 sipe_backend_candidate_get_foundation(struct sipe_backend_candidate *candidate)
285 _NIF();
286 return NULL;
289 gchar *
290 sipe_backend_candidate_get_ip(struct sipe_backend_candidate *candidate)
292 _NIF();
293 return NULL;
296 guint
297 sipe_backend_candidate_get_port(struct sipe_backend_candidate *candidate)
299 _NIF();
300 return 0;
303 gchar *
304 sipe_backend_candidate_get_base_ip(struct sipe_backend_candidate *candidate)
306 _NIF();
307 return FALSE;
310 guint
311 sipe_backend_candidate_get_base_port(struct sipe_backend_candidate *candidate)
313 _NIF();
314 return 0;
317 guint32
318 sipe_backend_candidate_get_priority(struct sipe_backend_candidate *candidate)
320 _NIF();
321 return 0;
324 void
325 sipe_backend_candidate_set_priority(struct sipe_backend_candidate *candidate, guint32 priority)
327 _NIF();
330 SipeComponentType
331 sipe_backend_candidate_get_component_type(struct sipe_backend_candidate *candidate)
333 _NIF();
334 return SIPE_COMPONENT_NONE;
337 SipeCandidateType
338 sipe_backend_candidate_get_type(struct sipe_backend_candidate *candidate)
340 _NIF();
341 return SIPE_CANDIDATE_TYPE_ANY;
344 SipeNetworkProtocol
345 sipe_backend_candidate_get_protocol(struct sipe_backend_candidate *candidate)
347 _NIF();
348 return SIPE_NETWORK_PROTOCOL_TCP_ACTIVE;
351 GList *
352 sipe_backend_get_local_candidates(struct sipe_media_call *media,
353 struct sipe_media_stream *stream)
355 _NIF();
356 return FALSE;
359 void
360 sipe_backend_media_accept(struct sipe_backend_media *media, gboolean local)
362 _NIF();
365 void
366 sipe_backend_media_hangup(struct sipe_backend_media *media, gboolean local)
368 _NIF();
371 void
372 sipe_backend_media_reject(struct sipe_backend_media *media, gboolean local)
374 _NIF();
377 SipeEncryptionPolicy
378 sipe_backend_media_get_encryption_policy(struct sipe_core_public *sipe_public)
380 return SIPE_ENCRYPTION_POLICY_REJECTED;
383 gssize
384 sipe_backend_media_stream_read(struct sipe_media_stream *stream,
385 guint8 *buffer, gsize len)
387 _NIF();
390 gssize
391 sipe_backend_media_stream_write(struct sipe_media_stream *stream,
392 guint8 *buffer, gsize len)
394 _NIF();
398 Local Variables:
399 mode: c
400 c-file-style: "bsd"
401 indent-tabs-mode: t
402 tab-width: 8
403 End: