ucs: fix Persona key extraction
[siplcs.git] / src / miranda / miranda-media.c
blob6345c94fb4995ee46a3d36f693558bc3c56527b1
1 /**
2 * @file miranda-media.c
4 * pidgin-sipe
6 * Copyright (C) 2010-11 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_stream {
42 int dummy;
45 struct sipe_backend_media *
46 sipe_backend_media_new(struct sipe_core_public *sipe_public,
47 struct sipe_media_call *call,
48 const gchar *participant,
49 gboolean initiator)
51 struct sipe_backend_media *m = g_new0(struct sipe_backend_media,1);
53 return m;
56 void
57 sipe_backend_media_free(struct sipe_backend_media *media)
59 _NIF();
62 void
63 sipe_backend_media_set_cname(struct sipe_backend_media *media, gchar *cname)
65 _NIF();
68 struct sipe_backend_media_relays *
69 sipe_backend_media_relays_convert(GSList *media_relays, gchar *username, gchar *password)
71 _NIF();
72 return NULL;
75 void
76 sipe_backend_media_relays_free(struct sipe_backend_media_relays *media_relays)
78 _NIF();
81 struct sipe_backend_stream *
82 sipe_backend_media_add_stream(struct sipe_backend_media *media,
83 const gchar *id,
84 const gchar *participant,
85 SipeMediaType type,
86 SipeIceVersion ice_version,
87 gboolean initiator,
88 struct sipe_backend_media_relays *media_relays)
90 _NIF();
91 return NULL;
94 void
95 sipe_backend_media_remove_stream(struct sipe_backend_media *media,
96 struct sipe_backend_stream *stream)
98 _NIF();
101 GSList *sipe_backend_media_get_streams(struct sipe_backend_media *media)
103 _NIF();
104 return NULL;
107 struct sipe_backend_stream *
108 sipe_backend_media_get_stream_by_id(struct sipe_backend_media *media,
109 const gchar *id)
111 _NIF();
112 return NULL;
115 void
116 sipe_backend_media_add_remote_candidates(struct sipe_backend_media *media,
117 struct sipe_backend_stream *stream,
118 GList *candidates)
120 _NIF();
123 gboolean sipe_backend_media_is_initiator(struct sipe_backend_media *media,
124 struct sipe_backend_stream *stream)
126 _NIF();
127 return FALSE;
130 gboolean sipe_backend_media_accepted(struct sipe_backend_media *media)
132 _NIF();
133 return FALSE;
136 gboolean
137 sipe_backend_stream_initialized(struct sipe_backend_media *media,
138 struct sipe_backend_stream *stream)
140 _NIF();
141 return FALSE;
144 GList *
145 sipe_backend_media_get_active_local_candidates(struct sipe_backend_media *media,
146 struct sipe_backend_stream *stream)
148 _NIF();
149 return NULL;
152 GList *
153 sipe_backend_media_get_active_remote_candidates(struct sipe_backend_media *media,
154 struct sipe_backend_stream *stream)
156 _NIF();
157 return NULL;
160 const gchar *
161 sipe_backend_stream_get_id(struct sipe_backend_stream *stream)
163 _NIF();
164 return NULL;
167 void sipe_backend_stream_hold(struct sipe_backend_media *media,
168 struct sipe_backend_stream *stream,
169 gboolean local)
171 _NIF();
174 void sipe_backend_stream_unhold(struct sipe_backend_media *media,
175 struct sipe_backend_stream *stream,
176 gboolean local)
178 _NIF();
181 gboolean sipe_backend_stream_is_held(struct sipe_backend_stream *stream)
183 _NIF();
184 return FALSE;
187 struct sipe_backend_codec *
188 sipe_backend_codec_new(int id, const char *name, SipeMediaType type, guint clock_rate)
190 _NIF();
191 return NULL;
194 void
195 sipe_backend_codec_free(struct sipe_backend_codec *codec)
197 _NIF();
201 sipe_backend_codec_get_id(struct sipe_backend_codec *codec)
203 _NIF();
204 return 0;
207 gchar *
208 sipe_backend_codec_get_name(struct sipe_backend_codec *codec)
210 _NIF();
211 return NULL;
214 guint
215 sipe_backend_codec_get_clock_rate(struct sipe_backend_codec *codec)
217 _NIF();
218 return 0;
221 void
222 sipe_backend_codec_add_optional_parameter(struct sipe_backend_codec *codec,
223 const gchar *name, const gchar *value)
225 _NIF();
228 GList *
229 sipe_backend_codec_get_optional_parameters(struct sipe_backend_codec *codec)
231 _NIF();
232 return NULL;
235 gboolean
236 sipe_backend_set_remote_codecs(struct sipe_backend_media *media,
237 struct sipe_backend_stream *stream,
238 GList *codecs)
240 _NIF();
241 return FALSE;
244 GList*
245 sipe_backend_get_local_codecs(struct sipe_backend_media *media,
246 struct sipe_backend_stream *stream)
248 _NIF();
249 return NULL;
252 struct sipe_backend_candidate *
253 sipe_backend_candidate_new(const gchar *foundation,
254 SipeComponentType component,
255 SipeCandidateType type, SipeNetworkProtocol proto,
256 const gchar *ip, guint port,
257 const gchar *username,
258 const gchar *password)
260 _NIF();
261 return NULL;
264 void
265 sipe_backend_candidate_free(struct sipe_backend_candidate *candidate)
267 _NIF();
270 gchar *
271 sipe_backend_candidate_get_username(struct sipe_backend_candidate *candidate)
273 _NIF();
274 return NULL;
277 gchar *
278 sipe_backend_candidate_get_password(struct sipe_backend_candidate *candidate)
280 _NIF();
281 return NULL;
284 gchar *
285 sipe_backend_candidate_get_foundation(struct sipe_backend_candidate *candidate)
287 _NIF();
288 return NULL;
291 gchar *
292 sipe_backend_candidate_get_ip(struct sipe_backend_candidate *candidate)
294 _NIF();
295 return NULL;
298 guint
299 sipe_backend_candidate_get_port(struct sipe_backend_candidate *candidate)
301 _NIF();
302 return 0;
305 gchar *
306 sipe_backend_candidate_get_base_ip(struct sipe_backend_candidate *candidate)
308 _NIF();
309 return FALSE;
312 guint
313 sipe_backend_candidate_get_base_port(struct sipe_backend_candidate *candidate)
315 _NIF();
316 return 0;
319 guint32
320 sipe_backend_candidate_get_priority(struct sipe_backend_candidate *candidate)
322 _NIF();
323 return 0;
326 void
327 sipe_backend_candidate_set_priority(struct sipe_backend_candidate *candidate, guint32 priority)
329 _NIF();
332 SipeComponentType
333 sipe_backend_candidate_get_component_type(struct sipe_backend_candidate *candidate)
335 _NIF();
336 return SIPE_COMPONENT_NONE;
339 SipeCandidateType
340 sipe_backend_candidate_get_type(struct sipe_backend_candidate *candidate)
342 _NIF();
343 return SIPE_CANDIDATE_TYPE_ANY;
346 SipeNetworkProtocol
347 sipe_backend_candidate_get_protocol(struct sipe_backend_candidate *candidate)
349 _NIF();
350 return SIPE_NETWORK_PROTOCOL_TCP_ACTIVE;
353 GList *
354 sipe_backend_get_local_candidates(struct sipe_backend_media *media,
355 struct sipe_backend_stream *stream)
357 _NIF();
358 return FALSE;
361 void
362 sipe_backend_media_accept(struct sipe_backend_media *media, gboolean local)
364 _NIF();
367 void
368 sipe_backend_media_hangup(struct sipe_backend_media *media, gboolean local)
370 _NIF();
373 void
374 sipe_backend_media_reject(struct sipe_backend_media *media, gboolean local)
376 _NIF();
380 Local Variables:
381 mode: c
382 c-file-style: "bsd"
383 indent-tabs-mode: t
384 tab-width: 8
385 End: