|
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_CLIENT_H__
|
|
rpm-build |
07bc2b |
#define __G_UDEV_CLIENT_H__
|
|
rpm-build |
07bc2b |
|
|
rpm-build |
07bc2b |
#include <gudev/gudevtypes.h>
|
|
rpm-build |
07bc2b |
|
|
rpm-build |
07bc2b |
G_BEGIN_DECLS
|
|
rpm-build |
07bc2b |
|
|
rpm-build |
07bc2b |
#define G_UDEV_TYPE_CLIENT (g_udev_client_get_type ())
|
|
rpm-build |
07bc2b |
#define G_UDEV_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_UDEV_TYPE_CLIENT, GUdevClient))
|
|
rpm-build |
07bc2b |
#define G_UDEV_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_UDEV_TYPE_CLIENT, GUdevClientClass))
|
|
rpm-build |
07bc2b |
#define G_UDEV_IS_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_UDEV_TYPE_CLIENT))
|
|
rpm-build |
07bc2b |
#define G_UDEV_IS_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_UDEV_TYPE_CLIENT))
|
|
rpm-build |
07bc2b |
#define G_UDEV_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_UDEV_TYPE_CLIENT, GUdevClientClass))
|
|
rpm-build |
07bc2b |
|
|
rpm-build |
07bc2b |
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
|
rpm-build |
07bc2b |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GUdevClient, g_object_unref)
|
|
rpm-build |
07bc2b |
#endif
|
|
rpm-build |
07bc2b |
|
|
rpm-build |
07bc2b |
typedef struct _GUdevClientClass GUdevClientClass;
|
|
rpm-build |
07bc2b |
typedef struct _GUdevClientPrivate GUdevClientPrivate;
|
|
rpm-build |
07bc2b |
|
|
rpm-build |
07bc2b |
/**
|
|
rpm-build |
07bc2b |
* GUdevClient:
|
|
rpm-build |
07bc2b |
*
|
|
rpm-build |
07bc2b |
* The #GUdevClient struct is opaque and should not be accessed directly.
|
|
rpm-build |
07bc2b |
*/
|
|
rpm-build |
07bc2b |
struct _GUdevClient
|
|
rpm-build |
07bc2b |
{
|
|
rpm-build |
07bc2b |
GObject parent;
|
|
rpm-build |
07bc2b |
|
|
rpm-build |
07bc2b |
/*< private >*/
|
|
rpm-build |
07bc2b |
GUdevClientPrivate *priv;
|
|
rpm-build |
07bc2b |
};
|
|
rpm-build |
07bc2b |
|
|
rpm-build |
07bc2b |
/**
|
|
rpm-build |
07bc2b |
* GUdevClientClass:
|
|
rpm-build |
07bc2b |
* @parent_class: Parent class.
|
|
rpm-build |
07bc2b |
* @uevent: Signal class handler for the #GUdevClient::uevent signal.
|
|
rpm-build |
07bc2b |
*
|
|
rpm-build |
07bc2b |
* Class structure for #GUdevClient.
|
|
rpm-build |
07bc2b |
*/
|
|
rpm-build |
07bc2b |
struct _GUdevClientClass
|
|
rpm-build |
07bc2b |
{
|
|
rpm-build |
07bc2b |
GObjectClass parent_class;
|
|
rpm-build |
07bc2b |
|
|
rpm-build |
07bc2b |
/* signals */
|
|
rpm-build |
07bc2b |
void (*uevent) (GUdevClient *client,
|
|
rpm-build |
07bc2b |
const gchar *action,
|
|
rpm-build |
07bc2b |
GUdevDevice *device);
|
|
rpm-build |
07bc2b |
|
|
rpm-build |
07bc2b |
/*< private >*/
|
|
rpm-build |
07bc2b |
/* Padding for future expansion */
|
|
rpm-build |
07bc2b |
void (*reserved1) (void);
|
|
rpm-build |
07bc2b |
void (*reserved2) (void);
|
|
rpm-build |
07bc2b |
void (*reserved3) (void);
|
|
rpm-build |
07bc2b |
void (*reserved4) (void);
|
|
rpm-build |
07bc2b |
void (*reserved5) (void);
|
|
rpm-build |
07bc2b |
void (*reserved6) (void);
|
|
rpm-build |
07bc2b |
void (*reserved7) (void);
|
|
rpm-build |
07bc2b |
void (*reserved8) (void);
|
|
rpm-build |
07bc2b |
};
|
|
rpm-build |
07bc2b |
|
|
rpm-build |
07bc2b |
GType g_udev_client_get_type (void) G_GNUC_CONST;
|
|
rpm-build |
07bc2b |
GUdevClient *g_udev_client_new (const gchar* const *subsystems);
|
|
rpm-build |
07bc2b |
GList *g_udev_client_query_by_subsystem (GUdevClient *client,
|
|
rpm-build |
07bc2b |
const gchar *subsystem);
|
|
rpm-build |
07bc2b |
GUdevDevice *g_udev_client_query_by_device_number (GUdevClient *client,
|
|
rpm-build |
07bc2b |
GUdevDeviceType type,
|
|
rpm-build |
07bc2b |
GUdevDeviceNumber number);
|
|
rpm-build |
07bc2b |
GUdevDevice *g_udev_client_query_by_device_file (GUdevClient *client,
|
|
rpm-build |
07bc2b |
const gchar *device_file);
|
|
rpm-build |
07bc2b |
GUdevDevice *g_udev_client_query_by_sysfs_path (GUdevClient *client,
|
|
rpm-build |
07bc2b |
const gchar *sysfs_path);
|
|
rpm-build |
07bc2b |
GUdevDevice *g_udev_client_query_by_subsystem_and_name (GUdevClient *client,
|
|
rpm-build |
07bc2b |
const gchar *subsystem,
|
|
rpm-build |
07bc2b |
const gchar *name);
|
|
rpm-build |
07bc2b |
|
|
rpm-build |
07bc2b |
G_END_DECLS
|
|
rpm-build |
07bc2b |
|
|
rpm-build |
07bc2b |
#endif /* __G_UDEV_CLIENT_H__ */
|