Tue, 20 Feb 2024 01:23:04 -0600
Create a test for verifying license headers and correct the ones that were wrong
We might want to move check_license_header.py script out to somewhere else,
but this is fine for now as we're just getting things going.
Testing Done:
Compiled with the Turtles.
Reviewed at https://reviews.imfreedom.org/r/2940/
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42584
diff
changeset
|
1 | /* |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42584
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42584
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
4 | * |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
5 | * Purple is the legal property of its developers, whose names are too numerous |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42584
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
7 | * source distribution. |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
8 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42584
diff
changeset
|
9 | * This library is free software; you can redistribute it and/or modify it |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42584
diff
changeset
|
10 | * under the terms of the GNU General Public License as published by the Free |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42584
diff
changeset
|
11 | * Software Foundation; either version 2 of the License, or (at your option) |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42584
diff
changeset
|
12 | * any later version. |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
13 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42584
diff
changeset
|
14 | * This library is distributed in the hope that it will be useful, but WITHOUT |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42584
diff
changeset
|
15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42584
diff
changeset
|
16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42584
diff
changeset
|
17 | * more details. |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
18 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42584
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License along with |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42584
diff
changeset
|
20 | * this library; if not, see <https://www.gnu.org/licenses/>. |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
21 | */ |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
22 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
23 | #include "backend-iface.h" |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
24 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
25 | enum { |
|
42584
687260353985
Make signal and property enums and initializers consistent
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41685
diff
changeset
|
26 | SIG_ERROR, |
|
687260353985
Make signal and property enums and initializers consistent
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41685
diff
changeset
|
27 | SIG_CANDIDATES_PREPARED, |
|
687260353985
Make signal and property enums and initializers consistent
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41685
diff
changeset
|
28 | SIG_CODECS_CHANGED, |
|
687260353985
Make signal and property enums and initializers consistent
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41685
diff
changeset
|
29 | SIG_NEW_CANDIDATE, |
|
687260353985
Make signal and property enums and initializers consistent
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41685
diff
changeset
|
30 | SIG_ACTIVE_CANDIDATE_PAIR, |
|
687260353985
Make signal and property enums and initializers consistent
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41685
diff
changeset
|
31 | N_SIGNALS, |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
32 | }; |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
33 | |
|
42584
687260353985
Make signal and property enums and initializers consistent
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41685
diff
changeset
|
34 | static guint signals[N_SIGNALS] = {0, }; |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
35 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
36 | static void |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
37 | purple_media_backend_base_init(gpointer iface) |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
38 | { |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
39 | static gboolean is_initialized = FALSE; |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
40 | |
|
41489
8026339f5ace
Modernize some media files
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41146
diff
changeset
|
41 | if (is_initialized) { |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
42 | return; |
|
41489
8026339f5ace
Modernize some media files
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41146
diff
changeset
|
43 | } |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
44 | |
|
29562
7f2e253c266e
This is an interface and not a class.
Michael Ruprecht <maiku@pidgin.im>
parents:
29560
diff
changeset
|
45 | g_object_interface_install_property(iface, |
|
41490
2b1695327414
Make VV libraries required
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41489
diff
changeset
|
46 | g_param_spec_string("conference-type", |
|
29558
a151d2be726c
Add the conference-type property to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29555
diff
changeset
|
47 | "Conference Type", |
|
a151d2be726c
Add the conference-type property to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29555
diff
changeset
|
48 | "The type of conference that this backend " |
|
a151d2be726c
Add the conference-type property to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29555
diff
changeset
|
49 | "has been created to provide.", |
|
29560
0af31a3eb297
Fix parameter to actually be a string instead of an object.
Michael Ruprecht <maiku@pidgin.im>
parents:
29558
diff
changeset
|
50 | NULL, |
|
35063
8ac1510a27ae
media: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
31687
diff
changeset
|
51 | G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | |
|
8ac1510a27ae
media: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
31687
diff
changeset
|
52 | G_PARAM_STATIC_STRINGS)); |
|
29562
7f2e253c266e
This is an interface and not a class.
Michael Ruprecht <maiku@pidgin.im>
parents:
29560
diff
changeset
|
53 | g_object_interface_install_property(iface, |
|
41490
2b1695327414
Make VV libraries required
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41489
diff
changeset
|
54 | g_param_spec_object( |
|
36841
53531102aa3a
g-ir-scanner gives a critical warning for PurpleMedia not being a GObject with USE_VV not defined
Ankit Vani <a@nevitus.org>
parents:
31687
diff
changeset
|
55 | "media", "Purple Media", |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
56 | "The media object that this backend is bound to.", |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
57 | PURPLE_TYPE_MEDIA, |
|
35063
8ac1510a27ae
media: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
31687
diff
changeset
|
58 | G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | |
|
8ac1510a27ae
media: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
31687
diff
changeset
|
59 | G_PARAM_STATIC_STRINGS)); |
|
42584
687260353985
Make signal and property enums and initializers consistent
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41685
diff
changeset
|
60 | signals[SIG_ERROR] = g_signal_new("error", |
|
687260353985
Make signal and property enums and initializers consistent
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41685
diff
changeset
|
61 | G_TYPE_FROM_CLASS(iface), |
|
38365
2ee19fb5fb0d
libpurple: Use default marshaller for GObject signals
Mike Ruprecht <cmaiku@gmail.com>
parents:
37191
diff
changeset
|
62 | G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
63 | G_TYPE_NONE, 1, G_TYPE_STRING); |
|
42584
687260353985
Make signal and property enums and initializers consistent
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41685
diff
changeset
|
64 | signals[SIG_CANDIDATES_PREPARED] = g_signal_new("candidates-prepared", |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
65 | G_TYPE_FROM_CLASS(iface), |
|
38365
2ee19fb5fb0d
libpurple: Use default marshaller for GObject signals
Mike Ruprecht <cmaiku@gmail.com>
parents:
37191
diff
changeset
|
66 | G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
67 | G_TYPE_NONE, 2, G_TYPE_STRING, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
68 | G_TYPE_STRING); |
|
42584
687260353985
Make signal and property enums and initializers consistent
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41685
diff
changeset
|
69 | signals[SIG_CODECS_CHANGED] = g_signal_new("codecs-changed", |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
70 | G_TYPE_FROM_CLASS(iface), |
|
38365
2ee19fb5fb0d
libpurple: Use default marshaller for GObject signals
Mike Ruprecht <cmaiku@gmail.com>
parents:
37191
diff
changeset
|
71 | G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
72 | G_TYPE_NONE, 1, G_TYPE_STRING); |
|
42584
687260353985
Make signal and property enums and initializers consistent
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41685
diff
changeset
|
73 | signals[SIG_NEW_CANDIDATE] = g_signal_new("new-candidate", |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
74 | G_TYPE_FROM_CLASS(iface), |
|
38365
2ee19fb5fb0d
libpurple: Use default marshaller for GObject signals
Mike Ruprecht <cmaiku@gmail.com>
parents:
37191
diff
changeset
|
75 | G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
76 | G_TYPE_NONE, 3, G_TYPE_POINTER, |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
77 | G_TYPE_POINTER, PURPLE_MEDIA_TYPE_CANDIDATE); |
|
42584
687260353985
Make signal and property enums and initializers consistent
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41685
diff
changeset
|
78 | signals[SIG_ACTIVE_CANDIDATE_PAIR] = g_signal_new("active-candidate-pair", |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
79 | G_TYPE_FROM_CLASS(iface), |
|
38365
2ee19fb5fb0d
libpurple: Use default marshaller for GObject signals
Mike Ruprecht <cmaiku@gmail.com>
parents:
37191
diff
changeset
|
80 | G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
81 | G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_STRING, |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
82 | PURPLE_MEDIA_TYPE_CANDIDATE, |
|
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
83 | PURPLE_MEDIA_TYPE_CANDIDATE); |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
84 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
85 | is_initialized = TRUE; |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
86 | } |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
87 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
88 | GType |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
89 | purple_media_backend_get_type(void) |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
90 | { |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
91 | static GType iface_type = 0; |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
92 | if (iface_type == 0) { |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
93 | static const GTypeInfo info = { |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38365
diff
changeset
|
94 | sizeof(PurpleMediaBackendInterface), |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
95 | purple_media_backend_base_init, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
96 | NULL, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
97 | NULL, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
98 | NULL, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
99 | NULL, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
100 | 0, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
101 | 0, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
102 | NULL, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
103 | NULL |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
104 | }; |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
105 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
106 | iface_type = g_type_register_static (G_TYPE_INTERFACE, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
107 | "PurpleMediaBackend", &info, 0); |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
108 | } |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
109 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
110 | return iface_type; |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
111 | } |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
112 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
113 | gboolean |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
114 | purple_media_backend_add_stream(PurpleMediaBackend *self, |
|
41146
d1a4975ae036
Use fs_stream_set_transmitter_ht
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40890
diff
changeset
|
115 | const gchar *sess_id, const gchar *who, PurpleMediaSessionType type, |
|
d1a4975ae036
Use fs_stream_set_transmitter_ht
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40890
diff
changeset
|
116 | gboolean initiator, const gchar *transmitter, GHashTable *params) |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
117 | { |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
118 | g_return_val_if_fail(PURPLE_MEDIA_IS_BACKEND(self), FALSE); |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
119 | return PURPLE_MEDIA_BACKEND_GET_INTERFACE(self)->add_stream(self, |
|
41146
d1a4975ae036
Use fs_stream_set_transmitter_ht
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40890
diff
changeset
|
120 | sess_id, who, type, initiator, transmitter, params); |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
121 | } |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
122 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
123 | void |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
124 | purple_media_backend_add_remote_candidates(PurpleMediaBackend *self, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
125 | const gchar *sess_id, const gchar *participant, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
126 | GList *remote_candidates) |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
127 | { |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
128 | g_return_if_fail(PURPLE_MEDIA_IS_BACKEND(self)); |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
129 | PURPLE_MEDIA_BACKEND_GET_INTERFACE(self)->add_remote_candidates(self, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
130 | sess_id, participant, remote_candidates); |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
131 | } |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
132 | |
|
29597
22843326ee22
Add codecs_ready to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29590
diff
changeset
|
133 | gboolean |
|
22843326ee22
Add codecs_ready to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29590
diff
changeset
|
134 | purple_media_backend_codecs_ready(PurpleMediaBackend *self, |
|
22843326ee22
Add codecs_ready to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29590
diff
changeset
|
135 | const gchar *sess_id) |
|
22843326ee22
Add codecs_ready to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29590
diff
changeset
|
136 | { |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
137 | g_return_val_if_fail(PURPLE_MEDIA_IS_BACKEND(self), FALSE); |
|
29597
22843326ee22
Add codecs_ready to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29590
diff
changeset
|
138 | return PURPLE_MEDIA_BACKEND_GET_INTERFACE(self)->codecs_ready(self, |
|
22843326ee22
Add codecs_ready to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29590
diff
changeset
|
139 | sess_id); |
|
22843326ee22
Add codecs_ready to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29590
diff
changeset
|
140 | } |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
141 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
142 | GList * |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
143 | purple_media_backend_get_codecs(PurpleMediaBackend *self, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
144 | const gchar *sess_id) |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
145 | { |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
146 | g_return_val_if_fail(PURPLE_MEDIA_IS_BACKEND(self), NULL); |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
147 | return PURPLE_MEDIA_BACKEND_GET_INTERFACE(self)->get_codecs(self, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
148 | sess_id); |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
149 | } |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
150 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
151 | GList * |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
152 | purple_media_backend_get_local_candidates(PurpleMediaBackend *self, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
153 | const gchar *sess_id, const gchar *participant) |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
154 | { |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
155 | g_return_val_if_fail(PURPLE_MEDIA_IS_BACKEND(self), NULL); |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
156 | return PURPLE_MEDIA_BACKEND_GET_INTERFACE(self)-> |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
157 | get_local_candidates(self, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
158 | sess_id, participant); |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
159 | } |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
160 | |
|
29588
a3fef46ce04a
Make the backend interface's set_remote_codecs function return gboolean.
Michael Ruprecht <maiku@pidgin.im>
parents:
29562
diff
changeset
|
161 | gboolean |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
162 | purple_media_backend_set_remote_codecs(PurpleMediaBackend *self, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
163 | const gchar *sess_id, const gchar *participant, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
164 | GList *codecs) |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
165 | { |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
166 | g_return_val_if_fail(PURPLE_MEDIA_IS_BACKEND(self), FALSE); |
|
29588
a3fef46ce04a
Make the backend interface's set_remote_codecs function return gboolean.
Michael Ruprecht <maiku@pidgin.im>
parents:
29562
diff
changeset
|
167 | return PURPLE_MEDIA_BACKEND_GET_INTERFACE(self)->set_remote_codecs( |
|
a3fef46ce04a
Make the backend interface's set_remote_codecs function return gboolean.
Michael Ruprecht <maiku@pidgin.im>
parents:
29562
diff
changeset
|
168 | self, sess_id, participant, codecs); |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
169 | } |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
170 | |
|
29590
bec92b90acc9
Change the media backend interface's set_send_codec to return gboolean to
Michael Ruprecht <maiku@pidgin.im>
parents:
29588
diff
changeset
|
171 | gboolean |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
172 | purple_media_backend_set_send_codec(PurpleMediaBackend *self, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
173 | const gchar *sess_id, PurpleMediaCodec *codec) |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
174 | { |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
175 | g_return_val_if_fail(PURPLE_MEDIA_IS_BACKEND(self), FALSE); |
|
29590
bec92b90acc9
Change the media backend interface's set_send_codec to return gboolean to
Michael Ruprecht <maiku@pidgin.im>
parents:
29588
diff
changeset
|
176 | return PURPLE_MEDIA_BACKEND_GET_INTERFACE(self)->set_send_codec(self, |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
177 | sess_id, codec); |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
178 | } |
|
31687
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
179 | |
|
36318
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
180 | gboolean |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
181 | purple_media_backend_set_encryption_parameters(PurpleMediaBackend *self, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
182 | const gchar *sess_id, const gchar *cipher, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
183 | const gchar *auth, const gchar *key, gsize key_len) |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
184 | { |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38365
diff
changeset
|
185 | PurpleMediaBackendInterface *backend_iface; |
|
36318
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
186 | |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
187 | g_return_val_if_fail(PURPLE_MEDIA_IS_BACKEND(self), FALSE); |
|
36318
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
188 | backend_iface = PURPLE_MEDIA_BACKEND_GET_INTERFACE(self); |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
189 | g_return_val_if_fail(backend_iface->set_encryption_parameters, FALSE); |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
190 | return backend_iface->set_encryption_parameters(self, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
191 | sess_id, cipher, auth, key, key_len); |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
192 | } |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
193 | |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
194 | gboolean |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
195 | purple_media_backend_set_decryption_parameters(PurpleMediaBackend *self, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
196 | const gchar *sess_id, const gchar *participant, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
197 | const gchar *cipher, const gchar *auth, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
198 | const gchar *key, gsize key_len) |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
199 | { |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38365
diff
changeset
|
200 | PurpleMediaBackendInterface *backend_iface; |
|
36318
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
201 | |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
202 | g_return_val_if_fail(PURPLE_MEDIA_IS_BACKEND(self), FALSE); |
|
36318
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
203 | backend_iface = PURPLE_MEDIA_BACKEND_GET_INTERFACE(self); |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
204 | g_return_val_if_fail(backend_iface->set_decryption_parameters, FALSE); |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
205 | return backend_iface->set_decryption_parameters(self, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
206 | sess_id, participant, cipher, auth, key, key_len); |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
207 | } |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
208 | |
|
40268
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
209 | gboolean |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
210 | purple_media_backend_set_require_encryption(PurpleMediaBackend *self, |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
211 | const gchar *sess_id, const gchar *participant, |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
212 | gboolean require_encryption) |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
213 | { |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
214 | PurpleMediaBackendInterface *backend_iface; |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
215 | |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
216 | g_return_val_if_fail(PURPLE_MEDIA_IS_BACKEND(self), FALSE); |
|
40268
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
217 | backend_iface = PURPLE_MEDIA_BACKEND_GET_INTERFACE(self); |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
218 | |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
219 | if (!backend_iface->set_require_encryption) { |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
220 | return FALSE; |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
221 | } |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
222 | |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
223 | return backend_iface->set_require_encryption(self, |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
224 | sess_id, participant, require_encryption); |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
225 | } |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
226 | |
|
31687
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
227 | void |
|
41146
d1a4975ae036
Use fs_stream_set_transmitter_ht
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40890
diff
changeset
|
228 | purple_media_backend_set_params(PurpleMediaBackend *self, GHashTable *params) |
|
31687
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
229 | { |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
230 | g_return_if_fail(PURPLE_MEDIA_IS_BACKEND(self)); |
|
41146
d1a4975ae036
Use fs_stream_set_transmitter_ht
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40890
diff
changeset
|
231 | PURPLE_MEDIA_BACKEND_GET_INTERFACE(self)->set_params(self, params); |
|
31687
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
232 | } |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
233 | |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
234 | const gchar ** |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
235 | purple_media_backend_get_available_params(PurpleMediaBackend *self) |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
236 | { |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
237 | static const gchar *NULL_ARRAY[] = { NULL }; |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
238 | |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
239 | g_return_val_if_fail(PURPLE_MEDIA_IS_BACKEND(self), NULL_ARRAY); |
|
31687
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
240 | return PURPLE_MEDIA_BACKEND_GET_INTERFACE(self)->get_available_params(); |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
241 | } |
|
36321
5f5abd63c305
media: Add a send-rtcp-mux API to allow muxing of RTP and RTCP
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36318
diff
changeset
|
242 | |
|
5f5abd63c305
media: Add a send-rtcp-mux API to allow muxing of RTP and RTCP
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36318
diff
changeset
|
243 | gboolean |
|
5f5abd63c305
media: Add a send-rtcp-mux API to allow muxing of RTP and RTCP
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36318
diff
changeset
|
244 | purple_media_backend_set_send_rtcp_mux(PurpleMediaBackend *self, |
|
5f5abd63c305
media: Add a send-rtcp-mux API to allow muxing of RTP and RTCP
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36318
diff
changeset
|
245 | const gchar *sess_id, const gchar *participant, gboolean send_rtcp_mux) |
|
5f5abd63c305
media: Add a send-rtcp-mux API to allow muxing of RTP and RTCP
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36318
diff
changeset
|
246 | { |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38365
diff
changeset
|
247 | PurpleMediaBackendInterface *backend_iface; |
|
36321
5f5abd63c305
media: Add a send-rtcp-mux API to allow muxing of RTP and RTCP
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36318
diff
changeset
|
248 | |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
249 | g_return_val_if_fail(PURPLE_MEDIA_IS_BACKEND(self), FALSE); |
|
36321
5f5abd63c305
media: Add a send-rtcp-mux API to allow muxing of RTP and RTCP
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36318
diff
changeset
|
250 | backend_iface = PURPLE_MEDIA_BACKEND_GET_INTERFACE(self); |
|
5f5abd63c305
media: Add a send-rtcp-mux API to allow muxing of RTP and RTCP
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36318
diff
changeset
|
251 | g_return_val_if_fail(backend_iface->set_send_rtcp_mux, FALSE); |
|
5f5abd63c305
media: Add a send-rtcp-mux API to allow muxing of RTP and RTCP
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36318
diff
changeset
|
252 | return backend_iface->set_send_rtcp_mux(self, |
|
5f5abd63c305
media: Add a send-rtcp-mux API to allow muxing of RTP and RTCP
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36318
diff
changeset
|
253 | sess_id, participant, send_rtcp_mux); |
|
5f5abd63c305
media: Add a send-rtcp-mux API to allow muxing of RTP and RTCP
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36318
diff
changeset
|
254 | } |