2 * @file gtksound.h GTK+ Sound API
8 * Pidgin is the legal property of its developers, whose names are too numerous
9 * to list here. Please refer to the COPYRIGHT file distributed with this
10 * source distribution.
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
26 #ifndef _PIDGINSOUND_H_
27 #define _PIDGINSOUND_H_
31 /**************************************************************************/
32 /** @name GTK+ Sound API */
33 /**************************************************************************/
37 * Get the prefs option for an event.
39 * @param event The event.
42 const char *pidgin_sound_get_event_option(PurpleSoundEventID event
);
45 * Get the label for an event.
47 * @param event The event.
50 const char *pidgin_sound_get_event_label(PurpleSoundEventID event
);
53 * Gets GTK+ sound UI ops.
55 * @return The UI operations structure.
57 PurpleSoundUiOps
*pidgin_sound_get_ui_ops(void);
60 * Get the handle for the GTK+ sound system.
62 * @return The handle to the sound system
64 void *pidgin_sound_get_handle(void);
67 * Returns true Pidgin is using customized sounds
69 * @return TRUE if non default sounds are used.
73 gboolean
pidgin_sound_is_customized(void);
77 #endif /* _PIDGINSOUND_H_ */