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

« back to all changes in this revision

Viewing changes to service/hud-dbus.h

Merging the HUD into indicator-appmenu

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
DBus facing code for the HUD
 
3
 
 
4
Copyright 2011 Canonical Ltd.
 
5
 
 
6
Authors:
 
7
    Ted Gould <ted@canonical.com>
 
8
 
 
9
This program is free software: you can redistribute it and/or modify it 
 
10
under the terms of the GNU General Public License version 3, as published 
 
11
by the Free Software Foundation.
 
12
 
 
13
This program is distributed in the hope that it will be useful, but 
 
14
WITHOUT ANY WARRANTY; without even the implied warranties of 
 
15
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
 
16
PURPOSE.  See the GNU General Public License for more details.
 
17
 
 
18
You should have received a copy of the GNU General Public License along 
 
19
with this program.  If not, see <http://www.gnu.org/licenses/>.
 
20
*/
 
21
 
 
22
#ifndef __HUD_DBUS_H__
 
23
#define __HUD_DBUS_H__
 
24
 
 
25
#include <glib.h>
 
26
#include <glib-object.h>
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
#define HUD_DBUS_TYPE            (hud_dbus_get_type ())
 
31
#define HUD_DBUS(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), HUD_DBUS_TYPE, HudDbus))
 
32
#define HUD_DBUS_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), HUD_DBUS_TYPE, HudDbusClass))
 
33
#define IS_HUD_DBUS(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HUD_DBUS_TYPE))
 
34
#define IS_HUD_DBUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), HUD_DBUS_TYPE))
 
35
#define HUD_DBUS_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), HUD_DBUS_TYPE, HudDbusClass))
 
36
 
 
37
typedef struct _HudDbus        HudDbus;
 
38
typedef struct _HudDbusClass   HudDbusClass;
 
39
typedef struct _HudDbusPrivate HudDbusPrivate;
 
40
 
 
41
struct _HudDbusClass {
 
42
        GObjectClass parent_class;
 
43
};
 
44
 
 
45
struct _HudDbus {
 
46
        GObject parent;
 
47
        HudDbusPrivate * priv;
 
48
};
 
49
 
 
50
GType hud_dbus_get_type (void);
 
51
HudDbus * hud_dbus_new (void);
 
52
 
 
53
G_END_DECLS
 
54
 
 
55
#endif