Blame gudev/gudevtypes.h

rpm-build 07bc2b
/* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
rpm-build 07bc2b
 *
rpm-build 07bc2b
 * Copyright (C) 2008 David Zeuthen <davidz@redhat.com>
rpm-build 07bc2b
 *
rpm-build 07bc2b
 * This library is free software; you can redistribute it and/or
rpm-build 07bc2b
 * modify it under the terms of the GNU Library General Public
rpm-build 07bc2b
 * License as published by the Free Software Foundation; either
rpm-build 07bc2b
 * version 2 of the License, or (at your option) any later version.
rpm-build 07bc2b
 *
rpm-build 07bc2b
 * This library is distributed in the hope that it will be useful,
rpm-build 07bc2b
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
rpm-build 07bc2b
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
rpm-build 07bc2b
 * Library General Public License for more details.
rpm-build 07bc2b
 *
rpm-build 07bc2b
 * You should have received a copy of the GNU Library General Public
rpm-build 07bc2b
 * License along with this library; if not, write to the Free Software
rpm-build 07bc2b
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
rpm-build 07bc2b
 */
rpm-build 07bc2b
rpm-build 07bc2b
#if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H)
rpm-build 07bc2b
#error "Only <gudev/gudev.h> can be included directly, this file may disappear or change contents."
rpm-build 07bc2b
#endif
rpm-build 07bc2b
rpm-build 07bc2b
#ifndef __G_UDEV_TYPES_H__
rpm-build 07bc2b
#define __G_UDEV_TYPES_H__
rpm-build 07bc2b
rpm-build 07bc2b
#include <gudev/gudevenums.h>
rpm-build 07bc2b
#include <sys/types.h>
rpm-build 07bc2b
rpm-build 07bc2b
G_BEGIN_DECLS
rpm-build 07bc2b
rpm-build 07bc2b
typedef struct _GUdevClient GUdevClient;
rpm-build 07bc2b
typedef struct _GUdevDevice GUdevDevice;
rpm-build 07bc2b
typedef struct _GUdevEnumerator GUdevEnumerator;
rpm-build 07bc2b
rpm-build 07bc2b
/**
rpm-build 07bc2b
 * GUdevDeviceNumber:
rpm-build 07bc2b
 *
rpm-build 07bc2b
 * Corresponds to the standard #dev_t type as defined by POSIX (Until
rpm-build 07bc2b
 * bug 584517 is resolved this work-around is needed).
rpm-build 07bc2b
 */
rpm-build 07bc2b
#ifdef _GUDEV_WORK_AROUND_DEV_T_BUG
rpm-build 07bc2b
typedef guint64 GUdevDeviceNumber; /* __UQUAD_TYPE */
rpm-build 07bc2b
#else
rpm-build 07bc2b
typedef dev_t GUdevDeviceNumber;
rpm-build 07bc2b
#endif
rpm-build 07bc2b
rpm-build 07bc2b
G_END_DECLS
rpm-build 07bc2b
rpm-build 07bc2b
#endif /* __G_UDEV_TYPES_H__ */