2
* * Copyright (C) 2008-2009 Ali <aliov@xfce.org>
4
* Licensed under the GNU General Public License Version 2
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
#ifndef __HAL_MANAGER_H
22
#define __HAL_MANAGER_H
24
#include <glib-object.h>
28
#define HAL_TYPE_MANAGER (hal_manager_get_type () )
29
#define HAL_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST((o), HAL_TYPE_MANAGER, HalManager))
30
#define HAL_IS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), HAL_TYPE_MANAGER))
32
typedef struct HalManagerPrivate HalManagerPrivate;
37
HalManagerPrivate *priv;
43
GObjectClass parent_class;
45
void (*device_added) (HalManager *manager,
47
void (*device_removed) (HalManager *manager,
52
GType hal_manager_get_type (void) G_GNUC_CONST;
53
HalManager *hal_manager_new (void);
55
gchar **hal_manager_find_device_by_capability (HalManager *manager,
56
const gchar *capability);
58
gboolean hal_manager_get_is_laptop (HalManager *manager) G_GNUC_PURE;
60
void hal_manager_free_string_array (gchar **array);
64
#endif /* __HAL_MANAGER_H */