Fri, 20 Oct 2023 02:10:54 -0500
Prefix version.h with purple
And split constants into a separate file as in hasl.
Testing Done:
Compiled.
Reviewed at https://reviews.imfreedom.org/r/2680/
|
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 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
22 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
23 | # error "only <purple.h> may be included directly" |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
24 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
25 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
26 | #ifndef PURPLE_MEDIA_BACKEND_IFACE_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
27 | #define PURPLE_MEDIA_BACKEND_IFACE_H |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
28 | |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
29 | #include "codec.h" |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
30 | #include "enum-types.h" |
|
40439
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40273
diff
changeset
|
31 | #include "media.h" |
|
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 | #include <glib-object.h> |
|
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 | G_BEGIN_DECLS |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
36 | |
|
40890
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40474
diff
changeset
|
37 | #define PURPLE_MEDIA_TYPE_BACKEND (purple_media_backend_get_type()) |
|
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40474
diff
changeset
|
38 | #define PURPLE_MEDIA_IS_BACKEND(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_MEDIA_TYPE_BACKEND)) |
|
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40474
diff
changeset
|
39 | #define PURPLE_MEDIA_BACKEND(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_MEDIA_TYPE_BACKEND, PurpleMediaBackend)) |
|
631788774f96
Use PurpleMedia/PURPLE_MEDIA prefix for everything in libpurple/media.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40474
diff
changeset
|
40 | #define PURPLE_MEDIA_BACKEND_GET_INTERFACE(inst)(G_TYPE_INSTANCE_GET_INTERFACE((inst), PURPLE_MEDIA_TYPE_BACKEND, PurpleMediaBackendInterface)) |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
41 | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
42 | /** |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
43 | * PurpleMediaBackend: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
44 | * |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
45 | * A placeholder to represent any media backend |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
46 | */ |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
47 | typedef struct _PurpleMediaBackend PurpleMediaBackend; |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
48 | |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
49 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
50 | * PurpleMediaBackendInterface: |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
51 | * |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
52 | * A structure to derive media backends from. |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
53 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
54 | typedef struct _PurpleMediaBackendInterface PurpleMediaBackendInterface; |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
55 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
56 | struct _PurpleMediaBackendInterface |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
57 | { |
|
35467
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35462
diff
changeset
|
58 | /*< private >*/ |
|
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35462
diff
changeset
|
59 | GTypeInterface parent_iface; /* The parent iface class */ |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
60 | |
|
35467
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35462
diff
changeset
|
61 | /*< public >*/ |
|
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35462
diff
changeset
|
62 | /* Implementable functions called with purple_media_backend_* */ |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
63 | gboolean (*add_stream) (PurpleMediaBackend *self, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
64 | const gchar *sess_id, const gchar *who, |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
65 | PurpleMediaSessionType type, gboolean initiator, |
|
41146
d1a4975ae036
Use fs_stream_set_transmitter_ht
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41083
diff
changeset
|
66 | const gchar *transmitter, GHashTable *params); |
|
40013
69d398c30f7d
Add G_GNUC_BEGIN_IGNORE_DEPRECATIONS around uses of GParameter in our API
Gary Kramlich <grim@reaperworld.com>
parents:
39757
diff
changeset
|
67 | |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
68 | void (*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
|
69 | 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
|
70 | GList *remote_candidates); |
|
29597
22843326ee22
Add codecs_ready to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29590
diff
changeset
|
71 | gboolean (*codecs_ready) (PurpleMediaBackend *self, |
|
22843326ee22
Add codecs_ready to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29590
diff
changeset
|
72 | const gchar *sess_id); |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
73 | GList *(*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
|
74 | 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
|
75 | GList *(*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
|
76 | const gchar *sess_id, const gchar *participant); |
|
29588
a3fef46ce04a
Make the backend interface's set_remote_codecs function return gboolean.
Michael Ruprecht <maiku@pidgin.im>
parents:
29557
diff
changeset
|
77 | gboolean (*set_remote_codecs) (PurpleMediaBackend *self, |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
78 | 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
|
79 | GList *codecs); |
|
29590
bec92b90acc9
Change the media backend interface's set_send_codec to return gboolean to
Michael Ruprecht <maiku@pidgin.im>
parents:
29588
diff
changeset
|
80 | gboolean (*set_send_codec) (PurpleMediaBackend *self, |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
81 | const gchar *sess_id, PurpleMediaCodec *codec); |
|
36318
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
82 | gboolean (*set_encryption_parameters) (PurpleMediaBackend *self, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
83 | const gchar *sess_id, const gchar *cipher, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
84 | const gchar *auth, const gchar *key, gsize key_len); |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
85 | gboolean (*set_decryption_parameters) (PurpleMediaBackend *self, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
86 | const gchar *sess_id, const gchar *participant, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
87 | const gchar *cipher, const gchar *auth, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
88 | const gchar *key, gsize key_len); |
|
40268
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
40230
diff
changeset
|
89 | gboolean (*set_require_encryption) (PurpleMediaBackend *self, |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
40230
diff
changeset
|
90 | const gchar *sess_id, const gchar *participant, |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
40230
diff
changeset
|
91 | gboolean require_encryption); |
|
41146
d1a4975ae036
Use fs_stream_set_transmitter_ht
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41083
diff
changeset
|
92 | void (*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:
31293
diff
changeset
|
93 | const gchar **(*get_available_params) (void); |
|
36312
6b4576edf2a6
Add out-of-band DTMF support and dialpad to use it
David Woodhouse <David.Woodhouse@intel.com>
parents:
31687
diff
changeset
|
94 | gboolean (*send_dtmf) (PurpleMediaBackend *self, |
|
6b4576edf2a6
Add out-of-band DTMF support and dialpad to use it
David Woodhouse <David.Woodhouse@intel.com>
parents:
31687
diff
changeset
|
95 | const gchar *sess_id, gchar dtmf, guint8 volume, |
|
6b4576edf2a6
Add out-of-band DTMF support and dialpad to use it
David Woodhouse <David.Woodhouse@intel.com>
parents:
31687
diff
changeset
|
96 | guint16 duration); |
|
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
|
97 | gboolean (*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
|
98 | const gchar *sess_id, const gchar *participant, gboolean send_rtcp_mux); |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
99 | }; |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
100 | |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
101 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
102 | * purple_media_backend_get_type: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
103 | * |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
104 | * Gets the media backend's GType. |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
105 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
106 | * Returns: The media backend's GType. |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
107 | */ |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
108 | GType 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
|
109 | |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
110 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
111 | * purple_media_backend_add_stream: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
112 | * @self: The backend to add the stream to. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
113 | * @sess_id: The session id of the stream to add. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
114 | * @who: The remote participant of the stream to add. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
115 | * @type: The media type and direction of the stream to add. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
116 | * @initiator: True if the local user initiated the stream. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
117 | * @transmitter: The string id of the tranmsitter to use. |
|
41146
d1a4975ae036
Use fs_stream_set_transmitter_ht
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41083
diff
changeset
|
118 | * @params: (element-type utf8 GValue) (transfer none): The additional |
|
d1a4975ae036
Use fs_stream_set_transmitter_ht
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41083
diff
changeset
|
119 | * parameters to pass when creating the stream. |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
120 | * |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
121 | * Creates and adds a stream to the media backend. |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
122 | * |
|
41083
590d533cf290
Fix several typos in libpurple
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40890
diff
changeset
|
123 | * Returns: True if the stream was successfully created, otherwise False. |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
124 | */ |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
125 | gboolean purple_media_backend_add_stream(PurpleMediaBackend *self, |
|
41146
d1a4975ae036
Use fs_stream_set_transmitter_ht
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41083
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:
41083
diff
changeset
|
127 | gboolean initiator, const gchar *transmitter, GHashTable *params); |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
128 | |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
129 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
130 | * purple_media_backend_add_remote_candidates: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
131 | * @self: The backend the stream is in. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
132 | * @sess_id: The session id associated with the stream. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
133 | * @participant: The participant associated with the stream. |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
134 | * @remote_candidates: (element-type PurpleMediaCandidate): The list of remote candidates to add. |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
135 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
136 | * Add remote candidates to a stream. |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
137 | */ |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
138 | void 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
|
139 | 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
|
140 | GList *remote_candidates); |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
141 | |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
142 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
143 | * purple_media_backend_codecs_ready: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
144 | * @self: The media backend the session is in. |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
145 | * @sess_id: The session id of the session to check. |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
146 | * |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
147 | * Get whether or not a session's codecs are ready. |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
148 | * |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
149 | * A codec is ready if all of the attributes and additional |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
150 | * parameters have been collected. |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
151 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
152 | * Returns: True if the codecs are ready, otherwise False. |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
153 | */ |
|
29597
22843326ee22
Add codecs_ready to the media backend interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
29590
diff
changeset
|
154 | gboolean 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
|
155 | const gchar *sess_id); |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
156 | |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
157 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
158 | * purple_media_backend_get_codecs: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
159 | * @self: The media backend the session is in. |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
160 | * @sess_id: The session id of the session to use. |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
161 | * |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
162 | * Gets the codec intersection list for a session. |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
163 | * |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
164 | * The intersection list consists of all codecs that are compatible |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
165 | * between the local and remote software. |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
166 | * |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
167 | * Returns: (transfer full) (element-type PurpleMediaCodec): The codec intersection list. |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
168 | */ |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
169 | GList *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
|
170 | const gchar *sess_id); |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
171 | |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
172 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
173 | * purple_media_backend_get_local_candidates: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
174 | * @self: The media backend the stream is in. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
175 | * @sess_id: The session id associated with the stream. |
|
35462
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
176 | * @participant: The participant associated with the stream. |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
177 | * |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
178 | * Gets the list of local candidates for a stream. |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
179 | * |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
180 | * Return Value: (transfer full) (element-type PurpleMediaCandidate): The list of local candidates. |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
181 | */ |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
182 | GList *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
|
183 | const gchar *sess_id, const gchar *participant); |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
184 | |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
185 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
186 | * purple_media_backend_set_remote_codecs: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
187 | * @self: The media backend the stream is in. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
188 | * @sess_id: The session id the stream is associated with. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
189 | * @participant: The participant the stream is associated with. |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
38632
diff
changeset
|
190 | * @codecs: (element-type PurpleMediaCodec): The list of remote codecs to set. |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
191 | * |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
192 | * Sets the remote codecs on a stream. |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
193 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
194 | * Returns: True if the remote codecs were set successfully, otherwise False. |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
195 | */ |
|
29588
a3fef46ce04a
Make the backend interface's set_remote_codecs function return gboolean.
Michael Ruprecht <maiku@pidgin.im>
parents:
29557
diff
changeset
|
196 | gboolean purple_media_backend_set_remote_codecs(PurpleMediaBackend *self, |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
197 | 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
|
198 | GList *codecs); |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
199 | |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
200 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
201 | * purple_media_backend_set_send_codec: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
202 | * @self: The media backend the session is in. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
203 | * @sess_id: The session id of the session to set the codec for. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
204 | * @codec: The codec to set. |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
205 | * |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
206 | * Sets which codec format to send media content in for a session. |
|
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
207 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
208 | * Returns: True if set successfully, otherwise False. |
|
29652
ab0489bbe42e
Add documentation to backend-iface.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
29597
diff
changeset
|
209 | */ |
|
29590
bec92b90acc9
Change the media backend interface's set_send_codec to return gboolean to
Michael Ruprecht <maiku@pidgin.im>
parents:
29588
diff
changeset
|
210 | gboolean purple_media_backend_set_send_codec(PurpleMediaBackend *self, |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
211 | 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
|
212 | |
|
31687
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31293
diff
changeset
|
213 | /** |
|
36314
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
214 | * purple_media_backend_set_encryption_parameters: |
|
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
215 | * @self: The media backend the session is in. |
|
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
216 | * @sess_id: The session id of the session to set parameters of. |
|
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
217 | * @cipher: The cipher to use to encrypt our media in the session. |
|
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
218 | * @auth: The algorithm to use to compute authentication codes for our media |
|
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
219 | * frames. |
|
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
220 | * @key: The encryption key. |
|
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
221 | * @key_len: Byte length of the encryption key. |
|
36318
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
222 | * |
|
36314
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
223 | * Sets the encryption parameters of our media in the session. |
|
36318
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
224 | */ |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
225 | gboolean purple_media_backend_set_encryption_parameters(PurpleMediaBackend *self, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
226 | const gchar *sess_id, const gchar *cipher, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
227 | const gchar *auth, const gchar *key, gsize key_len); |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
228 | |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
229 | /** |
|
36314
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
230 | * purple_media_backend_set_decryption_parameters: |
|
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
231 | * @self: The media backend the session is in. |
|
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
232 | * @sess_id: The session id of the session to set parameters of. |
|
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
233 | * @participant: The participant of the session to set parameters of. |
|
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
234 | * @cipher: The cipher to use to decrypt media coming from this session's |
|
36318
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
235 | * participant. |
|
36314
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
236 | * @auth: The algorithm to use for authentication of the media coming from |
|
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
237 | * the session's participant. |
|
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
238 | * @key: The decryption key. |
|
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
239 | * @key_len: Byte length of the decryption key. |
|
36318
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
240 | * |
|
36314
c6262630ed7c
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36309
diff
changeset
|
241 | * Sets the decryption parameters for a session participant's media. |
|
36318
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
242 | */ |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
243 | gboolean purple_media_backend_set_decryption_parameters(PurpleMediaBackend *self, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
244 | const gchar *sess_id, const gchar *participant, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
245 | const gchar *cipher, const gchar *auth, |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
246 | const gchar *key, gsize key_len); |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
247 | |
|
a0906e7a6bae
Implement media encryption
Jakub Adam <jakub.adam@ktknet.cz>
parents:
36312
diff
changeset
|
248 | /** |
|
40268
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
40230
diff
changeset
|
249 | * purple_media_backend_set_require_encryption: |
|
40273
a8cee989c2ab
Use gtk-doc comments (review pull request #632)
Fabrice Bellet <fabrice@bellet.info>
parents:
40268
diff
changeset
|
250 | * @self: The media object to find the session in. |
|
a8cee989c2ab
Use gtk-doc comments (review pull request #632)
Fabrice Bellet <fabrice@bellet.info>
parents:
40268
diff
changeset
|
251 | * @sess_id: The id of the session to set parameters of. |
|
a8cee989c2ab
Use gtk-doc comments (review pull request #632)
Fabrice Bellet <fabrice@bellet.info>
parents:
40268
diff
changeset
|
252 | * @participant: The participant of the session to set parameters of. |
|
a8cee989c2ab
Use gtk-doc comments (review pull request #632)
Fabrice Bellet <fabrice@bellet.info>
parents:
40268
diff
changeset
|
253 | * @require_encryption: TRUE if the media requires encryption. |
|
40268
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
40230
diff
changeset
|
254 | * |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
40230
diff
changeset
|
255 | * Sets whether a session participant's media requires encryption. |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
40230
diff
changeset
|
256 | */ |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
40230
diff
changeset
|
257 | gboolean purple_media_backend_set_require_encryption(PurpleMediaBackend *self, |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
40230
diff
changeset
|
258 | const gchar *sess_id, const gchar *participant, |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
40230
diff
changeset
|
259 | gboolean require_encryption); |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
40230
diff
changeset
|
260 | |
|
a7be471404ba
Port purple_media_set_require_encryption api
Fabrice Bellet <fabrice@bellet.info>
parents:
40230
diff
changeset
|
261 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
262 | * purple_media_backend_set_params: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
263 | * @self: The media backend to set the parameters on. |
|
41146
d1a4975ae036
Use fs_stream_set_transmitter_ht
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41083
diff
changeset
|
264 | * @params: (element-type utf8 GObject.Value) (transfer none): Hash table of |
|
d1a4975ae036
Use fs_stream_set_transmitter_ht
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41083
diff
changeset
|
265 | * parameters to pass to the backend. |
|
31687
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31293
diff
changeset
|
266 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
267 | * Sets various optional parameters of the media backend. |
|
31687
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31293
diff
changeset
|
268 | */ |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31293
diff
changeset
|
269 | void purple_media_backend_set_params(PurpleMediaBackend *self, |
|
41146
d1a4975ae036
Use fs_stream_set_transmitter_ht
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41083
diff
changeset
|
270 | GHashTable *params); |
|
31687
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31293
diff
changeset
|
271 | |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31293
diff
changeset
|
272 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
273 | * purple_media_backend_get_available_params: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
274 | * @self: The media backend |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
275 | * |
|
31687
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31293
diff
changeset
|
276 | * Gets the list of optional parameters supported by the media backend. |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31293
diff
changeset
|
277 | * The list should NOT be freed. |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31293
diff
changeset
|
278 | * |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
279 | * Return Value: (transfer none): NULL-terminated array of names of supported parameters. |
|
31687
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31293
diff
changeset
|
280 | */ |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31293
diff
changeset
|
281 | const gchar **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:
31293
diff
changeset
|
282 | |
|
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
|
283 | /** |
|
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
|
284 | * purple_media_backend_set_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
|
285 | * @self: The media backend the session is in. |
|
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
|
286 | * @sess_id: The session id of the session to set the rtcp-mux option to |
|
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
|
287 | * @participant: The participant the stream is associated with. |
|
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
|
288 | * @send_rtcp_mux: Whether or not to enable 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
|
289 | * |
|
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
|
290 | * Controls whether or not the RTCP should be muxed with the RTP |
|
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
|
291 | * |
|
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
|
292 | * Returns: True if set successfully, otherwise False. |
|
37757
270e9f74aad0
Document a few more symbols that were added in 2.11.0
Gary Kramlich <grim@reaperworld.com>
parents:
36321
diff
changeset
|
293 | * |
|
40230
620a23d172cb
Add Since tags for 2.11.0.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40013
diff
changeset
|
294 | * Since: 2.11.0 |
|
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
|
295 | */ |
|
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
|
296 | gboolean 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
|
297 | 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
|
298 | |
|
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
|
299 | |
|
29555
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
300 | G_END_DECLS |
|
15bb28ca4cf6
Add a media backend interface to handle different backends in addition to
Michael Ruprecht <maiku@pidgin.im>
parents:
diff
changeset
|
301 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
302 | #endif /* PURPLE_MEDIA_BACKEND_IFACE_H */ |