Mercurial > pidgin
annotate finch/gntsound.h @ 19154:01d574f529e0
One leak fix. Mostly cosmetic changes.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 11 Jul 2007 17:36:15 +0000 |
parents | 5ff1231993af |
children | fbecc35c23bb |
rev | line source |
---|---|
19100 | 1 /** |
2 * @file gntsound.h GNT Sound API | |
3 * @ingroup finch | |
4 * | |
5 * finch | |
6 * | |
7 * Finch is the legal property of its developers, whose names are too numerous | |
8 * to list here. Please refer to the COPYRIGHT file distributed with this | |
9 * source distribution. | |
10 * | |
11 * This program is free software; you can redistribute it and/or modify | |
12 * it under the terms of the GNU General Public License as published by | |
13 * the Free Software Foundation; either version 2 of the License, or | |
14 * (at your option) any later version. | |
15 * | |
16 * This program is distributed in the hope that it will be useful, | |
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 * GNU General Public License for more details. | |
20 * | |
21 * You should have received a copy of the GNU General Public License | |
22 * along with this program; if not, write to the Free Software | |
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
24 */ | |
25 #ifndef _GNT_SOUND_H | |
26 #define _GNT_SOUND_H | |
27 | |
28 #include "sound.h" | |
29 | |
30 /**********************************************************************/ | |
19154
01d574f529e0
One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19146
diff
changeset
|
31 /** @name GNT Sound API */ |
19100 | 32 /**********************************************************************/ |
33 /*@{*/ | |
34 | |
35 /** | |
19146 | 36 * Get the name of the active sound profile. |
37 * | |
19154
01d574f529e0
One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19146
diff
changeset
|
38 * @return The name of the profile |
19146 | 39 */ |
40 const char *finch_sound_get_active_profile(void); | |
41 | |
42 /** | |
43 * Set the active profile. If the profile doesn't exist, nothing is changed. | |
44 * | |
19154
01d574f529e0
One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19146
diff
changeset
|
45 * @param name The name of the profile |
19146 | 46 */ |
47 void finch_sound_set_active_profile(const char *name); | |
48 | |
49 /** | |
50 * Get a list of available sound profiles. | |
51 * | |
19154
01d574f529e0
One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19146
diff
changeset
|
52 * @return A list of strings denoting sound profile names. |
01d574f529e0
One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19146
diff
changeset
|
53 * Caller must free the list (but not the data). |
19146 | 54 */ |
55 GList *finch_sound_get_profiles(void); | |
56 | |
19100 | 57 /** |
19154
01d574f529e0
One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19146
diff
changeset
|
58 * Gets GNT sound UI ops. |
01d574f529e0
One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19146
diff
changeset
|
59 * |
01d574f529e0
One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19146
diff
changeset
|
60 * @return The UI operations structure. |
01d574f529e0
One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19146
diff
changeset
|
61 */ |
19100 | 62 PurpleSoundUiOps *finch_sound_get_ui_ops(void); |
63 | |
64 /** | |
19117
907c41608ada
Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents:
19100
diff
changeset
|
65 * Show the sound settings dialog. |
907c41608ada
Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents:
19100
diff
changeset
|
66 */ |
907c41608ada
Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents:
19100
diff
changeset
|
67 void finch_sounds_show_all(void); |
907c41608ada
Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents:
19100
diff
changeset
|
68 |
19100 | 69 /*@}*/ |
70 | |
71 #endif |