1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2  *
3  * Copyright (C) 2007 William Jon McCann <mccann@jhu.edu>
4  * Copyright (C) 2010 Red Hat, Inc.
5  *
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.
10  *
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.
15  *
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 - Suite 500, Boston, MA 02110-1335, USA.
19  *
20  */
21 
22 #ifndef __CSD_WACOM_MANAGER_H
23 #define __CSD_WACOM_MANAGER_H
24 
25 #include <glib-object.h>
26 
27 G_BEGIN_DECLS
28 
29 #define CSD_TYPE_WACOM_MANAGER         (csd_wacom_manager_get_type ())
30 #define CSD_WACOM_MANAGER(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), CSD_TYPE_WACOM_MANAGER, CsdWacomManager))
31 #define CSD_WACOM_MANAGER_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), CSD_TYPE_WACOM_MANAGER, CsdWacomManagerClass))
32 #define CSD_IS_WACOM_MANAGER(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), CSD_TYPE_WACOM_MANAGER))
33 #define CSD_IS_WACOM_MANAGER_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), CSD_TYPE_WACOM_MANAGER))
34 #define CSD_WACOM_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CSD_TYPE_WACOM_MANAGER, CsdWacomManagerClass))
35 
36 typedef struct CsdWacomManagerPrivate CsdWacomManagerPrivate;
37 
38 typedef struct
39 {
40         GObject                     parent;
41         CsdWacomManagerPrivate *priv;
42 } CsdWacomManager;
43 
44 typedef struct
45 {
46         GObjectClass   parent_class;
47 } CsdWacomManagerClass;
48 
49 GType                   csd_wacom_manager_get_type            (void);
50 
51 CsdWacomManager *       csd_wacom_manager_new                 (void);
52 gboolean                csd_wacom_manager_start               (CsdWacomManager *manager,
53                                                                GError         **error);
54 void                    csd_wacom_manager_stop                (CsdWacomManager *manager);
55 
56 G_END_DECLS
57 
58 #endif /* __CSD_WACOM_MANAGER_H */
59