| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#ifndef __CK_VT_MONITOR_H |
| 22 |
#define __CK_VT_MONITOR_H |
| 23 |
|
| 24 |
#include <glib-object.h> |
| 25 |
|
| 26 |
G_BEGIN_DECLS |
| 27 |
|
| 28 |
#define CK_TYPE_VT_MONITOR (ck_vt_monitor_get_type ()) |
| 29 |
#define CK_VT_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CK_TYPE_VT_MONITOR, CkVtMonitor)) |
| 30 |
#define CK_VT_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), CK_TYPE_VT_MONITOR, CkVtMonitorClass)) |
| 31 |
#define CK_IS_VT_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CK_TYPE_VT_MONITOR)) |
| 32 |
#define CK_IS_VT_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CK_TYPE_VT_MONITOR)) |
| 33 |
#define CK_VT_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CK_TYPE_VT_MONITOR, CkVtMonitorClass)) |
| 34 |
|
| 35 |
typedef struct CkVtMonitorPrivate CkVtMonitorPrivate; |
| 36 |
|
| 37 |
typedef struct |
| 38 |
{ |
| 39 |
GObject parent; |
| 40 |
CkVtMonitorPrivate *priv; |
| 41 |
} CkVtMonitor; |
| 42 |
|
| 43 |
typedef struct |
| 44 |
{ |
| 45 |
GObjectClass parent_class; |
| 46 |
|
| 47 |
void (* active_changed) (CkVtMonitor *vt_monitor, |
| 48 |
guint num); |
| 49 |
} CkVtMonitorClass; |
| 50 |
|
| 51 |
typedef enum |
| 52 |
{ |
| 53 |
CK_VT_MONITOR_ERROR_GENERAL, |
| 54 |
CK_VT_MONITOR_ERROR_ALREADY_ACTIVE, |
| 55 |
CK_VT_MONITOR_ERROR_NO_CONSOLE |
| 56 |
} CkVtMonitorError; |
| 57 |
|
| 58 |
#define CK_VT_MONITOR_ERROR ck_vt_monitor_error_quark () |
| 59 |
|
| 60 |
GQuark ck_vt_monitor_error_quark (void); |
| 61 |
GType ck_vt_monitor_get_type (void); |
| 62 |
CkVtMonitor * ck_vt_monitor_new (void); |
| 63 |
|
| 64 |
gboolean ck_vt_monitor_set_active (CkVtMonitor *vt_monitor, |
| 65 |
guint32 num, |
| 66 |
GError **error); |
| 67 |
gboolean ck_vt_monitor_get_active (CkVtMonitor *vt_monitor, |
| 68 |
guint32 *num, |
| 69 |
GError **error); |
| 70 |
|
| 71 |
G_END_DECLS |
| 72 |
|
| 73 |
#endif |