~ubuntu-branches/ubuntu/utopic/urfkill/utopic

« back to all changes in this revision

Viewing changes to liburfkill-glib/urf-client.h

  • Committer: Package Import Robot
  • Author(s): Keng-Yu Lin
  • Date: 2012-07-24 22:48:51 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20120724224851-vt9pyex059i6uhiz
Tags: upstream-0.4.0
ImportĀ upstreamĀ versionĀ 0.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
2
2
 *
3
 
 * Copyright (C) 2010 Gary Ching-Pang Lin <glin@suse.com>
 
3
 * Copyright (C) 2010-2011 Gary Ching-Pang Lin <glin@suse.com>
4
4
 *
5
5
 * Licensed under the GNU Lesser General Public License Version 2.1
6
6
 *
40
40
#define URF_IS_CLIENT(o)                (G_TYPE_CHECK_INSTANCE_TYPE ((o), URF_TYPE_CLIENT))
41
41
#define URF_IS_CLIENT_CLASS(k)          (G_TYPE_CHECK_CLASS_TYPE ((k), URF_TYPE_CLIENT))
42
42
#define URF_CLIENT_GET_CLASS(o)         (G_TYPE_INSTANCE_GET_CLASS ((o), URF_TYPE_CLIENT, UrfClientClass))
43
 
#define URF_CLIENT_ERROR                (urf_client_error_quark ())
44
 
#define URF_CLIENT_TYPE_ERROR           (urf_client_error_get_type ())
45
43
 
46
44
typedef struct _UrfClient UrfClient;
47
45
typedef struct _UrfClientClass UrfClientClass;
79
77
                                                         const int       keycode);
80
78
};
81
79
 
82
 
typedef enum
83
 
{
84
 
        URF_CLIENT_ERROR_GENERAL,
85
 
        URF_CLIENT_NUM_ERRORS
86
 
} UrfClientError;
87
 
 
88
80
/* general */
89
81
GType            urf_client_get_type                    (void);
90
82
UrfClient       *urf_client_new                         (void);
91
 
GQuark           urf_client_error_quark                 (void);
92
 
GType            urf_client_error_get_type              (void);
93
83
 
94
84
/* generic */
95
85
gboolean         urf_client_enumerate_devices_sync      (UrfClient      *client,
97
87
                                                         GError         **error);
98
88
GList           *urf_client_get_devices                 (UrfClient      *client);
99
89
gboolean         urf_client_set_block                   (UrfClient      *client,
100
 
                                                         UrfSwitchType   type,
 
90
                                                         UrfEnumType     type,
101
91
                                                         const gboolean  block,
102
92
                                                         GCancellable   *cancellable,
103
93
                                                         GError         **error);