chiark / gitweb /
gudev: several minor introspection fixes
[elogind.git] / src / extras / gudev / gudevtypes.h
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_TYPES_H__
26 #define __G_UDEV_TYPES_H__
27
28 #include <gudev/gudevenums.h>
29 #include <sys/types.h>
30
31 G_BEGIN_DECLS
32
33 typedef struct _GUdevClient GUdevClient;
34 typedef struct _GUdevDevice GUdevDevice;
35 typedef struct _GUdevEnumerator GUdevEnumerator;
36
37 /**
38  * GUdevDeviceNumber:
39  *
40  * Corresponds to the standard #dev_t type as defined by POSIX (Until
41  * bug 584517 is resolved this work-around is needed).
42  */
43 #ifdef _GUDEV_WORK_AROUND_DEV_T_BUG
44 typedef guint64 GUdevDeviceNumber; /* __UQUAD_TYPE */
45 #else
46 typedef dev_t GUdevDeviceNumber;
47 #endif
48
49 G_END_DECLS
50
51 #endif /* __G_UDEV_TYPES_H__ */