Sat, 11 Aug 2007 10:52:07 +0000
Fix a memory leak.
Fix a compile warning.
Make sure there's no new API nor nothing.
| 18155 | 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 | /**********************************************************************/ | |
|
19315
0bc6119bbf7b
Fix a memory leak.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18697
diff
changeset
|
31 | /** @name GNT Sound API */ |
| 18155 | 32 | /**********************************************************************/ |
| 33 | /*@{*/ | |
| 34 | ||
| 35 | /** | |
| 18683 | 36 | * Get the name of the active sound profile. |
| 37 | * | |
|
19315
0bc6119bbf7b
Fix a memory leak.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18697
diff
changeset
|
38 | * @return The name of the profile |
| 18683 | 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 | * | |
|
19315
0bc6119bbf7b
Fix a memory leak.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18697
diff
changeset
|
45 | * @param name The name of the profile |
| 18683 | 46 | */ |
| 47 | void finch_sound_set_active_profile(const char *name); | |
| 48 | ||
| 49 | /** | |
| 50 | * Get a list of available sound profiles. | |
| 51 | * | |
|
19315
0bc6119bbf7b
Fix a memory leak.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18697
diff
changeset
|
52 | * @return A list of strings denoting sound profile names. |
|
0bc6119bbf7b
Fix a memory leak.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18697
diff
changeset
|
53 | * Caller must free the list (but not the data). |
| 18683 | 54 | */ |
| 55 | GList *finch_sound_get_profiles(void); | |
| 56 | ||
| 18155 | 57 | /** |
|
19315
0bc6119bbf7b
Fix a memory leak.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18697
diff
changeset
|
58 | * Gets GNT sound UI ops. |
|
0bc6119bbf7b
Fix a memory leak.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18697
diff
changeset
|
59 | * |
|
0bc6119bbf7b
Fix a memory leak.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18697
diff
changeset
|
60 | * @return The UI operations structure. |
|
0bc6119bbf7b
Fix a memory leak.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18697
diff
changeset
|
61 | */ |
| 18155 | 62 | PurpleSoundUiOps *finch_sound_get_ui_ops(void); |
| 63 | ||
| 64 | /** | |
|
18294
8186bc6ffbb4
Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents:
18155
diff
changeset
|
65 | * Show the sound settings dialog. |
|
8186bc6ffbb4
Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents:
18155
diff
changeset
|
66 | */ |
|
8186bc6ffbb4
Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents:
18155
diff
changeset
|
67 | void finch_sounds_show_all(void); |
|
8186bc6ffbb4
Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents:
18155
diff
changeset
|
68 | |
| 18155 | 69 | /*@}*/ |
| 70 | ||
| 71 | #endif |