~ubuntu-branches/ubuntu/quantal/gnome-bluetooth/quantal-updates

« back to all changes in this revision

Viewing changes to lib/bluetooth-killswitch.h

  • Committer: Package Import Robot
  • Author(s): Daniel Holbach
  • Date: 2013-08-05 11:05:20 UTC
  • mfrom: (78.1.4 quantal)
  • Revision ID: package-import@ubuntu.com-20130805110520-88ckfmu0a0n1yich
Tags: 3.6.0-0ubuntu1.1
debian/patches/99_add_microsoft_mice.patch: add Microsoft Sculpt/Wedge 
mouse (LP: #1094744, LP: #1158462). Thanks, Marcos Barbosa, Anton Anikin
and Anthony Wong for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
G_BEGIN_DECLS
31
31
 
32
32
typedef enum {
33
 
        KILLSWITCH_STATE_NO_ADAPTER = -1,
34
 
        KILLSWITCH_STATE_SOFT_BLOCKED = 0,
35
 
        KILLSWITCH_STATE_UNBLOCKED,
36
 
        KILLSWITCH_STATE_HARD_BLOCKED
37
 
} KillswitchState;
 
33
        BLUETOOTH_KILLSWITCH_STATE_NO_ADAPTER = -1,
 
34
        BLUETOOTH_KILLSWITCH_STATE_SOFT_BLOCKED = 0,
 
35
        BLUETOOTH_KILLSWITCH_STATE_UNBLOCKED,
 
36
        BLUETOOTH_KILLSWITCH_STATE_HARD_BLOCKED
 
37
} BluetoothKillswitchState;
38
38
 
39
39
#define BLUETOOTH_TYPE_KILLSWITCH (bluetooth_killswitch_get_type())
40
40
#define BLUETOOTH_KILLSWITCH(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
60
60
struct _BluetoothKillswitchClass {
61
61
        GObjectClass parent_class;
62
62
 
63
 
        void (*state_changed) (BluetoothKillswitch *killswitch, KillswitchState state);
 
63
        void (*state_changed) (BluetoothKillswitch *killswitch, BluetoothKillswitchState state);
64
64
};
65
65
 
66
66
GType bluetooth_killswitch_get_type(void);
67
67
 
68
68
BluetoothKillswitch * bluetooth_killswitch_new (void);
69
69
 
70
 
gboolean bluetooth_killswitch_has_killswitches (BluetoothKillswitch *killswitch);
71
 
void bluetooth_killswitch_set_state (BluetoothKillswitch *killswitch, KillswitchState state);
72
 
KillswitchState bluetooth_killswitch_get_state (BluetoothKillswitch *killswitch);
73
 
const char *bluetooth_killswitch_state_to_string (KillswitchState state);
 
70
gboolean                  bluetooth_killswitch_has_killswitches (BluetoothKillswitch *killswitch);
 
71
void                      bluetooth_killswitch_set_state        (BluetoothKillswitch *killswitch,
 
72
                                                                 BluetoothKillswitchState state);
 
73
BluetoothKillswitchState  bluetooth_killswitch_get_state        (BluetoothKillswitch *killswitch);
 
74
const char               *bluetooth_killswitch_state_to_string  (BluetoothKillswitchState state);
74
75
 
75
76
G_END_DECLS
76
77