Mon, 15 Aug 2022 02:39:09 -0500
Port PidginAddBuddyDialog to GTK4
Testing Done:
Compiled
Reviewed at https://reviews.imfreedom.org/r/1586/
|
40525
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
40525
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * Purple is the legal property of its developers, whose names are too numerous |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * source distribution. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * This program is free software; you can redistribute it and/or modify |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * it under the terms of the GNU General Public License as published by |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * the Free Software Foundation; either version 2 of the License, or |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * (at your option) any later version. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * This program is distributed in the hope that it will be useful, |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | * GNU General Public License for more details. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License |
|
40539
2941deda6d8d
Use an https link to gnu.org in the license file headers
Gary Kramlich <grim@reaperworld.com>
parents:
40525
diff
changeset
|
20 | * along with this program; if not, see <https://www.gnu.org/licenses/>. |
|
40525
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | */ |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | # error "only <purple.h> may be included directly" |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
25 | #endif |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
26 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
27 | #ifndef PURPLE_PROTOCOL_MEDIA_H |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | #define PURPLE_PROTOCOL_MEDIA_H |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | #include <glib.h> |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | #include <glib-object.h> |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | #include <libpurple/account.h> |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | #include <libpurple/media.h> |
|
41155
922c9e70900c
Rename protocol.[ch] to purpleprotocol.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
41083
diff
changeset
|
35 | #include <libpurple/purpleprotocol.h> |
|
40525
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | #define PURPLE_TYPE_PROTOCOL_MEDIA (purple_protocol_media_get_type()) |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | G_DECLARE_INTERFACE(PurpleProtocolMedia, purple_protocol_media, PURPLE, |
|
41024
a2ad2d034162
Set the prereq type for all Protocol interfaces to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
39 | PROTOCOL_MEDIA, PurpleProtocol) |
|
40525
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | G_BEGIN_DECLS |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | /** |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | * PURPLE_TYPE_PROTOCOL_MEDIA: |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
45 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
46 | * The standard _get_type method for #PurpleProtocolMedia. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
48 | * Since: 3.0.0 |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
49 | */ |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | /** |
|
41205
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
52 | * PurpleProtocolMedia: |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
53 | * |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
54 | * #PurpleProtocolMedia describes the multimedia api that is available for |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
55 | * protocols. |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
56 | */ |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
57 | |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
58 | /** |
|
40525
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
59 | * PurpleProtocolMediaInterface: |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
60 | * @initiate_session: Initiate a media session with the given contact. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
61 | * <sbr/>@account: The account to initiate the media session |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | * on. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | * <sbr/>@who: The remote user to initiate the session with. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | * <sbr/>@type: The type of media session to initiate. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | * <sbr/>Returns: %TRUE if the call succeeded else %FALSE. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | * (Doesn't imply the media session or stream |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
67 | * will be successfully created) |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
68 | * @get_caps: Checks to see if the given contact supports the given type of |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
69 | * media session. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
70 | * <sbr/>@account: The account the contact is on. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
71 | * <sbr/>@who: The remote user to check for media capability with. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
72 | * <sbr/>Returns: The media caps the contact supports. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
73 | * @send_dtmf: Sends DTMF codes out-of-band in a protocol-specific way if the |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
74 | * protocol supports it, or failing that in-band if the media backend |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
75 | * can do so. See purple_media_send_dtmf(). |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
76 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | * The protocol media interface. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
78 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
79 | * This interface provides callbacks for media sessions on the protocol. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
80 | */ |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
81 | struct _PurpleProtocolMediaInterface { |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
82 | /*< private >*/ |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
83 | GTypeInterface parent; |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
84 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
85 | /*< public >*/ |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
86 | gboolean (*initiate_session)(PurpleProtocolMedia *media, PurpleAccount *account, const gchar *who, PurpleMediaSessionType type); |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
87 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
88 | PurpleMediaCaps (*get_caps)(PurpleProtocolMedia *media, PurpleAccount *account, const gchar *who); |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
89 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
90 | gboolean (*send_dtmf)(PurpleProtocolMedia *protocol_media, PurpleMedia *media, gchar dtmf, guint8 volume, guint8 duration); |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
91 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
92 | /*< private >*/ |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
93 | gpointer reserved[4]; |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
94 | }; |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
95 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
96 | /** |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
97 | * purple_protocol_media_initiate_session: |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
98 | * @media: The #PurpleProtocolMedia instance. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
99 | * @account: The #PurpleAccount instance. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
100 | * @who: The user to initiate a media session with. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
101 | * @type: The type of media session to create. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
102 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
103 | * Initiates a media connection of @type to @who. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
104 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
105 | * Returns: %TRUE if successful, %FALSE otherwise. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
106 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
107 | * Since: 3.0.0 |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
108 | */ |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
109 | gboolean purple_protocol_media_initiate_session(PurpleProtocolMedia *media, PurpleAccount *account, const gchar *who, PurpleMediaSessionType type); |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
110 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
111 | /** |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
112 | * purple_protocol_media_get_caps: |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
113 | * @media: The #PurpleProtocolMedia instance. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
114 | * @account: The #PurpleAccount instance. |
|
41083
590d533cf290
Fix several typos in libpurple
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41024
diff
changeset
|
115 | * @who: The user to get the media capabilities for. |
|
40525
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
116 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
117 | * Gets the #PurpleMediaCaps for @who which determine what types of media are |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
118 | * available. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
119 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
120 | * Returns: the media capabilities of @who. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
121 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
122 | * Since: 3.0.0 |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
123 | */ |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
124 | PurpleMediaCaps purple_protocol_media_get_caps(PurpleProtocolMedia *media, PurpleAccount *account, const gchar *who); |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
125 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
126 | /** |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
127 | * purple_protocol_media_send_dtmf: |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
128 | * @protocol_media: The #PurpleProtocolMedia instance. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
129 | * @media: The #PurpleMedia instance. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
130 | * @dtmf: A DTMF to send. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
131 | * @volume: The volume to send @dtmf at. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
132 | * @duration: The duration to send @dtmf (in ms?) |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
133 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
134 | * Sends a DTMF (dual-tone multi-frequency) signal via the established @media |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
135 | * for the given @duration at the given @volume. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
136 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
137 | * It is up to the specific implementation if DTMF is send in or out of band. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
138 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
139 | * Returns: %TRUE if successful, %FALSE otherwise. |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
140 | * |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
141 | * Since: 3.0.0 |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
142 | */ |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
143 | gboolean purple_protocol_media_send_dtmf(PurpleProtocolMedia *protocol_media, PurpleMedia *media, gchar dtmf, guint8 volume, guint8 duration); |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
144 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
145 | G_END_DECLS |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
146 | |
|
96fc115d6c36
Move PurpleProtocolMediaInterface to its own file.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
147 | #endif /* PURPLE_PROTOCOL_MEDIA_H */ |