1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
3
* Copyright (C) 2008 Richard Hughes <richard@hughsie.com>
5
* Licensed under the GNU General Public License Version 2
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22
#ifndef __UP_DEVICE_LIST_H
23
#define __UP_DEVICE_LIST_H
25
#include <glib-object.h>
31
#define UP_TYPE_DEVICE_LIST (up_device_list_get_type ())
32
#define UP_DEVICE_LIST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), UP_TYPE_DEVICE_LIST, UpDeviceList))
33
#define UP_DEVICE_LIST_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), UP_TYPE_DEVICE_LIST, UpDeviceListClass))
34
#define UP_IS_DEVICE_LIST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), UP_TYPE_DEVICE_LIST))
35
#define UP_IS_DEVICE_LIST_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), UP_TYPE_DEVICE_LIST))
36
#define UP_DEVICE_LIST_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), UP_TYPE_DEVICE_LIST, UpDeviceListClass))
37
#define UP_DEVICE_LIST_ERROR (up_device_list_error_quark ())
38
#define UP_DEVICE_LIST_TYPE_ERROR (up_device_list_error_get_type ())
40
typedef struct UpDeviceListPrivate UpDeviceListPrivate;
45
UpDeviceListPrivate *priv;
50
GObjectClass parent_class;
53
GType up_device_list_get_type (void);
54
UpDeviceList *up_device_list_new (void);
55
void up_device_list_test (gpointer user_data);
57
GObject *up_device_list_lookup (UpDeviceList *list,
59
gboolean up_device_list_insert (UpDeviceList *list,
62
gboolean up_device_list_remove (UpDeviceList *list,
64
GPtrArray *up_device_list_get_array (UpDeviceList *list);
68
#endif /* __UP_DEVICE_LIST_H */