usb_moded 0.86.0+mer64
usb_moded-devicelock.h
Go to the documentation of this file.
1
27
28/*
29 * Interacts with the devicelock to know if we can expose the system contents or not
30 */
31
32#ifndef USB_MODED_DEVICELOCK_H_
33# define USB_MODED_DEVICELOCK_H_
34
35# include <stdbool.h>
36
37/* ========================================================================= *
38 * Constants
39 * ========================================================================= */
40
41# define DEVICELOCK_SERVICE "org.nemomobile.devicelock"
42# define DEVICELOCK_OBJECT "/devicelock"
43# define DEVICELOCK_INTERFACE "org.nemomobile.lipstick.devicelock"
44# define DEVICELOCK_GET_STATE_REQ "state"
45# define DEVICELOCK_STATE_CHANGED_SIG "stateChanged"
46
47# define DEVICELOCK_STATE_CHANGED_MATCH\
48 "type='signal'"\
49 ",interface='"DEVICELOCK_INTERFACE"'"\
50 ",path='"DEVICELOCK_OBJECT"'"\
51 ",member='"DEVICELOCK_STATE_CHANGED_SIG"'"
52
53# define DEVICELOCK_NAME_OWNER_CHANGED_MATCH\
54 "type='signal'"\
55 ",interface='"DBUS_INTERFACE_DBUS"'"\
56 ",member='"DBUS_NAME_OWNER_CHANGED_SIG"'"\
57 ",arg0='"DEVICELOCK_SERVICE"'"
58
59/* ========================================================================= *
60 * Prototypes
61 * ========================================================================= */
62
63/* ------------------------------------------------------------------------- *
64 * DEVICELOCK
65 * ------------------------------------------------------------------------- */
66
68bool devicelock_start_listener (void);
69void devicelock_stop_listener (void);
70
71#endif /* USB_MODED_DEVICELOCK_H_ */
bool devicelock_have_export_permission(void)