3
* gnome-bluetooth - Bluetooth integration for GNOME
5
* Copyright (C) 2012 Bastien Nocera <hadess@hadess.net>
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24
#ifndef __CC_RFKILL_GLIB_H
25
#define __CC_RFKILL_GLIB_H
27
#include <glib-object.h>
32
#define CC_RFKILL_TYPE_GLIB (cc_rfkill_glib_get_type())
33
#define CC_RFKILL_GLIB(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
34
CC_RFKILL_TYPE_GLIB, CcRfkillGlib))
35
#define CC_RFKILL_GLIB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \
36
CC_RFKILL_TYPE_GLIB, CcRfkillGlibClass))
37
#define RFKILL_IS_GLIB(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
39
#define RFKILL_IS_GLIB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \
41
#define RFKILL_GET_GLIB_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \
42
CC_RFKILL_TYPE_GLIB, CcRfkillGlibClass))
44
typedef struct CcRfkillGlibPrivate CcRfkillGlibPrivate;
46
typedef struct _CcRfkillGlib {
48
CcRfkillGlibPrivate *priv;
51
typedef struct _CcRfkillGlibClass {
52
GObjectClass parent_class;
54
void (*changed) (CcRfkillGlib *rfkill, GList *events);
57
GType cc_rfkill_glib_get_type(void);
59
CcRfkillGlib *cc_rfkill_glib_new (void);
60
int cc_rfkill_glib_open (CcRfkillGlib *rfkill);
61
int cc_rfkill_glib_send_event (CcRfkillGlib *rfkill, struct rfkill_event *event);
65
#endif /* __CC_RFKILL_GLIB_H */