Skip to content

Latest commit

 

History

History
91 lines (83 loc) · 3.8 KB

usb_moded-config.h

File metadata and controls

91 lines (83 loc) · 3.8 KB
 
Mar 22, 2011
Mar 22, 2011
1
/*
Aug 24, 2018
Aug 24, 2018
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
* Copyright (C) 2010 Nokia Corporation. All rights reserved.
* Copyright (C) 2012-2018 Jolla. All rights reserved.
*
* author: Philippe De Swert <philippe.de-swert@nokia.com>
* author: Philippe De Swert <phdeswer@lumi.maa>
* author: Philippe De Swert <philippedeswert@gmail.com>
* author: Philippe De Swert <philippe.deswert@jollamobile.com>
* author: Thomas Perl <m@thp.io>
* author: Slava Monich <slava.monich@jolla.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
*/
Dec 15, 2015
Dec 15, 2015
29
Aug 24, 2018
Aug 24, 2018
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#ifndef USB_MODED_CONFIG_H_
# define USB_MODED_CONFIG_H_
/* ========================================================================= *
* Constants
* ========================================================================= */
# define MODE_SETTING_ENTRY "usbmode"
# define MODE_SETTING_KEY "mode"
# define FS_MOUNT_DEFAULT "/dev/mmcblk0p1"
# define FS_MOUNT_ENTRY "mountpoints"
# define FS_MOUNT_KEY "mount"
# define FS_SYNC_ENTRY "sync"
# define FS_SYNC_KEY "nofua"
# define ALT_MOUNT_ENTRY "altmount"
# define ALT_MOUNT_KEY "mount"
# define UDEV_PATH_ENTRY "udev"
# define UDEV_PATH_KEY "path"
# define UDEV_SUBSYSTEM_KEY "subsystem"
# define CDROM_ENTRY "cdrom"
# define CDROM_PATH_KEY "path"
# define CDROM_TIMEOUT_KEY "timeout"
# define TRIGGER_ENTRY "trigger"
# define TRIGGER_PATH_KEY "path"
# define TRIGGER_UDEV_SUBSYSTEM "udev_subsystem"
# define TRIGGER_MODE_KEY "mode"
# define TRIGGER_PROPERTY_KEY "property"
# define TRIGGER_PROPERTY_VALUE_KEY "value"
# define NETWORK_ENTRY "network"
# define NETWORK_IP_KEY "ip"
# define NETWORK_INTERFACE_KEY "interface"
# define NETWORK_GATEWAY_KEY "gateway"
# define NETWORK_NAT_INTERFACE_KEY "nat_interface"
# define NETWORK_NETMASK_KEY "netmask"
# define NO_ROAMING_KEY "noroaming"
# define ANDROID_ENTRY "android"
# define ANDROID_MANUFACTURER_KEY "iManufacturer"
# define ANDROID_VENDOR_ID_KEY "idVendor"
# define ANDROID_PRODUCT_KEY "iProduct"
# define ANDROID_PRODUCT_ID_KEY "idProduct"
# define MODE_HIDE_KEY "hide"
# define MODE_WHITELIST_KEY "whitelist"
/* ========================================================================= *
* Types
* ========================================================================= */
Feb 13, 2014
Feb 13, 2014
76
Mar 28, 2018
Mar 28, 2018
77
78
/** Configuration change result
*/
May 26, 2015
May 26, 2015
79
typedef enum set_config_result_t {
Mar 28, 2018
Mar 28, 2018
80
81
82
SET_CONFIG_ERROR = -1, /**< Value change failed */
SET_CONFIG_UPDATED, /**< Value change succeeded */
SET_CONFIG_UNCHANGED, /**< Value did not change */
May 26, 2015
May 26, 2015
83
84
} set_config_result_t;
Aug 24, 2018
Aug 24, 2018
85
86
87
/* ========================================================================= *
* Prototypes
* ========================================================================= */
May 27, 2015
May 27, 2015
88
Aug 24, 2018
Aug 24, 2018
89
// (in usb_moded-config-private.h)
May 26, 2015
May 26, 2015
90
Aug 24, 2018
Aug 24, 2018
91
#endif /* USB_MODED_CONFIG_H_ */