2
* Copyright © 2012 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 3, as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License along
14
* with this program. If not, see <http://www.gnu.org/licenses/>.
18
#ifndef __HUD_VOICE_H__
19
#define __HUD_VOICE_H__
22
#include <glib-object.h>
24
#define HUD_TYPE_VOICE (hud_voice_get_type ())
25
#define HUD_VOICE(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
26
HUD_TYPE_VOICE, HudVoice))
27
#define HUD_IS_VOICE(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
29
#define HUD_VOICE_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), \
30
HUD_TYPE_VOICE, HudVoiceInterface))
32
typedef struct _HudVoiceInterface HudVoiceInterface;
33
typedef struct _HudVoice HudVoice;
34
typedef struct _HudSource HudSource;
35
typedef struct _HudQueryIfaceComCanonicalHudQuery HudQueryIfaceComCanonicalHudQuery;
37
struct _HudVoiceInterface
39
GTypeInterface g_iface;
41
gboolean (*query) (HudVoice *self, HudSource *source, gchar **result,
45
GType hud_voice_get_type (void);
47
HudVoice * hud_voice_new (HudQueryIfaceComCanonicalHudQuery *skel,
48
const gchar *device, GError **error);
50
gboolean hud_voice_query (HudVoice *self, HudSource *source, gchar **result,
53
#endif /* __HUD_VOICE_H__ */