]>
Commit | Line | Data |
---|---|---|
bf05675a DZ |
1 | /* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- |
2 | * | |
3 | * Copyright (C) 2008 David Zeuthen <davidz@redhat.com> | |
4 | * | |
5 | * This library is free software; you can redistribute it and/or | |
6 | * modify it under the terms of the GNU Lesser General Public | |
7 | * License as published by the Free Software Foundation; either | |
8 | * version 2 of the License, or (at your option) any later version. | |
9 | * | |
10 | * This library 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 GNU | |
13 | * Lesser General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU Lesser General Public | |
16 | * License along with this library; if not, write to the | |
17 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
18 | * Boston, MA 02111-1307, USA. | |
19 | */ | |
20 | ||
21 | #if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H) | |
22 | #error "Only <gudev/gudev.h> can be included directly, this file may disappear or change contents." | |
23 | #endif | |
24 | ||
25 | #ifndef __G_UDEV_ENUMS_H__ | |
26 | #define __G_UDEV_ENUMS_H__ | |
27 | ||
28 | #include <glib-object.h> | |
29 | ||
30 | G_BEGIN_DECLS | |
31 | ||
32 | /** | |
33 | * GUdevDeviceType: | |
34 | * @G_UDEV_DEVICE_TYPE_NONE: Device does not have a device file. | |
35 | * @G_UDEV_DEVICE_TYPE_BLOCK: Device is a block device. | |
36 | * @G_UDEV_DEVICE_TYPE_CHAR: Device is a character device. | |
37 | * | |
38 | * Enumeration used to specify a the type of a device. | |
39 | */ | |
40 | typedef enum | |
41 | { | |
42 | G_UDEV_DEVICE_TYPE_NONE = 0, | |
43 | G_UDEV_DEVICE_TYPE_BLOCK = 'b', | |
44 | G_UDEV_DEVICE_TYPE_CHAR = 'c', | |
45 | } GUdevDeviceType; | |
46 | ||
47 | G_END_DECLS | |
48 | ||
49 | #endif /* __G_UDEV_ENUMS_H__ */ |