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

« back to all changes in this revision

Viewing changes to src/dkp-wup.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 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 __DKP_WUP_H__
22
 
#define __DKP_WUP_H__
23
 
 
24
 
#include <glib-object.h>
25
 
#include "dkp-device.h"
26
 
 
27
 
G_BEGIN_DECLS
28
 
 
29
 
#define DKP_TYPE_WUP            (dkp_wup_get_type ())
30
 
#define DKP_WUP(o)              (G_TYPE_CHECK_INSTANCE_CAST ((o), DKP_TYPE_WUP, DkpWup))
31
 
#define DKP_WUP_CLASS(k)        (G_TYPE_CHECK_CLASS_CAST((k), DKP_TYPE_WUP, DkpWupClass))
32
 
#define DKP_IS_WUP(o)           (G_TYPE_CHECK_INSTANCE_TYPE ((o), DKP_TYPE_WUP))
33
 
#define DKP_IS_WUP_CLASS(k)     (G_TYPE_CHECK_CLASS_TYPE ((k), DKP_TYPE_WUP))
34
 
#define DKP_WUP_GET_CLASS(o)    (G_TYPE_INSTANCE_GET_CLASS ((o), DKP_TYPE_WUP, DkpWupClass))
35
 
 
36
 
typedef struct DkpWupPrivate DkpWupPrivate;
37
 
 
38
 
typedef struct
39
 
{
40
 
        DkpDevice                parent;
41
 
        DkpWupPrivate           *priv;
42
 
} DkpWup;
43
 
 
44
 
typedef struct
45
 
{
46
 
        DkpDeviceClass           parent_class;
47
 
} DkpWupClass;
48
 
 
49
 
GType            dkp_wup_get_type               (void);
50
 
DkpWup          *dkp_wup_new                    (void);
51
 
 
52
 
G_END_DECLS
53
 
 
54
 
#endif /* __DKP_WUP_H__ */
55