Wed, 19 Oct 2016 13:00:17 -0400
win32: Explicitly use ANSI versions of the WSALookup APIs
| 19883 | 1 | /** |
| 19889 | 2 | * @file mediamanager.h Media Manager API |
| 19883 | 3 | * @ingroup core |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
4 | */ |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
5 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
6 | /* purple |
| 19883 | 7 | * |
| 8 | * Purple is the legal property of its developers, whose names are too numerous | |
| 9 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 10 | * source distribution. | |
| 11 | * | |
| 12 | * This program is free software; you can redistribute it and/or modify | |
| 13 | * it under the terms of the GNU General Public License as published by | |
| 14 | * the Free Software Foundation; either version 2 of the License, or | |
| 15 | * (at your option) any later version. | |
| 16 | * | |
| 17 | * This program is distributed in the hope that it will be useful, | |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 20 | * GNU General Public License for more details. | |
| 21 | * | |
| 22 | * You should have received a copy of the GNU General Public License | |
| 23 | * along with this program; if not, write to the Free Software | |
|
28321
c8d617c408ab
Update various header copyrights thanks to licensecheck.
Paul Aurich <darkrain42@pidgin.im>
parents:
26858
diff
changeset
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 19883 | 25 | */ |
| 26 | ||
|
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
|
27 | #ifndef _PURPLE_MEDIA_MANAGER_H_ |
|
1a6c4fd19355
Add PURPLE to the media header sentinels and reorder includes to fix building gf2
Paul Aurich <darkrain42@pidgin.im>
parents:
26648
diff
changeset
|
28 | #define _PURPLE_MEDIA_MANAGER_H_ |
| 19883 | 29 | |
| 30 | #include <glib.h> | |
| 31 | #include <glib-object.h> | |
| 32 | ||
|
28420
c7403b581af6
Fix some docs warnings. Thanks to darkrain for pointing them out.
Michael Ruprecht <maiku@pidgin.im>
parents:
28321
diff
changeset
|
33 | /** An opaque structure representing a group of (usually all) media calls. */ |
|
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
|
34 | typedef struct _PurpleMediaManager PurpleMediaManager; |
|
28420
c7403b581af6
Fix some docs warnings. Thanks to darkrain for pointing them out.
Michael Ruprecht <maiku@pidgin.im>
parents:
28321
diff
changeset
|
35 | /** The GObject class structure of the PurpleMediaManager object. */ |
|
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
|
36 | typedef struct _PurpleMediaManagerClass PurpleMediaManagerClass; |
|
1a6c4fd19355
Add PURPLE to the media header sentinels and reorder includes to fix building gf2
Paul Aurich <darkrain42@pidgin.im>
parents:
26648
diff
changeset
|
37 | |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
38 | #include "account.h" |
| 19883 | 39 | #include "media.h" |
| 40 | ||
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
41 | /** |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
42 | * PurpleMediaAppDataCallbacks: |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
43 | * @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
|
44 | * @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
|
45 | * writable. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
46 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
47 | * 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
|
48 | * purple_media_manager_set_application_data_callbacks() |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
49 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
50 | * 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
|
51 | * 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
|
52 | * 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
|
53 | * 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
|
54 | * become writable or stopped being writable. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
55 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
56 | */ |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
57 | typedef struct { |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
58 | void (*readable) (PurpleMediaManager *manager, PurpleMedia *media, |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
59 | 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
|
60 | void (*writable) (PurpleMediaManager *manager, PurpleMedia *media, |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
61 | 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
|
62 | gpointer user_data); |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
63 | } PurpleMediaAppDataCallbacks; |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
64 | |
| 19883 | 65 | G_BEGIN_DECLS |
| 66 | ||
| 67 | #define PURPLE_TYPE_MEDIA_MANAGER (purple_media_manager_get_type()) | |
| 68 | #define PURPLE_MEDIA_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_MEDIA_MANAGER, PurpleMediaManager)) | |
| 69 | #define PURPLE_MEDIA_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_MEDIA_MANAGER, PurpleMediaManagerClass)) | |
| 70 | #define PURPLE_IS_MEDIA_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_MEDIA_MANAGER)) | |
| 71 | #define PURPLE_IS_MEDIA_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_MEDIA_MANAGER)) | |
| 72 | #define PURPLE_MEDIA_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_MEDIA_MANAGER, PurpleMediaManagerClass)) | |
| 73 | ||
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
74 | #ifdef __cplusplus |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
75 | extern "C" { |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
76 | #endif |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
77 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
78 | /**************************************************************************/ |
| 26858 | 79 | /** @name Media Manager API */ |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
80 | /**************************************************************************/ |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
81 | /*@{*/ |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
82 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
83 | /** |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
84 | * Gets the media manager's GType. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
85 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
86 | * @return The media manager's GType. |
|
26648
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
87 | * |
|
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
88 | * @since 2.6.0 |
|
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 | GType purple_media_manager_get_type(void); |
| 19883 | 91 | |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
92 | /** |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
93 | * 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
|
94 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
95 | * @return The "global" instance of the media manager object. |
|
26648
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
96 | * |
|
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
97 | * @since 2.6.0 |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
98 | */ |
| 19889 | 99 | 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
|
100 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
101 | /** |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
102 | * Creates a media session. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
103 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
104 | * @param manager The media manager to create the session under. |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
105 | * @param account The account to create the session on. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
106 | * @param conference_type The conference type to feed into Farsight2. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
107 | * @param remote_user The remote user to initiate the session with. |
|
28420
c7403b581af6
Fix some docs warnings. Thanks to darkrain for pointing them out.
Michael Ruprecht <maiku@pidgin.im>
parents:
28321
diff
changeset
|
108 | * @param 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
|
109 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
110 | * @return A newly created media session. |
|
26648
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
111 | * |
|
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
112 | * @since 2.6.0 |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
113 | */ |
| 19883 | 114 | 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
|
115 | 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
|
116 | const char *conference_type, |
|
26187
3b3059a7c091
Add initiator property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26150
diff
changeset
|
117 | const char *remote_user, |
|
3b3059a7c091
Add initiator property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26150
diff
changeset
|
118 | gboolean initiator); |
| 19883 | 119 | |
|
26115
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
120 | /** |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
121 | * Gets all of the media sessions. |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
122 | * |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
123 | * @param manager The media manager to get all of the sessions from. |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
124 | * |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
125 | * @return A list of all the media sessions. |
|
26648
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
126 | * |
|
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
127 | * @since 2.6.0 |
|
26115
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
128 | */ |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
129 | 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
|
130 | |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
131 | /** |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
132 | * 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
|
133 | * |
|
6e390d9ea49a
Added purple_media_manager_get_media_by_connection.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
134 | * @param manager The media manager to get the sessions from. |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
135 | * @param 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
|
136 | * |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
137 | * @return A list of the media sessions on the given account. |
|
26648
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
138 | * |
|
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
139 | * @since 2.6.0 |
|
26329
6e390d9ea49a
Added purple_media_manager_get_media_by_connection.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
140 | */ |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
141 | 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
|
142 | PurpleMediaManager *manager, PurpleAccount *account); |
|
26329
6e390d9ea49a
Added purple_media_manager_get_media_by_connection.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
143 | |
|
6e390d9ea49a
Added purple_media_manager_get_media_by_connection.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
144 | /** |
|
26115
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
145 | * Removes a media session from the media manager. |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
146 | * |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
147 | * @param manager The media manager to remove the media session from. |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
148 | * @param media The media session to remove. |
|
26648
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
149 | * |
|
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
150 | * @since 2.6.0 |
|
26115
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
151 | */ |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
152 | void |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
153 | 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
|
154 | PurpleMedia *media); |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
155 | |
|
26150
951503fc5456
Add purple_media_manager_get_element.
Michael Ruprecht <maiku@pidgin.im>
parents:
26143
diff
changeset
|
156 | /** |
|
36331
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
157 | * Creates a private media session. A private media session is a |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
158 | * media session which is private to the caller. It is meant to be |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
159 | * used by plugins to create a media session that the front-end does |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
160 | * not get notified about. It is useful especially for sessions with a |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
161 | * type of PURPLE_MEDIA_APPLICATION which the front-end wouldn't know |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
162 | * how to handle. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
163 | * |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
164 | * @param manager The media manager to create the session under. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
165 | * @param account The account to create the session on. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
166 | * @param conference_type The conference type to feed into Farsight2. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
167 | * @param remote_user The remote user to initiate the session with. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
168 | * @param initiator TRUE if the local user is the initiator of this media |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
169 | * call, FALSE otherwise. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
170 | * |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
171 | * @return A newly created media session. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
172 | * |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
173 | * @since 2.11.0 |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
174 | */ |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
175 | PurpleMedia *purple_media_manager_create_private_media( |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
176 | PurpleMediaManager *manager, |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
177 | PurpleAccount *account, |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
178 | const char *conference_type, |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
179 | const char *remote_user, |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
180 | gboolean initiator); |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
181 | |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
182 | /** |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
183 | * Gets all of the private media sessions. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
184 | * |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
185 | * @param manager The media manager to get all of the sessions from. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
186 | * |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
187 | * @return A list of all the private media sessions. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
188 | * |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
189 | * @since 2.11.0 |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
190 | */ |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
191 | GList *purple_media_manager_get_private_media(PurpleMediaManager *manager); |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
192 | |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
193 | /** |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
194 | * 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
|
195 | * |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
196 | * @param manager The media manager to get the sessions from. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
197 | * @param account The account the sessions are on. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
198 | * |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
199 | * @return A list of the private media sessions on the given account. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
200 | * |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
201 | * @since 2.11.0 |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
202 | */ |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
203 | GList *purple_media_manager_get_private_media_by_account( |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
204 | PurpleMediaManager *manager, PurpleAccount *account); |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
205 | |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
206 | /** |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
207 | * 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
|
208 | * |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
209 | * 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
|
210 | * |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
211 | * @param manager Manager the output windows are registered with. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
212 | * @param media Media session the output windows are registered for. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
213 | * @param session_id The session the output windows are registered with. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
214 | * @param participant The participant the output windows are registered with. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
215 | * |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
216 | * @return TRUE if it succeeded, FALSE if it failed. |
|
26648
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
217 | * |
|
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
218 | * @since 2.6.0 |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
219 | */ |
|
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
220 | 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
|
221 | 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
|
222 | const gchar *session_id, const gchar *participant); |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
223 | |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
224 | /** |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
225 | * 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
|
226 | * |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
227 | * @param manager The manager to register the output window with. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
228 | * @param media The media instance to find the stream in. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
229 | * @param session_id The session the stream is associated with. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
230 | * @param participant The participant the stream is associated with. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
231 | * @param window_id The window ID to embed the video in. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
232 | * |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
233 | * @return A unique ID to the registered output window, 0 if it failed. |
|
26648
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
234 | * |
|
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
235 | * @since 2.6.0 |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
236 | */ |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
237 | 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
|
238 | PurpleMedia *media, const gchar *session_id, |
|
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
239 | const gchar *participant, gulong window_id); |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
240 | |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
241 | /** |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
242 | * Remove a previously registerd output window. |
|
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 | * @param manager The manager the output window was registered with. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
245 | * @param output_window_id The ID of the output window. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
246 | * |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
247 | * @return TRUE if it found the output window and was successful, else FALSE. |
|
26648
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
248 | * |
|
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
249 | * @since 2.6.0 |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
250 | */ |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
251 | 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
|
252 | PurpleMediaManager *manager, gulong output_window_id); |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
253 | |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
254 | /** |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
255 | * Remove all output windows for a given conference/session/participant/stream. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
256 | * |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
257 | * @param manager The manager the output windows were registered with. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
258 | * @param media The media instance the output windows were registered for. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
259 | * @param session_id The session the output windows were registered for. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
260 | * @param participant The participant the output windows were registered for. |
|
26648
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
261 | * |
|
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
262 | * @since 2.6.0 |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
263 | */ |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
264 | 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
|
265 | 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
|
266 | 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
|
267 | |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
268 | /** |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
269 | * Sets which media caps the UI supports. |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
270 | * |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
271 | * @param manager The manager to set the caps on. |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
272 | * @param caps The caps to set. |
|
26648
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
273 | * |
|
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
274 | * @since 2.6.0 |
|
26520
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
275 | */ |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
276 | 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
|
277 | PurpleMediaCaps caps); |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
278 | |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
279 | /** |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
280 | * 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
|
281 | * |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
282 | * @param manager The manager to get caps from. |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
283 | * |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
284 | * @return caps The caps retrieved. |
|
26648
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
285 | * |
|
1a733d58d74a
Even more @since tags, because Maiku's watching...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26614
diff
changeset
|
286 | * @since 2.6.0 |
|
26520
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
287 | */ |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
288 | 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
|
289 | |
|
29620
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
290 | /** |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
291 | * Sets 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
|
292 | * |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
293 | * @param manager The manager to set the caps on. |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
294 | * @param backend_type The media backend type to use. |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
295 | * |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
296 | * @since 2.7.0 |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
297 | */ |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
298 | 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
|
299 | 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
|
300 | |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
301 | /** |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
302 | * 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
|
303 | * |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
304 | * @param manager The manager to get the media backend type from. |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
305 | * |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
306 | * @return The type of 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
|
307 | * |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
308 | * @since 2.7.0 |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
309 | */ |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
310 | 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
|
311 | |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
312 | /** |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
313 | * purple_media_manager_set_application_data_callbacks: |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
314 | * @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
|
315 | * @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
|
316 | * @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
|
317 | * @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
|
318 | * @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
|
319 | * @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
|
320 | * @notify: a destroy notify function. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
321 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
322 | * 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
|
323 | * or readable for media sessions of type #PURPLE_MEDIA_APPLICATION |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
324 | */ |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
325 | 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
|
326 | 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
|
327 | const gchar *participant, PurpleMediaAppDataCallbacks *callbacks, |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
328 | gpointer user_data, GDestroyNotify notify); |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
329 | |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
330 | /** |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
331 | * purple_media_manager_send_application_data: |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
332 | * @manager: The manager to send data with. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
333 | * @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
|
334 | * @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
|
335 | * @participant: The participant to send data to. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
336 | * @buffer: The buffer of data to send. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
337 | * @size: The size of @buffer |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
338 | * @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
|
339 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
340 | * Sends a buffer of data to a #PURPLE_MEDIA_APPLICATION session. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
341 | * If @blocking is set, unless an error occured, the function will not return |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
342 | * 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
|
343 | * If the stream is not writable, the data will be queued. It is the |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
344 | * responsability of the user to stop sending data when the stream isn't |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
345 | * writable anymore. It is also the responsability of the user to only start |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
346 | * 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
|
347 | * parameters for example). |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
348 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
349 | * Returns: Number of bytes sent or -1 in case of error. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
350 | */ |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
351 | gint purple_media_manager_send_application_data ( |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
352 | 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
|
353 | 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
|
354 | |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
355 | /** |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
356 | * purple_media_manager_receive_application_data: |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
357 | * @manager: The manager to receive data with. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
358 | * @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
|
359 | * @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
|
360 | * @participant: The participant to receive data from. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
361 | * @buffer: The buffer to receive data into. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
362 | * @max_size: The max_size of @buffer |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
363 | * @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
|
364 | * with currently available data. |
|
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 | * Receive a buffer of data from a #PURPLE_MEDIA_APPLICATION session. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
367 | * If @blocking is set, unless an error occured, the function will not return |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
368 | * until @max_size bytes are read. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
369 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
370 | * Returns: Number of bytes received or -1 in case of error. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
371 | */ |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
372 | gint purple_media_manager_receive_application_data ( |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
373 | 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
|
374 | 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
|
375 | gboolean blocking); |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
376 | |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
377 | /*}@*/ |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
378 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
379 | #ifdef __cplusplus |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
380 | } |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
381 | #endif |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
382 | |
| 19883 | 383 | G_END_DECLS |
| 384 | ||
|
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
|
385 | #endif /* _PURPLE_MEDIA_MANAGER_H_ */ |