Skip to content

Latest commit

 

History

History
66 lines (55 loc) · 2.39 KB

usb_moded-devicelock.h

File metadata and controls

66 lines (55 loc) · 2.39 KB
 
Mar 22, 2011
Mar 22, 2011
1
/*
Jul 6, 2018
Jul 6, 2018
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
* Copyright (C) 2010 Nokia Corporation. All rights reserved.
* Copyright (C) 2013-2018 Jolla Ltd.
*
* Author: Philippe De Swert <philippe.de-swert@nokia.com>
* Author: Vesa Halttunen <vesa.halttunen@jollamobile.com>
* Author: Simo Piiroinen <simo.piiroinen@jollamobile.com>
* Author: Andrew den Exter <andrew.den.exter@jolla.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Lesser GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the Lesser GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
Mar 22, 2011
Mar 22, 2011
25
26
27
28
/*
* Interacts with the devicelock to know if we can expose the system contents or not
*/
Jul 6, 2018
Jul 6, 2018
29
30
31
32
33
34
35
36
#ifndef USB_MODED_DEVICELOCK_H_
# define USB_MODED_DEVICELOCK_H_
# include <stdbool.h>
/* ========================================================================= *
* Constants
* ========================================================================= */
Mar 22, 2011
Mar 22, 2011
37
Jul 6, 2018
Jul 6, 2018
38
39
40
41
42
# define DEVICELOCK_SERVICE "org.nemomobile.devicelock"
# define DEVICELOCK_OBJECT "/devicelock"
# define DEVICELOCK_INTERFACE "org.nemomobile.lipstick.devicelock"
# define DEVICELOCK_GET_STATE_REQ "state"
# define DEVICELOCK_STATE_CHANGED_SIG "stateChanged"
Nov 7, 2016
Nov 7, 2016
43
Jul 6, 2018
Jul 6, 2018
44
# define DEVICELOCK_STATE_CHANGED_MATCH\
Nov 7, 2016
Nov 7, 2016
45
46
47
48
49
"type='signal'"\
",interface='"DEVICELOCK_INTERFACE"'"\
",path='"DEVICELOCK_OBJECT"'"\
",member='"DEVICELOCK_STATE_CHANGED_SIG"'"
Jul 6, 2018
Jul 6, 2018
50
# define DEVICELOCK_NAME_OWNER_CHANGED_MATCH\
Nov 7, 2016
Nov 7, 2016
51
52
53
54
"type='signal'"\
",interface='"DBUS_INTERFACE_DBUS"'"\
",member='"DBUS_NAME_OWNER_CHANGED_SIG"'"\
",arg0='"DEVICELOCK_SERVICE"'"
Jul 6, 2018
Jul 6, 2018
55
56
57
58
59
60
61
62
63
64
65
66
/* ========================================================================= *
* Prototypes
* ========================================================================= */
/* -- devicelock -- */
bool devicelock_have_export_permission(void);
bool devicelock_start_listener (void);
void devicelock_stop_listener (void);
#endif /* USB_MODED_DEVICELOCK_H_ */