~xavi-garcia-mena/ubuntu/vivid/upower/percentages-power-off

« back to all changes in this revision

Viewing changes to src/linux/up-device-hid.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2010-02-16 10:16:24 UTC
  • Revision ID: james.westby@ubuntu.com-20100216101624-2cmwqsr1ndftdd87
Tags: upstream-0.9.0+git20100216.72bb2
ImportĀ upstreamĀ versionĀ 0.9.0+git20100216.72bb2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
 
2
 *
 
3
 * Copyright (C) 2008 Richard Hughes <richard@hughsie.com>
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
18
 *
 
19
 */
 
20
 
 
21
#ifndef __UP_DEVICE_HID_H__
 
22
#define __UP_DEVICE_HID_H__
 
23
 
 
24
#include <glib-object.h>
 
25
#include "up-device.h"
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
29
#define UP_TYPE_DEVICE_HID                      (up_device_hid_get_type ())
 
30
#define UP_DEVICE_HID(o)                (G_TYPE_CHECK_INSTANCE_CAST ((o), UP_TYPE_DEVICE_HID, UpDeviceHid))
 
31
#define UP_DEVICE_HID_CLASS(k)          (G_TYPE_CHECK_CLASS_CAST((k), UP_TYPE_DEVICE_HID, UpDeviceHidClass))
 
32
#define UP_IS_DEVICE_HID(o)                     (G_TYPE_CHECK_INSTANCE_TYPE ((o), UP_TYPE_DEVICE_HID))
 
33
#define UP_IS_DEVICE_HID_CLASS(k)               (G_TYPE_CHECK_CLASS_TYPE ((k), UP_TYPE_DEVICE_HID))
 
34
#define UP_DEVICE_HID_GET_CLASS(o)      (G_TYPE_INSTANCE_GET_CLASS ((o), UP_TYPE_DEVICE_HID, UpDeviceHidClass))
 
35
 
 
36
typedef struct UpDeviceHidPrivate UpDeviceHidPrivate;
 
37
 
 
38
typedef struct
 
39
{
 
40
        UpDevice                 parent;
 
41
        UpDeviceHidPrivate      *priv;
 
42
} UpDeviceHid;
 
43
 
 
44
typedef struct
 
45
{
 
46
        UpDeviceClass            parent_class;
 
47
} UpDeviceHidClass;
 
48
 
 
49
GType            up_device_hid_get_type         (void);
 
50
UpDeviceHid     *up_device_hid_new                      (void);
 
51
 
 
52
G_END_DECLS
 
53
 
 
54
#endif /* __UP_DEVICE_HID_H__ */
 
55