![]() |
![]() |
![]() |
urfkill Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
#include <urfkill.h> struct UrfKillswitch; struct UrfKillswitchClass; UrfEnumType urf_killswitch_get_switch_type (UrfKillswitch *killswitch
); UrfKillswitch * urf_killswitch_new (UrfEnumType type
);
struct UrfKillswitch;
The UrfKillswitch struct contains only private fields and should not be directly accessed.
UrfEnumType urf_killswitch_get_switch_type (UrfKillswitch *killswitch
);
Get the type of the killswitch.
|
a UrfKillswitch instance |
Returns : |
The type of the killswitch |
Since 0.3.0
UrfKillswitch * urf_killswitch_new (UrfEnumType type
);
Creates a new UrfKillswitch object.
|
The killswitch type |
Returns : |
a new UrfKillswitch object. |
Since 0.3.0
"state"
property"state" gint : Read / Write
The state of the killswitch. See UrfEnumState.
Writing the states other than URF_ENUM_STATE_UNBLOCKED or URF_ENUM_STATE_SOFT_BLOCKED will be ignored. Also, the state writing may not take effect since it depends on the state of the hardware.
Allowed values: [-1,2]
Default value: -1
Since 0.3.0
"state-changed"
signalvoid user_function (UrfKillswitch *client,
gint state,
gpointer user_data) : Run Last
The state-changed signal is emitted when the killswitch state is changed. See UrfEnumState.
Since 0.3.0
|
the UrfKillswitch instance that emitted the signal |
|
the new state |
|
user data set when the signal handler was connected. |