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

« back to all changes in this revision

Viewing changes to src/linux/up-device-csr.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 David Zeuthen <davidz@redhat.com>
 
4
 * Copyright (C) 2008 Richard Hughes <richard@hughsie.com>
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 2 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef __UP_DEVICE_CSR_H__
 
23
#define __UP_DEVICE_CSR_H__
 
24
 
 
25
#include <glib-object.h>
 
26
#include "up-device.h"
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
#define UP_TYPE_DEVICE_CSR                      (up_device_csr_get_type ())
 
31
#define UP_DEVICE_CSR(o)                (G_TYPE_CHECK_INSTANCE_CAST ((o), UP_TYPE_DEVICE_CSR, UpDeviceCsr))
 
32
#define UP_DEVICE_CSR_CLASS(k)          (G_TYPE_CHECK_CLASS_CAST((k), UP_TYPE_DEVICE_CSR, UpDeviceCsrClass))
 
33
#define UP_IS_DEVICE_CSR(o)                     (G_TYPE_CHECK_INSTANCE_TYPE ((o), UP_TYPE_DEVICE_CSR))
 
34
#define UP_IS_DEVICE_CSR_CLASS(k)               (G_TYPE_CHECK_CLASS_TYPE ((k), UP_TYPE_DEVICE_CSR))
 
35
#define UP_DEVICE_CSR_GET_CLASS(o)      (G_TYPE_INSTANCE_GET_CLASS ((o), UP_TYPE_DEVICE_CSR, UpDeviceCsrClass))
 
36
 
 
37
typedef struct UpDeviceCsrPrivate UpDeviceCsrPrivate;
 
38
 
 
39
typedef struct
 
40
{
 
41
        UpDevice                 parent;
 
42
        UpDeviceCsrPrivate      *priv;
 
43
} UpDeviceCsr;
 
44
 
 
45
typedef struct
 
46
{
 
47
        UpDeviceClass            parent_class;
 
48
} UpDeviceCsrClass;
 
49
 
 
50
GType            up_device_csr_get_type         (void);
 
51
UpDeviceCsr     *up_device_csr_new                      (void);
 
52
 
 
53
G_END_DECLS
 
54
 
 
55
#endif /* __UP_DEVICE_CSR_H__ */
 
56