Fri, 12 Aug 2022 01:29:41 -0500
Modernize some media files
And also add braces everywhere.
Testing Done:
Compiled only.
Reviewed at https://reviews.imfreedom.org/r/1582/
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
1 | /* purple |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
2 | * |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
3 | * Purple is the legal property of its developers, whose names are too numerous |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
5 | * source distribution. |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
6 | * |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
7 | * This program is free software; you can redistribute it and/or modify |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
8 | * it under the terms of the GNU General Public License as published by |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
9 | * the Free Software Foundation; either version 2 of the License, or |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
10 | * (at your option) any later version. |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
11 | * |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
12 | * This program is distributed in the hope that it will be useful, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
15 | * GNU General Public License for more details. |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
16 | * |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
20 | */ |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
21 | |
|
37191
1dc63272d2e5
media: fix build of backend-iface when USE_VV is enabled
Jakub Adam <jakub.adam@ktknet.cz>
parents:
37163
diff
changeset
|
22 | #include "internal.h" |
|
1dc63272d2e5
media: fix build of backend-iface when USE_VV is enabled
Jakub Adam <jakub.adam@ktknet.cz>
parents:
37163
diff
changeset
|
23 | |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
24 | #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
|
25 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
26 | enum { |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
27 | S_ERROR, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
28 | CANDIDATES_PREPARED, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
29 | CODECS_CHANGED, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
30 | NEW_CANDIDATE, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
31 | ACTIVE_CANDIDATE_PAIR, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
32 | LAST_SIGNAL |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
33 | }; |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
34 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
35 | static guint purple_media_backend_signals[LAST_SIGNAL] = {0}; |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
36 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
37 | static void |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
38 | 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
|
39 | { |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
40 | 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
|
41 | |
|
41489
8026339f5ace
Modernize some media files
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41146
diff
changeset
|
42 | 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
|
43 | return; |
|
41489
8026339f5ace
Modernize some media files
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41146
diff
changeset
|
44 | } |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
45 | |
|
29562
7f2e253c266e
This is an interface and not a class.
Michael Ruprecht <maiku@pidgin.im>
parents:
29560
diff
changeset
|
46 | g_object_interface_install_property(iface, |
|
29560
0af31a3eb297
Fix parameter to actually be a string instead of an object.
Michael Ruprecht <maiku@pidgin.im>
parents:
29558
diff
changeset
|
47 | 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
|
48 | "Conference Type", |
|
a151d2be726c
Add the conference-type property to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29555
diff
changeset
|
49 | "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
|
50 | "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
|
51 | 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
|
52 | 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
|
53 | G_PARAM_STATIC_STRINGS)); |
|
29562
7f2e253c266e
This is an interface and not a class.
Michael Ruprecht <maiku@pidgin.im>
parents:
29560
diff
changeset
|
54 | g_object_interface_install_property(iface, |
|
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 | #ifdef USE_VV |
|
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
|
56 | g_param_spec_object( |
|
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
|
57 | #else |
|
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
|
58 | g_param_spec_pointer( |
|
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
|
59 | #endif |
|
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
|
60 | "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
|
61 | "The media object that this backend is bound to.", |
|
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
|
62 | #ifdef USE_VV |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
63 | PURPLE_TYPE_MEDIA, |
|
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
|
64 | #endif |
|
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
|
65 | 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
|
66 | G_PARAM_STATIC_STRINGS)); |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
67 | purple_media_backend_signals[S_ERROR] = |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
68 | g_signal_new("error", G_TYPE_FROM_CLASS(iface), |
|
38365
2ee19fb5fb0d
libpurple: Use default marshaller for GObject signals
Mike Ruprecht <cmaiku@gmail.com>
parents:
37191
diff
changeset
|
69 | 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
|
70 | G_TYPE_NONE, 1, G_TYPE_STRING); |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
71 | purple_media_backend_signals[CANDIDATES_PREPARED] = |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
72 | g_signal_new("candidates-prepared", |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
73 | G_TYPE_FROM_CLASS(iface), |
|
38365
2ee19fb5fb0d
libpurple: Use default marshaller for GObject signals
Mike Ruprecht <cmaiku@gmail.com>
parents:
37191
diff
changeset
|
74 | 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
|
75 | 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
|
76 | G_TYPE_STRING); |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
77 | purple_media_backend_signals[CODECS_CHANGED] = |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
78 | g_signal_new("codecs-changed", |
|
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, 1, G_TYPE_STRING); |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
82 | purple_media_backend_signals[NEW_CANDIDATE] = |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
83 | g_signal_new("new-candidate", |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
84 | G_TYPE_FROM_CLASS(iface), |
|
38365
2ee19fb5fb0d
libpurple: Use default marshaller for GObject signals
Mike Ruprecht <cmaiku@gmail.com>
parents:
37191
diff
changeset
|
85 | 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
|
86 | 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
|
87 | G_TYPE_POINTER, 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
|
88 | purple_media_backend_signals[ACTIVE_CANDIDATE_PAIR] = |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
89 | g_signal_new("active-candidate-pair", |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
90 | G_TYPE_FROM_CLASS(iface), |
|
38365
2ee19fb5fb0d
libpurple: Use default marshaller for GObject signals
Mike Ruprecht <cmaiku@gmail.com>
parents:
37191
diff
changeset
|
91 | 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
|
92 | 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
|
93 | 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
|
94 | 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
|
95 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
96 | is_initialized = TRUE; |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
97 | } |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
98 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
99 | GType |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
100 | 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
|
101 | { |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
102 | 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
|
103 | 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
|
104 | static const GTypeInfo info = { |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38365
diff
changeset
|
105 | sizeof(PurpleMediaBackendInterface), |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
106 | 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
|
107 | NULL, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
108 | NULL, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
109 | NULL, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
110 | NULL, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
111 | 0, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
112 | 0, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
113 | NULL, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
114 | NULL |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
115 | }; |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
116 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
117 | 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
|
118 | "PurpleMediaBackend", &info, 0); |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
119 | } |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
120 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
121 | return iface_type; |
|
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 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
124 | gboolean |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
125 | 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
|
126 | 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
|
127 | 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
|
128 | { |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
129 | 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
|
130 | 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
|
131 | 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
|
132 | } |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
133 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
134 | void |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
135 | 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
|
136 | 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
|
137 | GList *remote_candidates) |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
138 | { |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
139 | 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
|
140 | 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
|
141 | 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
|
142 | } |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
143 | |
|
29597
22843326ee22
Add codecs_ready to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29590
diff
changeset
|
144 | gboolean |
|
22843326ee22
Add codecs_ready to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29590
diff
changeset
|
145 | 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
|
146 | const gchar *sess_id) |
|
22843326ee22
Add codecs_ready to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29590
diff
changeset
|
147 | { |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
148 | 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
|
149 | 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
|
150 | sess_id); |
|
22843326ee22
Add codecs_ready to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29590
diff
changeset
|
151 | } |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
152 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
153 | GList * |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
154 | 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
|
155 | 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
|
156 | { |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
157 | 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
|
158 | 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
|
159 | sess_id); |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
160 | } |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
161 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
162 | GList * |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
163 | 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
|
164 | 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
|
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), NULL); |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
167 | 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
|
168 | 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
|
169 | sess_id, participant); |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
170 | } |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
171 | |
|
29588
a3fef46ce04a
Make the backend interface's set_remote_codecs function return gboolean.
Michael Ruprecht <maiku@pidgin.im>
parents:
29562
diff
changeset
|
172 | gboolean |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
173 | 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
|
174 | 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
|
175 | GList *codecs) |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
176 | { |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
177 | 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
|
178 | 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
|
179 | 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
|
180 | } |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
181 | |
|
29590
bec92b90acc9
Change the media backend interface's set_send_codec to return gboolean to
Michael Ruprecht <maiku@pidgin.im>
parents:
29588
diff
changeset
|
182 | gboolean |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
183 | 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
|
184 | 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
|
185 | { |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
186 | 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
|
187 | 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
|
188 | sess_id, codec); |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
189 | } |
|
31687
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
190 | |
|
36318
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
191 | gboolean |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
192 | purple_media_backend_set_encryption_parameters(PurpleMediaBackend *self, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
193 | const gchar *sess_id, const gchar *cipher, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
194 | const gchar *auth, const gchar *key, gsize key_len) |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
195 | { |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38365
diff
changeset
|
196 | PurpleMediaBackendInterface *backend_iface; |
|
36318
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
197 | |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
198 | 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
|
199 | backend_iface = PURPLE_MEDIA_BACKEND_GET_INTERFACE(self); |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
200 | 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
|
201 | return backend_iface->set_encryption_parameters(self, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
202 | sess_id, cipher, auth, key, key_len); |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
203 | } |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
204 | |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
205 | gboolean |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
206 | purple_media_backend_set_decryption_parameters(PurpleMediaBackend *self, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
207 | const gchar *sess_id, const gchar *participant, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
208 | const gchar *cipher, const gchar *auth, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
209 | const gchar *key, gsize key_len) |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
210 | { |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38365
diff
changeset
|
211 | PurpleMediaBackendInterface *backend_iface; |
|
36318
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
212 | |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
213 | 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
|
214 | backend_iface = PURPLE_MEDIA_BACKEND_GET_INTERFACE(self); |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
215 | 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
|
216 | return backend_iface->set_decryption_parameters(self, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
217 | sess_id, participant, cipher, auth, key, key_len); |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
218 | } |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31687
diff
changeset
|
219 | |
|
40268
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
220 | gboolean |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
221 | 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
|
222 | const gchar *sess_id, const gchar *participant, |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
223 | gboolean require_encryption) |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
224 | { |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
225 | PurpleMediaBackendInterface *backend_iface; |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
226 | |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
227 | 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
|
228 | 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
|
229 | |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
230 | if (!backend_iface->set_require_encryption) { |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
231 | return FALSE; |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
232 | } |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
233 | |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
234 | return backend_iface->set_require_encryption(self, |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
235 | sess_id, participant, require_encryption); |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
236 | } |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
39757
diff
changeset
|
237 | |
|
31687
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
238 | void |
|
41146
d1a4975ae036
Use fs_stream_set_transmitter_ht
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40890
diff
changeset
|
239 | 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
|
240 | { |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
241 | 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
|
242 | 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
|
243 | } |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
244 | |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
245 | const gchar ** |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
246 | 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
|
247 | { |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
29597
diff
changeset
|
248 | 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
|
249 | |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
250 | 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
|
251 | 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
|
252 | } |
|
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
|
253 | |
|
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 | 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
|
255 | 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
|
256 | 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
|
257 | { |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38365
diff
changeset
|
258 | 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
|
259 | |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40268
diff
changeset
|
260 | 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
|
261 | 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
|
262 | 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
|
263 | 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
|
264 | 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
|
265 | } |