gudev.h | gudev.h | |||
---|---|---|---|---|
skipping to change at line 24 | skipping to change at line 24 | |||
* | * | |||
* You should have received a copy of the GNU Lesser General Public | * You should have received a copy of the GNU Lesser General Public | |||
* License along with this library; if not, write to the | * License along with this library; if not, write to the | |||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |||
* Boston, MA 02111-1307, USA. | * Boston, MA 02111-1307, USA. | |||
*/ | */ | |||
#ifndef __G_UDEV_H__ | #ifndef __G_UDEV_H__ | |||
#define __G_UDEV_H__ | #define __G_UDEV_H__ | |||
#ifndef G_UDEV_API_IS_SUBJECT_TO_CHANGE | ||||
#error GUdev is currently unstable API. You must define G_UDEV_API_IS_SUBJ | ||||
ECT_TO_CHANGE to acknowledge c_this. | ||||
#endif | ||||
#define _GUDEV_INSIDE_GUDEV_H 1 | #define _GUDEV_INSIDE_GUDEV_H 1 | |||
#include <gudev/gudevenums.h> | #include <gudev/gudevenums.h> | |||
#include <gudev/gudevenumtypes.h> | #include <gudev/gudevenumtypes.h> | |||
#include <gudev/gudevtypes.h> | #include <gudev/gudevtypes.h> | |||
#include <gudev/gudevclient.h> | #include <gudev/gudevclient.h> | |||
#include <gudev/gudevdevice.h> | #include <gudev/gudevdevice.h> | |||
#undef _GUDEV_INSIDE_GUDEV_H | #undef _GUDEV_INSIDE_GUDEV_H | |||
#endif /* __G_UDEV_H__ */ | #endif /* __G_UDEV_H__ */ | |||
End of changes. 1 change blocks. | ||||
5 lines changed or deleted | 0 lines changed or added | |||
gudevtypes.h | gudevtypes.h | |||
---|---|---|---|---|
skipping to change at line 29 | skipping to change at line 29 | |||
*/ | */ | |||
#if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H) | #if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H) | |||
#error "Only <gudev/gudev.h> can be included directly, this file may disapp ear or change contents." | #error "Only <gudev/gudev.h> can be included directly, this file may disapp ear or change contents." | |||
#endif | #endif | |||
#ifndef __G_UDEV_TYPES_H__ | #ifndef __G_UDEV_TYPES_H__ | |||
#define __G_UDEV_TYPES_H__ | #define __G_UDEV_TYPES_H__ | |||
#include <gudev/gudevenums.h> | #include <gudev/gudevenums.h> | |||
#include <sys/types.h> | ||||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
typedef struct _GUdevClient GUdevClient; | typedef struct _GUdevClient GUdevClient; | |||
typedef struct _GUdevDevice GUdevDevice; | typedef struct _GUdevDevice GUdevDevice; | |||
/** | /** | |||
* GUdevDeviceNumber: | * GUdevDeviceNumber: | |||
* | * | |||
* Corresponds to the standard #dev_t type as defined by POSIX (Until | * Corresponds to the standard #dev_t type as defined by POSIX (Until | |||
* bug 584517 is resolved this is aliased to an integer). | * bug 584517 is resolved this work-around is needed). | |||
*/ | */ | |||
typedef int GUdevDeviceNumber; | #ifdef _GUDEV_WORK_AROUND_DEV_T_BUG | |||
typedef guint64 GUdevDeviceNumber; /* __UQUAD_TYPE */ | ||||
#else | ||||
typedef dev_t GUdevDeviceNumber; | ||||
#endif | ||||
G_END_DECLS | G_END_DECLS | |||
#endif /* __G_UDEV_TYPES_H__ */ | #endif /* __G_UDEV_TYPES_H__ */ | |||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 7 lines changed or added | |||