Thu, 29 Feb 2024 21:32:16 -0600
Remove the micro version from since tags for libpurple part 1
This has been split up into multiple commits because otherwise it's just too
many files.
Testing Done:
Compiled
Reviewed at https://reviews.imfreedom.org/r/2988/
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42395
diff
changeset
|
1 | /* |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42395
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42395
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
| 19883 | 4 | * |
| 5 | * Purple is the legal property of its developers, whose names are too numerous | |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42395
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 19883 | 7 | * source distribution. |
| 8 | * | |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42395
diff
changeset
|
9 | * This library is free software; you can redistribute it and/or modify it |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42395
diff
changeset
|
10 | * under the terms of the GNU General Public License as published by the Free |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42395
diff
changeset
|
11 | * Software Foundation; either version 2 of the License, or (at your option) |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42395
diff
changeset
|
12 | * any later version. |
| 19883 | 13 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42395
diff
changeset
|
14 | * This library is distributed in the hope that it will be useful, but WITHOUT |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42395
diff
changeset
|
15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42395
diff
changeset
|
16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42395
diff
changeset
|
17 | * more details. |
| 19883 | 18 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42395
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License along with |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42395
diff
changeset
|
20 | * this library; if not, see <https://www.gnu.org/licenses/>. |
| 19883 | 21 | */ |
| 22 | ||
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
39659
diff
changeset
|
23 | #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:
39659
diff
changeset
|
24 | # 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:
39659
diff
changeset
|
25 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
39659
diff
changeset
|
26 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39551
diff
changeset
|
27 | #ifndef PURPLE_MEDIA_MANAGER_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39551
diff
changeset
|
28 | #define PURPLE_MEDIA_MANAGER_H |
| 19883 | 29 | |
| 30 | #include <glib.h> | |
| 31 | #include <glib-object.h> | |
| 32 | ||
|
26649
1a6c4fd19355
Add PURPLE to the media header sentinels and reorder includes to fix building gf2
Paul Aurich <darkrain42@pidgin.im>
parents:
26648
diff
changeset
|
33 | typedef struct _PurpleMediaManager PurpleMediaManager; |
|
34993
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
34 | |
| 19883 | 35 | #include "media.h" |
|
42344
c51d37734155
Rename account.[ch] to purpleaccount.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
36 | #include "purpleaccount.h" |
|
42393
408884ab47a9
Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
37 | #include "purpleversion.h" |
| 19883 | 38 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
39 | #define PURPLE_TYPE_MEDIA_MANAGER purple_media_manager_get_type() |
|
34993
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
40 | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
41 | /** |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
42 | * PurpleMediaManagerClass: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
43 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
44 | * The media manager class. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
45 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
46 | * Since: 2.6 |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
47 | */ |
|
34993
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
48 | struct _PurpleMediaManagerClass |
|
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
49 | { |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
50 | GObjectClass parent_class; |
|
34993
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
51 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34993
diff
changeset
|
52 | /*< private >*/ |
|
34993
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
53 | void (*purple_reserved1)(void); |
|
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
54 | void (*purple_reserved2)(void); |
|
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
55 | void (*purple_reserved3)(void); |
|
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
56 | void (*purple_reserved4)(void); |
|
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
57 | }; |
|
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
58 | |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
59 | /** |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
60 | * PurpleMediaAppDataCallbacks: |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
61 | * @readable: Called when the stream has received data and is readable. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
62 | * @writable: Called when the stream has become writable or has stopped being |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
63 | * writable. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
64 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
65 | * A set of callbacks that can be installed on an Application data session with |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
66 | * purple_media_manager_set_application_data_callbacks() |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
67 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
68 | * Once installed the @readable callback will get called as long as data is |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
69 | * available to read, so the data must be read completely. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
70 | * The @writable callback will only be called when the writable state of the |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
71 | * stream changes. The @writable argument defines whether the stream has |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
72 | * become writable or stopped being writable. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
73 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
74 | * Since: 2.6 |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
75 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
76 | PURPLE_AVAILABLE_TYPE_IN_2_6 |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
77 | typedef struct { |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
78 | void (*readable) (PurpleMediaManager *manager, PurpleMedia *media, |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
79 | const gchar *session_id, const gchar *participant, gpointer user_data); |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
80 | void (*writable) (PurpleMediaManager *manager, PurpleMedia *media, |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
81 | const gchar *session_id, const gchar *participant, gboolean writable, |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
82 | gpointer user_data); |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
83 | } PurpleMediaAppDataCallbacks; |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
84 | |
| 19883 | 85 | G_BEGIN_DECLS |
| 86 | ||
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
87 | /**************************************************************************/ |
| 35472 | 88 | /* Media Manager API */ |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
89 | /**************************************************************************/ |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
90 | |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
91 | PURPLE_AVAILABLE_IN_2_6 |
|
39551
9b3bab123025
Use G_DECLARE for media objects.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38640
diff
changeset
|
92 | G_DECLARE_FINAL_TYPE(PurpleMediaManager, purple_media_manager, PURPLE, |
|
9b3bab123025
Use G_DECLARE for media objects.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38640
diff
changeset
|
93 | MEDIA_MANAGER, GObject) |
| 19883 | 94 | |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
95 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
96 | * purple_media_manager_get: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
97 | * |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
98 | * Gets the "global" media manager object. It's created if it doesn't already exist. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
99 | * |
|
38638
5ba5a42683c6
This is not in fact transfer full
Gary Kramlich <grim@reaperworld.com>
parents:
38632
diff
changeset
|
100 | * Returns: (transfer none): The "global" instance of the media manager object. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
101 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
102 | * Since: 2.6 |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
103 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
104 | PURPLE_AVAILABLE_IN_2_6 |
| 19889 | 105 | PurpleMediaManager *purple_media_manager_get(void); |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
106 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
107 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
108 | * purple_media_manager_create_media: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
109 | * @manager: The media manager to create the session under. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
110 | * @account: The account to create the session on. |
|
37217
6da7cadb323f
Remove Farsight support (ok'd by elb)
Michael McConville <mmcconville@mykolab.com>
parents:
37163
diff
changeset
|
111 | * @conference_type: The conference type to feed into Farstream. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
112 | * @remote_user: The remote user to initiate the session with. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
113 | * @initiator: TRUE if the local user is the initiator of this media call, FALSE otherwise. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
114 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
115 | * Creates a media session. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
116 | * |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
37217
diff
changeset
|
117 | * Returns: (transfer full): A newly created media session. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
118 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
119 | * Since: 2.6 |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
120 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
121 | PURPLE_AVAILABLE_IN_2_6 |
| 19883 | 122 | PurpleMedia *purple_media_manager_create_media(PurpleMediaManager *manager, |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
123 | PurpleAccount *account, |
|
23697
299bafcd8eb8
Updates voice and video to use Farsight 2, gets XMPP voice conferences
Michael Ruprecht <maiku@pidgin.im>
parents:
22074
diff
changeset
|
124 | const char *conference_type, |
|
26187
3b3059a7c091
Add initiator property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26150
diff
changeset
|
125 | const char *remote_user, |
|
3b3059a7c091
Add initiator property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26150
diff
changeset
|
126 | gboolean initiator); |
| 19883 | 127 | |
|
26115
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
128 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
129 | * purple_media_manager_get_media: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
130 | * @manager: The media manager to get all of the sessions from. |
|
26115
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
131 | * |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
132 | * Gets all of the media sessions. |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
133 | * |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
37217
diff
changeset
|
134 | * Returns: (transfer none) (element-type PurpleMedia): A list of all the media sessions. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
135 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
136 | * Since: 2.6 |
|
26115
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
137 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
138 | PURPLE_AVAILABLE_IN_2_6 |
|
26115
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
139 | GList *purple_media_manager_get_media(PurpleMediaManager *manager); |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
140 | |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
141 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
142 | * purple_media_manager_get_media_by_account: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
143 | * @manager: The media manager to get the sessions from. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
144 | * @account: The account the sessions are on. |
|
26329
6e390d9ea49a
Added purple_media_manager_get_media_by_connection.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
145 | * |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
146 | * Gets all of the media sessions for a given account. |
|
26329
6e390d9ea49a
Added purple_media_manager_get_media_by_connection.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
147 | * |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
37217
diff
changeset
|
148 | * Returns: (transfer container) (element-type PurpleMedia): A list of the media sessions on the given account. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
149 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
150 | * Since: 2.6 |
|
26329
6e390d9ea49a
Added purple_media_manager_get_media_by_connection.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
151 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
152 | PURPLE_AVAILABLE_IN_2_6 |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
153 | GList *purple_media_manager_get_media_by_account( |
|
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
154 | PurpleMediaManager *manager, PurpleAccount *account); |
|
26329
6e390d9ea49a
Added purple_media_manager_get_media_by_connection.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
155 | |
|
6e390d9ea49a
Added purple_media_manager_get_media_by_connection.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
156 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
157 | * purple_media_manager_remove_media: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
158 | * @manager: The media manager to remove the media session from. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
159 | * @media: The media session to remove. |
|
26115
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
160 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
161 | * Removes a media session from the media manager. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
162 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
163 | * Since: 2.6 |
|
26115
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
164 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
165 | PURPLE_AVAILABLE_IN_2_6 |
|
26115
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
166 | void |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
167 | purple_media_manager_remove_media(PurpleMediaManager *manager, |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
168 | PurpleMedia *media); |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
169 | |
|
26150
951503fc5456
Add purple_media_manager_get_element.
Michael Ruprecht <maiku@pidgin.im>
parents:
26143
diff
changeset
|
170 | /** |
|
36328
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
171 | * purple_media_manager_create_private_media: |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
172 | * @manager: The media manager to create the session under. |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
173 | * @account: The account to create the session on. |
|
37217
6da7cadb323f
Remove Farsight support (ok'd by elb)
Michael McConville <mmcconville@mykolab.com>
parents:
37163
diff
changeset
|
174 | * @conference_type: The conference type to feed into Farstream. |
|
36328
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
175 | * @remote_user: The remote user to initiate the session with. |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
176 | * @initiator: TRUE if the local user is the initiator of this media call, FALSE otherwise. |
|
36331
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
177 | * |
|
36328
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
178 | * Creates a private media session. |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
179 | * A private media session is a media session which is private to the caller. It is |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
180 | * meant to be used by plugins to create a media session that the front-end does not |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
181 | * get notified about. It is useful especially for sessions with a type of |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
182 | * PURPLE_MEDIA_APPLICATION which the front-end wouldn't know how to handle. |
|
36331
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
183 | * |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
37217
diff
changeset
|
184 | * Returns: (transfer full): A newly created media session. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
185 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
186 | * Since: 2.6 |
|
36331
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
187 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
188 | PURPLE_AVAILABLE_IN_2_6 |
|
36331
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
189 | PurpleMedia *purple_media_manager_create_private_media( |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
190 | PurpleMediaManager *manager, |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
191 | PurpleAccount *account, |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
192 | const char *conference_type, |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
193 | const char *remote_user, |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
194 | gboolean initiator); |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
195 | |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
196 | /** |
|
36328
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
197 | * purple_media_manager_get_private_media: |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
198 | * @manager: The media manager to get all of the sessions from. |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
199 | * |
|
36331
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
200 | * Gets all of the private media sessions. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
201 | * |
|
38640
c57d0def5375
Fix an invalid transfer annotation
Gary Kramlich <grim@reaperworld.com>
parents:
38639
diff
changeset
|
202 | * Returns: (transfer none) (element-type PurpleMedia): A list of all the private media sessions. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
203 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
204 | * Since: 2.11 |
|
36331
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
205 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
206 | PURPLE_AVAILABLE_IN_2_11 |
|
36331
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
207 | GList *purple_media_manager_get_private_media(PurpleMediaManager *manager); |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
208 | |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
209 | /** |
|
36328
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
210 | * purple_media_manager_get_private_media_by_account: |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
211 | * @manager: The media manager to get the sessions from. |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
212 | * @account: The account the sessions are on. |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
213 | * |
|
36331
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
214 | * Gets all of the private media sessions for a given account. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
215 | * |
|
38639
d92081c41a9e
A few more transfer updates
Gary Kramlich <grim@reaperworld.com>
parents:
38638
diff
changeset
|
216 | * Returns: (transfer container) (element-type PurpleMedia): A list of the private media sessions on the given account. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
217 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
218 | * Since: 2.11 |
|
36331
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
219 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
220 | PURPLE_AVAILABLE_IN_2_11 |
|
36331
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
221 | GList *purple_media_manager_get_private_media_by_account( |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
222 | PurpleMediaManager *manager, PurpleAccount *account); |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
223 | |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
224 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
225 | * purple_media_manager_create_output_window: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
226 | * @manager: Manager the output windows are registered with. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
227 | * @media: Media session the output windows are registered for. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
228 | * @session_id: The session the output windows are registered with. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
229 | * @participant: The participant the output windows are registered with. |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
230 | * |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
231 | * Signals that output windows should be created for the chosen stream. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
232 | * |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
233 | * This shouldn't be called outside of mediamanager.c and media.c |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
234 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
235 | * Returns: TRUE if it succeeded, FALSE if it failed. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
236 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
237 | * Since: 2.6 |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
238 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
239 | PURPLE_AVAILABLE_IN_2_6 |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
240 | gboolean purple_media_manager_create_output_window( |
|
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
241 | PurpleMediaManager *manager, PurpleMedia *media, |
|
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
242 | const gchar *session_id, const gchar *participant); |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
243 | |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
244 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
245 | * purple_media_manager_set_output_window: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
246 | * @manager: The manager to register the output window with. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
247 | * @media: The media instance to find the stream in. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
248 | * @session_id: The session the stream is associated with. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
249 | * @participant: The participant the stream is associated with. |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
250 | * |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
251 | * Registers a video output window to be created for a given stream. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
252 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
253 | * Returns: A unique ID to the registered output window, 0 if it failed. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
254 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
255 | * Since: 2.6 |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
256 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
257 | PURPLE_AVAILABLE_IN_2_6 |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
258 | gulong purple_media_manager_set_output_window(PurpleMediaManager *manager, |
|
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
259 | PurpleMedia *media, const gchar *session_id, |
|
40547
86e0c5080a58
vv: Switch to GTK sinks by default.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40524
diff
changeset
|
260 | const gchar *participant); |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
261 | |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
262 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
263 | * purple_media_manager_remove_output_window: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
264 | * @manager: The manager the output window was registered with. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
265 | * @output_window_id: The ID of the output window. |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
266 | * |
|
41083
590d533cf290
Fix several typos in libpurple
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40547
diff
changeset
|
267 | * Remove a previously registered output window. |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
268 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
269 | * Returns: TRUE if it found the output window and was successful, else FALSE. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
270 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
271 | * Since: 2.6 |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
272 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
273 | PURPLE_AVAILABLE_IN_2_6 |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
274 | gboolean purple_media_manager_remove_output_window( |
|
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
275 | PurpleMediaManager *manager, gulong output_window_id); |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
276 | |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
277 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
278 | * purple_media_manager_remove_output_windows: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
279 | * @manager: The manager the output windows were registered with. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
280 | * @media: The media instance the output windows were registered for. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
281 | * @session_id: The session the output windows were registered for. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
282 | * @participant: The participant the output windows were registered for. |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
283 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
284 | * Remove all output windows for a given conference/session/participant/stream. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
285 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
286 | * Since: 2.6 |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
287 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
288 | PURPLE_AVAILABLE_IN_2_6 |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
289 | void purple_media_manager_remove_output_windows( |
|
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
290 | PurpleMediaManager *manager, PurpleMedia *media, |
|
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
291 | const gchar *session_id, const gchar *participant); |
|
26520
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
292 | |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
293 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
294 | * purple_media_manager_set_ui_caps: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
295 | * @manager: The manager to set the caps on. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
296 | * @caps: The caps to set. |
|
26520
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
297 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
298 | * Sets which media caps the UI supports. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
299 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
300 | * Since: 2.6 |
|
26520
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
301 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
302 | PURPLE_AVAILABLE_IN_2_6 |
|
26520
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
303 | void purple_media_manager_set_ui_caps(PurpleMediaManager *manager, |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
304 | PurpleMediaCaps caps); |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
305 | |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
306 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
307 | * purple_media_manager_get_ui_caps: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
308 | * @manager: The manager to get caps from. |
|
26520
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
309 | * |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
310 | * Gets which media caps the UI supports. |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
311 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
312 | * Returns: caps The caps retrieved. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
313 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
314 | * Since: 2.6 |
|
26520
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
315 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
316 | PURPLE_AVAILABLE_IN_2_6 |
|
26520
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
317 | PurpleMediaCaps purple_media_manager_get_ui_caps(PurpleMediaManager *manager); |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
318 | |
|
29620
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
319 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
320 | * purple_media_manager_set_backend_type: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
321 | * @manager: The manager to set the caps on. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
322 | * @backend_type: The media backend type to use. |
|
29620
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
323 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
324 | * Sets which media backend type media objects will use. |
|
42393
408884ab47a9
Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
325 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
326 | * Since: 2.7 |
|
29620
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
327 | */ |
|
42393
408884ab47a9
Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
328 | PURPLE_AVAILABLE_IN_2_7 |
|
29620
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
329 | void purple_media_manager_set_backend_type(PurpleMediaManager *manager, |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
330 | GType backend_type); |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
331 | |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
332 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
333 | * purple_media_manager_get_backend_type: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
334 | * @manager: The manager to get the media backend type from. |
|
29620
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
335 | * |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
336 | * Gets which media backend type media objects will use. |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
337 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
338 | * Returns: The type of media backend type media objects will use. |
|
42393
408884ab47a9
Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
339 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
340 | * Since: 2.7 |
|
29620
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
341 | */ |
|
42393
408884ab47a9
Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
342 | PURPLE_AVAILABLE_IN_2_7 |
|
29620
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
343 | GType purple_media_manager_get_backend_type(PurpleMediaManager *manager); |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
344 | |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
345 | /** |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
346 | * purple_media_manager_set_application_data_callbacks: |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
347 | * @manager: The manager to register the callbacks with. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
348 | * @media: The media instance to register the callbacks with. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
349 | * @session_id: The session to register the callbacks with. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
350 | * @participant: The participant to register the callbacks with. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
351 | * @callbacks: The callbacks to be set on the session. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
352 | * @user_data: a user_data argument for the callbacks. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
353 | * @notify: a destroy notify function. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
354 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
355 | * Set callbacks on a session to be called when the stream becomes writable |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
356 | * or readable for media sessions of type #PURPLE_MEDIA_APPLICATION |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
357 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
358 | * Since: 2.6 |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
359 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
360 | PURPLE_AVAILABLE_IN_2_6 |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
361 | void purple_media_manager_set_application_data_callbacks( |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
362 | PurpleMediaManager *manager, PurpleMedia *media, const gchar *session_id, |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
363 | const gchar *participant, PurpleMediaAppDataCallbacks *callbacks, |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
364 | gpointer user_data, GDestroyNotify notify); |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
365 | |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
366 | /** |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
367 | * purple_media_manager_send_application_data: |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
368 | * @manager: The manager to send data with. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
369 | * @media: The media instance to which the session belongs. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
370 | * @session_id: The session to send data to. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
371 | * @participant: The participant to send data to. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
372 | * @buffer: The buffer of data to send. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
373 | * @size: The size of @buffer |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
374 | * @blocking: Whether to block until the data was send or not. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
375 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
376 | * Sends a buffer of data to a #PURPLE_MEDIA_APPLICATION session. |
|
41083
590d533cf290
Fix several typos in libpurple
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40547
diff
changeset
|
377 | * If @blocking is set, unless an error occurred, the function will not return |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
378 | * until the data has been flushed into the network. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
379 | * If the stream is not writable, the data will be queued. It is the |
|
41083
590d533cf290
Fix several typos in libpurple
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40547
diff
changeset
|
380 | * responsibility of the user to stop sending data when the stream isn't |
|
590d533cf290
Fix several typos in libpurple
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40547
diff
changeset
|
381 | * writable anymore. It is also the responsibility of the user to only start |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
382 | * sending data after the stream has been configured correctly (encryption |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
383 | * parameters for example). |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
384 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
385 | * Returns: Number of bytes sent or -1 in case of error. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
386 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
387 | * Since: 2.6 |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
388 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
389 | PURPLE_AVAILABLE_IN_2_6 |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
390 | gint purple_media_manager_send_application_data ( |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
391 | PurpleMediaManager *manager, PurpleMedia *media, const gchar *session_id, |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
392 | const gchar *participant, gpointer buffer, guint size, gboolean blocking); |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
393 | |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
394 | /** |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
395 | * purple_media_manager_receive_application_data: |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
396 | * @manager: The manager to receive data with. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
397 | * @media: The media instance to which the session belongs. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
398 | * @session_id: The session to receive data from. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
399 | * @participant: The participant to receive data from. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
400 | * @buffer: The buffer to receive data into. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
401 | * @max_size: The max_size of @buffer |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
402 | * @blocking: Whether to block until the buffer is entirely filled or return |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
403 | * with currently available data. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
404 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
405 | * Receive a buffer of data from a #PURPLE_MEDIA_APPLICATION session. |
|
41083
590d533cf290
Fix several typos in libpurple
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40547
diff
changeset
|
406 | * If @blocking is set, unless an error occurred, the function will not return |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
407 | * until @max_size bytes are read. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
408 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
409 | * Returns: Number of bytes received or -1 in case of error. |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
410 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
411 | * Since: 2.6 |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
412 | */ |
|
42395
6c7382131dbe
Export symbols and add Since tags to media API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42393
diff
changeset
|
413 | PURPLE_AVAILABLE_IN_2_6 |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
414 | gint purple_media_manager_receive_application_data ( |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
415 | PurpleMediaManager *manager, PurpleMedia *media, const gchar *session_id, |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
416 | const gchar *participant, gpointer buffer, guint max_size, |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
417 | gboolean blocking); |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
418 | |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
419 | /*}@*/ |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
420 | |
| 19883 | 421 | G_END_DECLS |
| 422 | ||
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39551
diff
changeset
|
423 | #endif /* PURPLE_MEDIA_MANAGER_H */ |