~ubuntu-branches/ubuntu/wily/upower/wily

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-03-19 19:19:51 UTC
  • mfrom: (17.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20130319191951-2lmdpe40kitm2zbx
Tags: 0.9.20-1
* New upstream release.
* Bump libpolkit-gobject-1-dev build dependency as per upstream
  configure.ac.
* Build with --enable-deprecated, we are not ready yet to drop
  suspend/hibernate functionality.
* Bump Standards-Version to 3.9.4. No changes necessary.
* Add "build" autopkgtest to compile/link/run a simple program against
  libupower-glib.
* Drop unnecessary "needs-root" restriction from upstream-system
  autopkgtest.
* Add no_deprecation_define.patch: Do not require applications to define
  UPOWER_ENABLE_DEPRECATED to access suspend/resume functionality. We are
  not ready to do that yet in Debian.

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) 2012 Julien Danjou <julien@danjou.info>
 
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_UNIFYING_H__
 
22
#define __UP_DEVICE_UNIFYING_H__
 
23
 
 
24
#include <glib-object.h>
 
25
#include "up-device.h"
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
29
#define UP_TYPE_DEVICE_UNIFYING         (up_device_unifying_get_type ())
 
30
#define UP_DEVICE_UNIFYING(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), UP_TYPE_DEVICE_UNIFYING, UpDeviceUnifying))
 
31
#define UP_DEVICE_UNIFYING_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), UP_TYPE_DEVICE_UNIFYING, UpDeviceUnifyingClass))
 
32
#define UP_IS_DEVICE_UNIFYING(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), UP_TYPE_DEVICE_UNIFYING))
 
33
#define UP_IS_DEVICE_UNIFYING_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), UP_TYPE_DEVICE_UNIFYING))
 
34
#define UP_DEVICE_UNIFYING_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), UP_TYPE_DEVICE_UNIFYING, UpDeviceUnifyingClass))
 
35
 
 
36
typedef struct UpDeviceUnifyingPrivate UpDeviceUnifyingPrivate;
 
37
 
 
38
typedef struct
 
39
{
 
40
        UpDevice                 parent;
 
41
        UpDeviceUnifyingPrivate *priv;
 
42
} UpDeviceUnifying;
 
43
 
 
44
typedef struct
 
45
{
 
46
        UpDeviceClass           parent_class;
 
47
} UpDeviceUnifyingClass;
 
48
 
 
49
GType                   up_device_unifying_get_type     (void);
 
50
UpDeviceUnifying        *up_device_unifying_new         (void);
 
51
 
 
52
G_END_DECLS
 
53
 
 
54
#endif /* __UP_DEVICE_UNIFYING_H__ */
 
55