~jbicha/hud/build-depend-on-valac-not-gir

« back to all changes in this revision

Viewing changes to src/hudvoice.h

  • Committer: Tarmac
  • Author(s): Ted Gould, Pete Woods, Antti Kaijanmäki, Ted Gould, Albert Astals, Ryan Lortie, Łukasz 'sil2100' Zemczak, Albert Astals Cid, Mathieu Trudel-Lapierre, Kaleo, Tarmac, Ricardo Salveti de Araujo, Michael Terry, Automatic PS uploader
  • Date: 2013-04-10 16:04:51 UTC
  • mfrom: (227.3.148 phablet)
  • Revision ID: tarmac-20130410160451-o3owpv3zaxulm5of
HUD 2.0 Merge.

Approved by PS Jenkins bot, Mathieu Trudel-Lapierre.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2012 Canonical Ltd.
 
3
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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/>.
 
15
 *
 
16
 */
 
17
 
 
18
#ifndef __HUD_VOICE_H__
 
19
#define __HUD_VOICE_H__
 
20
 
 
21
#include <glib.h>
 
22
#include <glib-object.h>
 
23
 
 
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),                     \
 
28
                                                             HUD_TYPE_VOICE))
 
29
#define HUD_VOICE_GET_IFACE(inst)                          (G_TYPE_INSTANCE_GET_INTERFACE ((inst),                  \
 
30
                                                             HUD_TYPE_VOICE, HudVoiceInterface))
 
31
 
 
32
typedef struct _HudVoiceInterface                          HudVoiceInterface;
 
33
typedef struct _HudVoice                                   HudVoice;
 
34
typedef struct _HudSource                                  HudSource;
 
35
typedef struct _HudQueryIfaceComCanonicalHudQuery          HudQueryIfaceComCanonicalHudQuery;
 
36
 
 
37
struct _HudVoiceInterface
 
38
{
 
39
  GTypeInterface g_iface;
 
40
 
 
41
  gboolean (*query) (HudVoice *self, HudSource *source, gchar **result,
 
42
      GError **error);
 
43
};
 
44
 
 
45
GType hud_voice_get_type (void);
 
46
 
 
47
HudVoice * hud_voice_new (HudQueryIfaceComCanonicalHudQuery *skel,
 
48
    const gchar *device, GError **error);
 
49
 
 
50
gboolean hud_voice_query (HudVoice *self, HudSource *source, gchar **result,
 
51
    GError **error);
 
52
 
 
53
#endif /* __HUD_VOICE_H__ */