Fri, 13 Mar 2020 22:11:34 -0500
Remove stringref from the docs.
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
1 | /* purple |
| 19883 | 2 | * |
| 3 | * Purple is the legal property of its developers, whose names are too numerous | |
| 4 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 5 | * source distribution. | |
| 6 | * | |
| 7 | * This program is free software; you can redistribute it and/or modify | |
| 8 | * it under the terms of the GNU General Public License as published by | |
| 9 | * the Free Software Foundation; either version 2 of the License, or | |
| 10 | * (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | * | |
| 17 | * You should have received a copy of the GNU General Public License | |
| 18 | * 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
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 19883 | 20 | */ |
| 21 | ||
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39551
diff
changeset
|
22 | #ifndef PURPLE_MEDIA_MANAGER_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39551
diff
changeset
|
23 | #define PURPLE_MEDIA_MANAGER_H |
|
35440
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
24 | /** |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
25 | * SECTION:mediamanager |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
26 | * @section_id: libpurple-mediamanager |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
27 | * @short_description: <filename>mediamanager.h</filename> |
| 35444 | 28 | * @title: Media Manager Object |
|
35440
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
29 | */ |
| 19883 | 30 | |
| 31 | #include <glib.h> | |
| 32 | #include <glib-object.h> | |
| 33 | ||
|
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; |
|
34993
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
35 | |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
36 | #include "account.h" |
| 19883 | 37 | #include "media.h" |
| 38 | ||
|
39551
9b3bab123025
Use G_DECLARE for media objects.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38640
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. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
45 | */ |
|
34993
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
46 | struct _PurpleMediaManagerClass |
|
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
47 | { |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
48 | GObjectClass parent_class; |
|
34993
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
49 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34993
diff
changeset
|
50 | /*< private >*/ |
|
34993
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
51 | void (*purple_reserved1)(void); |
|
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
52 | void (*purple_reserved2)(void); |
|
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
53 | void (*purple_reserved3)(void); |
|
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
54 | void (*purple_reserved4)(void); |
|
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
55 | }; |
|
1795d1263daf
Expose the media manager GObject structs
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
56 | |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
57 | /** |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
58 | * PurpleMediaAppDataCallbacks: |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
59 | * @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
|
60 | * @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
|
61 | * writable. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
62 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
63 | * 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
|
64 | * purple_media_manager_set_application_data_callbacks() |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
65 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
66 | * 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
|
67 | * 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
|
68 | * 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
|
69 | * 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
|
70 | * become writable or stopped being writable. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
71 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
72 | */ |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
73 | typedef struct { |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
74 | void (*readable) (PurpleMediaManager *manager, PurpleMedia *media, |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
75 | 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
|
76 | void (*writable) (PurpleMediaManager *manager, PurpleMedia *media, |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
77 | 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
|
78 | gpointer user_data); |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
79 | } PurpleMediaAppDataCallbacks; |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
80 | |
| 19883 | 81 | G_BEGIN_DECLS |
| 82 | ||
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
83 | /**************************************************************************/ |
| 35472 | 84 | /* Media Manager API */ |
|
26105
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 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
87 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
88 | * purple_media_manager_get_type: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
89 | * |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
90 | * Gets the media manager's GType. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
91 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
92 | * Returns: The media manager's GType. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
93 | */ |
|
39551
9b3bab123025
Use G_DECLARE for media objects.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38640
diff
changeset
|
94 | 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
|
95 | MEDIA_MANAGER, GObject) |
| 19883 | 96 | |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
97 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
98 | * purple_media_manager_get: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
99 | * |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
100 | * 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
|
101 | * |
|
38638
5ba5a42683c6
This is not in fact transfer full
Gary Kramlich <grim@reaperworld.com>
parents:
38632
diff
changeset
|
102 | * Returns: (transfer none): The "global" instance of the media manager object. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
103 | */ |
| 19889 | 104 | 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
|
105 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
106 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
107 | * purple_media_manager_create_media: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
108 | * @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
|
109 | * @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
|
110 | * @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
|
111 | * @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
|
112 | * @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
|
113 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
114 | * Creates a media session. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
115 | * |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
37217
diff
changeset
|
116 | * Returns: (transfer full): A newly created media session. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
117 | */ |
| 19883 | 118 | 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
|
119 | 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
|
120 | const char *conference_type, |
|
26187
3b3059a7c091
Add initiator property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26150
diff
changeset
|
121 | const char *remote_user, |
|
3b3059a7c091
Add initiator property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26150
diff
changeset
|
122 | gboolean initiator); |
| 19883 | 123 | |
|
26115
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
124 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
125 | * 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
|
126 | * @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
|
127 | * |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
128 | * Gets all of the media sessions. |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
129 | * |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
37217
diff
changeset
|
130 | * Returns: (transfer none) (element-type PurpleMedia): A list of all the media sessions. |
|
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 | 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
|
133 | |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
134 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
135 | * 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
|
136 | * @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
|
137 | * @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
|
138 | * |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
139 | * 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
|
140 | * |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
37217
diff
changeset
|
141 | * Returns: (transfer container) (element-type PurpleMedia): A list of the media sessions on the given account. |
|
26329
6e390d9ea49a
Added purple_media_manager_get_media_by_connection.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
142 | */ |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
143 | 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
|
144 | PurpleMediaManager *manager, PurpleAccount *account); |
|
26329
6e390d9ea49a
Added purple_media_manager_get_media_by_connection.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
145 | |
|
6e390d9ea49a
Added purple_media_manager_get_media_by_connection.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
146 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
147 | * purple_media_manager_remove_media: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
148 | * @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
|
149 | * @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
|
150 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
151 | * Removes a media session from the media manager. |
|
26115
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
152 | */ |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
153 | void |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
154 | 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
|
155 | PurpleMedia *media); |
|
5f0500efc781
* Added input/output volume preferences for voice conversations.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
156 | |
|
26150
951503fc5456
Add purple_media_manager_get_element.
Michael Ruprecht <maiku@pidgin.im>
parents:
26143
diff
changeset
|
157 | /** |
|
36328
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
158 | * purple_media_manager_create_private_media: |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
159 | * @manager: The media manager to create the session under. |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
160 | * @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
|
161 | * @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
|
162 | * @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
|
163 | * @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
|
164 | * |
|
36328
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
165 | * Creates a private media session. |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
166 | * 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
|
167 | * 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
|
168 | * 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
|
169 | * 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
|
170 | * |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
37217
diff
changeset
|
171 | * Returns: (transfer full): A newly created media session. |
|
36331
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 | PurpleMedia *purple_media_manager_create_private_media( |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
174 | PurpleMediaManager *manager, |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
175 | PurpleAccount *account, |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
176 | const char *conference_type, |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
177 | const char *remote_user, |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
178 | gboolean initiator); |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
179 | |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
180 | /** |
|
36328
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
181 | * purple_media_manager_get_private_media: |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
182 | * @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
|
183 | * |
|
36331
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
184 | * Gets all of the private media sessions. |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
185 | * |
|
38640
c57d0def5375
Fix an invalid transfer annotation
Gary Kramlich <grim@reaperworld.com>
parents:
38639
diff
changeset
|
186 | * Returns: (transfer none) (element-type PurpleMedia): A list of all the private media sessions. |
|
36331
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
187 | */ |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
188 | GList *purple_media_manager_get_private_media(PurpleMediaManager *manager); |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
189 | |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
190 | /** |
|
36328
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
191 | * purple_media_manager_get_private_media_by_account: |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
192 | * @manager: The media manager to get the sessions from. |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
193 | * @account: The account the sessions are on. |
|
cfe439dd03f1
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
35487
diff
changeset
|
194 | * |
|
36331
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
195 | * 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
|
196 | * |
|
38639
d92081c41a9e
A few more transfer updates
Gary Kramlich <grim@reaperworld.com>
parents:
38638
diff
changeset
|
197 | * Returns: (transfer container) (element-type PurpleMedia): A list of the private media sessions on the given account. |
|
36331
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 | GList *purple_media_manager_get_private_media_by_account( |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
200 | PurpleMediaManager *manager, PurpleAccount *account); |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
201 | |
|
d729a9b21265
Add Private media API
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
29620
diff
changeset
|
202 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
203 | * purple_media_manager_create_output_window: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
204 | * @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
|
205 | * @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
|
206 | * @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
|
207 | * @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
|
208 | * |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
209 | * 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
|
210 | * |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
211 | * 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
|
212 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
213 | * Returns: TRUE if it succeeded, FALSE if it failed. |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
214 | */ |
|
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
215 | 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
|
216 | 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
|
217 | const gchar *session_id, const gchar *participant); |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
218 | |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
219 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
220 | * purple_media_manager_set_output_window: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
221 | * @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
|
222 | * @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
|
223 | * @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
|
224 | * @participant: The participant the stream is associated with. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
225 | * @window_id: The window ID to embed the video in. |
|
26491
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 | * 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
|
228 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
229 | * Returns: A unique ID to the registered output window, 0 if it failed. |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
230 | */ |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
231 | 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
|
232 | 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
|
233 | const gchar *participant, gulong window_id); |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
234 | |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
235 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
236 | * purple_media_manager_remove_output_window: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
237 | * @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
|
238 | * @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
|
239 | * |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
240 | * Remove a previously registerd output window. |
|
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
241 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
242 | * Returns: TRUE if it found the output window and was successful, else FALSE. |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
243 | */ |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
244 | 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
|
245 | PurpleMediaManager *manager, gulong output_window_id); |
|
26491
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 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
248 | * purple_media_manager_remove_output_windows: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
249 | * @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
|
250 | * @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
|
251 | * @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
|
252 | * @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
|
253 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
254 | * Remove all output windows for a given conference/session/participant/stream. |
|
26491
7e4f1b50df9f
Add some documentation to mediamanager.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
255 | */ |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26320
diff
changeset
|
256 | 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
|
257 | 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
|
258 | 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
|
259 | |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
260 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
261 | * purple_media_manager_set_ui_caps: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
262 | * @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
|
263 | * @caps: The caps to set. |
|
26520
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
264 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
265 | * Sets which media caps the UI supports. |
|
26520
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
266 | */ |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
267 | 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
|
268 | PurpleMediaCaps caps); |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
269 | |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
270 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
271 | * 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
|
272 | * @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
|
273 | * |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
274 | * 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
|
275 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
276 | * Returns: caps The caps retrieved. |
|
26520
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
277 | */ |
|
8cbe60f17f3b
Add purple_media_manager_{get,set}_ui_caps.
Michael Ruprecht <maiku@pidgin.im>
parents:
26491
diff
changeset
|
278 | 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
|
279 | |
|
29620
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
280 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
281 | * purple_media_manager_set_backend_type: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
282 | * @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
|
283 | * @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
|
284 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
285 | * Sets which media backend type media objects will 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
|
286 | */ |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
287 | 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
|
288 | 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
|
289 | |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
290 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
291 | * 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
|
292 | * @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
|
293 | * |
|
86e4f028f910
Add a way to set and get which media backend type to use.
Michael Ruprecht <maiku@pidgin.im>
parents:
28420
diff
changeset
|
294 | * 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
|
295 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
296 | * Returns: The type of media backend type media objects will 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
|
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 | 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
|
299 | |
|
36333
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
300 | /** |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
301 | * purple_media_manager_set_application_data_callbacks: |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
302 | * @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
|
303 | * @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
|
304 | * @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
|
305 | * @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
|
306 | * @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
|
307 | * @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
|
308 | * @notify: a destroy notify function. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
309 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
310 | * 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
|
311 | * 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
|
312 | */ |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
313 | 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
|
314 | 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
|
315 | const gchar *participant, PurpleMediaAppDataCallbacks *callbacks, |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
316 | gpointer user_data, GDestroyNotify notify); |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
317 | |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
318 | /** |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
319 | * purple_media_manager_send_application_data: |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
320 | * @manager: The manager to send data with. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
321 | * @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
|
322 | * @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
|
323 | * @participant: The participant to send data to. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
324 | * @buffer: The buffer of data to send. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
325 | * @size: The size of @buffer |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
326 | * @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
|
327 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
328 | * 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
|
329 | * 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
|
330 | * 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
|
331 | * 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
|
332 | * 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
|
333 | * 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
|
334 | * 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
|
335 | * parameters for example). |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
336 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
337 | * 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
|
338 | */ |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
339 | gint purple_media_manager_send_application_data ( |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
340 | 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
|
341 | 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
|
342 | |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
343 | /** |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
344 | * purple_media_manager_receive_application_data: |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
345 | * @manager: The manager to receive data with. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
346 | * @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
|
347 | * @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
|
348 | * @participant: The participant to receive data from. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
349 | * @buffer: The buffer to receive data into. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
350 | * @max_size: The max_size of @buffer |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
351 | * @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
|
352 | * with currently available data. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
353 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
354 | * 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
|
355 | * 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
|
356 | * until @max_size bytes are read. |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
357 | * |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
358 | * 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
|
359 | */ |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
360 | gint purple_media_manager_receive_application_data ( |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
361 | 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
|
362 | 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
|
363 | gboolean blocking); |
|
4fe1034f3dce
Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
36331
diff
changeset
|
364 | |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
365 | /*}@*/ |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
366 | |
| 19883 | 367 | G_END_DECLS |
| 368 | ||
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39551
diff
changeset
|
369 | #endif /* PURPLE_MEDIA_MANAGER_H */ |