~ubuntu-branches/ubuntu/maverick/devicekit-power/maverick

« back to all changes in this revision

Viewing changes to src/dkp-supply.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-06 19:12:49 UTC
  • mfrom: (1.1.5 experimental)
  • Revision ID: james.westby@ubuntu.com-20090706191249-hr0a9c2ti5u0b5lc
Tags: 009-1
* New upstream release.   
* debian/control: Add myself to uploaders (discussed with Michael).
* debian/devicekit-power.install: Upstream installs udev rules into
  /lib/udev/rules.d now, update accordingly.
* Add 0001-Add-a-notify-flag-to-set_lid_is_closed.patch: Properly fix the
  silencing of the coldplug lid event, so that the first real lid event
  actually works. Thanks to Loïc Minier! (fd.o #22574)

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 __DKP_SUPPLY_H__
23
 
#define __DKP_SUPPLY_H__
24
 
 
25
 
#include <glib-object.h>
26
 
#include "dkp-device.h"
27
 
 
28
 
G_BEGIN_DECLS
29
 
 
30
 
#define DKP_TYPE_SUPPLY         (dkp_supply_get_type ())
31
 
#define DKP_SUPPLY(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), DKP_TYPE_SUPPLY, DkpSupply))
32
 
#define DKP_SUPPLY_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), DKP_TYPE_SUPPLY, DkpSupplyClass))
33
 
#define DKP_IS_SUPPLY(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), DKP_TYPE_SUPPLY))
34
 
#define DKP_IS_SUPPLY_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), DKP_TYPE_SUPPLY))
35
 
#define DKP_SUPPLY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DKP_TYPE_SUPPLY, DkpSupplyClass))
36
 
 
37
 
typedef struct DkpSupplyPrivate DkpSupplyPrivate;
38
 
 
39
 
typedef struct
40
 
{
41
 
        DkpDevice                parent;
42
 
        DkpSupplyPrivate        *priv;
43
 
} DkpSupply;
44
 
 
45
 
typedef struct
46
 
{
47
 
        DkpDeviceClass           parent_class;
48
 
} DkpSupplyClass;
49
 
 
50
 
GType            dkp_supply_get_type            (void);
51
 
DkpSupply       *dkp_supply_new                 (void);
52
 
 
53
 
G_END_DECLS
54
 
 
55
 
#endif /* __DKP_SUPPLY_H__ */
56