libpurple/media/codec.h

Wed, 29 Jan 2014 05:28:33 +0530

author
Ankit Vani <a@nevitus.org>
date
Wed, 29 Jan 2014 05:28:33 +0530
branch
soc.2013.gobjectification.plugins
changeset 37017
8e2b68c79fa1
parent 32438
dc8991868906
child 35396
7bfe75a37af7
permissions
-rw-r--r--

Convert doxygen's @return and @param commands for gtk-doc

29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
1 /**
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
2 * @file codec.h Codec for Media API
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
3 * @ingroup core
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
4 */
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
5
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
6 /* purple
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
7 *
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
8 * Purple is the legal property of its developers, whose names are too numerous
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
9 * to list here. Please refer to the COPYRIGHT file distributed with this
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
10 * source distribution.
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
11 *
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
12 * This program is free software; you can redistribute it and/or modify
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
13 * it under the terms of the GNU General Public License as published by
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
14 * the Free Software Foundation; either version 2 of the License, or
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
15 * (at your option) any later version.
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
16 *
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
17 * This program is distributed in the hope that it will be useful,
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
20 * GNU General Public License for more details.
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
21 *
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
22 * You should have received a copy of the GNU General Public License
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
23 * along with this program; if not, write to the Free Software
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
25 */
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
26
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
27 #ifndef _PURPLE_MEDIA_CODEC_H_
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
28 #define _PURPLE_MEDIA_CODEC_H_
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
29
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
30 #include "enum-types.h"
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
31
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
32 /** An opaque structure representing an audio or video codec. */
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
33 typedef struct _PurpleMediaCodec PurpleMediaCodec;
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
34
29678
1c628e63e507 Add pidgin-2 and purple-2 .pc variants
Will Thompson <resiak@pidgin.im>
parents: 29650
diff changeset
35 #include "../util.h"
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
36
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
37 #include <glib-object.h>
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
38
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
39 G_BEGIN_DECLS
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
40
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
41 #define PURPLE_TYPE_MEDIA_CODEC (purple_media_codec_get_type())
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
42 #define PURPLE_IS_MEDIA_CODEC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_MEDIA_CODEC))
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
43 #define PURPLE_IS_MEDIA_CODEC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_MEDIA_CODEC))
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
44 #define PURPLE_MEDIA_CODEC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_MEDIA_CODEC, PurpleMediaCodec))
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
45 #define PURPLE_MEDIA_CODEC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_MEDIA_CODEC, PurpleMediaCodec))
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
46 #define PURPLE_MEDIA_CODEC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_MEDIA_CODEC, PurpleMediaCodec))
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
47
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
48
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
49 /**
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
50 * Gets the type of the media codec structure.
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
51 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
52 * Returns: The media codec's GType
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
53 */
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
54 GType purple_media_codec_get_type(void);
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
55
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
56 /**
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
57 * Creates a new PurpleMediaCodec instance.
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
58 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
59 * @id: Codec identifier.
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
60 * @encoding_name: Name of the media type this encodes.
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
61 * @media_type: PurpleMediaSessionType of this codec.
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
62 * @clock_rate: The clock rate this codec encodes at, if applicable.
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
63 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
64 * Returns: The newly created PurpleMediaCodec.
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
65 */
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
66 PurpleMediaCodec *purple_media_codec_new(int id, const char *encoding_name,
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
67 PurpleMediaSessionType media_type, guint clock_rate);
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
68
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
69 /**
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
70 * Gets the codec id.
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
71 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
72 * @The: codec to get the id from.
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
73 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
74 * Returns: The codec id.
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
75 */
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
76 guint purple_media_codec_get_id(PurpleMediaCodec *codec);
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
77
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
78 /**
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
79 * Gets the encoding name.
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
80 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
81 * @The: codec to get the encoding name from.
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
82 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
83 * Returns: The encoding name.
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
84 */
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
85 gchar *purple_media_codec_get_encoding_name(PurpleMediaCodec *codec);
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
86
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
87 /**
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
88 * Gets the clock rate.
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
89 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
90 * @The: codec to get the clock rate from.
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
91 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
92 * Returns: The clock rate.
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
93 */
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
94 guint purple_media_codec_get_clock_rate(PurpleMediaCodec *codec);
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
95
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
96 /**
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
97 * Gets the number of channels.
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
98 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
99 * @The: codec to get the number of channels from.
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
100 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
101 * Returns: The number of channels.
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
102 */
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
103 guint purple_media_codec_get_channels(PurpleMediaCodec *codec);
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
104
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
105 /**
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
106 * Gets a list of the optional parameters.
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
107 *
31293
169eeb43b52c Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents: 30714
diff changeset
108 * The list consists of PurpleKeyValuePair's.
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
109 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
110 * @The: codec to get the optional parameters from.
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
111 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
112 * Returns: The list of optional parameters. The list is owned by the codec and
30714
1598b2454744 Clarify documentation on a function return value.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29678
diff changeset
113 * should not be freed.
29650
7f09240b9b12 Document the remaining functions.
Michael Ruprecht <maiku@pidgin.im>
parents: 29554
diff changeset
114 */
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
115 GList *purple_media_codec_get_optional_parameters(PurpleMediaCodec *codec);
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
116
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
117 /**
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
118 * Adds an optional parameter to the codec.
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
119 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
120 * @codec: The codec to add the parameter to.
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
121 * @name: The name of the parameter to add.
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
122 * @value: The value of the parameter to add.
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
123 */
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
124 void purple_media_codec_add_optional_parameter(PurpleMediaCodec *codec,
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
125 const gchar *name, const gchar *value);
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
126
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
127 /**
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
128 * Removes an optional parameter from the codec.
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
129 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
130 * @codec: The codec to remove the parameter from.
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
131 * @param: A pointer to the parameter to remove.
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
132 */
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
133 void purple_media_codec_remove_optional_parameter(PurpleMediaCodec *codec,
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
134 PurpleKeyValuePair *param);
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
135
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
136 /**
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
137 * Gets an optional parameter based on the values given.
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
138 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
139 * @codec: The codec to find the parameter in.
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
140 * @name: The name of the parameter to search for.
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
141 * @value: The value to search for or NULL.
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
142 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
143 * Returns: The value found or NULL.
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
144 */
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
145 PurpleKeyValuePair *purple_media_codec_get_optional_parameter(
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
146 PurpleMediaCodec *codec, const gchar *name,
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
147 const gchar *value);
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
148
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
149 /**
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
150 * Copies a PurpleMediaCodec object.
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
151 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
152 * @codec: The codec to copy.
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
153 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
154 * Returns: The copy of the codec.
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
155 */
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
156 PurpleMediaCodec *purple_media_codec_copy(PurpleMediaCodec *codec);
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
157
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
158 /**
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
159 * Copies a GList of PurpleMediaCodec and its contents.
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
160 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
161 * @codecs: The list of codecs to be copied.
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
162 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
163 * Returns: The copy of the GList.
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
164 */
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
165 GList *purple_media_codec_list_copy(GList *codecs);
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
166
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
167 /**
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
168 * Frees a GList of PurpleMediaCodec and its contents.
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
169 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
170 * @codecs: The list of codecs to be freed.
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
171 */
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
172 void purple_media_codec_list_free(GList *codecs);
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
173
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
174 /**
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
175 * Creates a string representation of the codec.
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
176 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
177 * @codec: The codec to create the string of.
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
178 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
179 * Returns: The new string representation.
29554
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
180 */
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
181 gchar *purple_media_codec_to_string(const PurpleMediaCodec *codec);
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
182
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
183 G_END_DECLS
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
184
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
185 #endif /* _PURPLE_MEDIA_CODEC_H_ */
f6ea03b38873 Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
diff changeset
186

mercurial