Compare commits

...

3 Commits

Author SHA1 Message Date
Simo Piiroinen
a5ced91829 Bump mce-dev version to 1.22.0 2017-04-10 15:23:43 +03:00
spiiroin
edbd329a9e Merge branch 'jb38001_volkey_policy' into 'master'
Add input policy related D-Bus constants

See merge request !5
2017-04-10 12:21:07 +00:00
Simo Piiroinen
1629e7c932 [mce] Add input policy related D-Bus constants. JB#38001
Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
2017-04-06 12:49:39 +03:00
5 changed files with 76 additions and 2 deletions

6
debian/changelog vendored
View File

@@ -1,3 +1,9 @@
mce-dev (1.22.0) unstable; urgency=low
* [mce] Add input policy related D-Bus constants. JB#38001
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Mon, 10 Apr 2017 15:22:37 +0300
mce-dev (1.21.0) unstable; urgency=low
* [mce] Expose battery/charging data on D-Bus. Contributes to JB#37422

View File

@@ -790,4 +790,59 @@
/*@}*/
/**
* @name Input policy D-Bus methods and signals
*/
/*@{*/
/** Get current touch screen input policy
*
* Possible return values are:
* - #MCE_INPUT_POLICY_ENABLED
* - #MCE_INPUT_POLICY_DISABLED
*
* @since v1.87.0
*
* @return input policy as DBUS_TYPE_STRING
*/
#define MCE_TOUCH_INPUT_POLICY_GET "get_touch_input_policy"
/** Indication for change of touch screen input policy
*
* Possible values are:
* - #MCE_INPUT_POLICY_ENABLED
* - #MCE_INPUT_POLICY_DISABLED
*
* @since v1.87.0
*
* @param input policy as DBUS_TYPE_STRING
*/
#define MCE_TOUCH_INPUT_POLICY_SIG "touch_input_policy_ind"
/** Get current volume key input policy
*
* Possible return values are:
* - #MCE_INPUT_POLICY_ENABLED
* - #MCE_INPUT_POLICY_DISABLED
*
* @since v1.87.0
*
* @return input policy as DBUS_TYPE_STRING
*/
#define MCE_VOLKEY_INPUT_POLICY_GET "get_keypad_input_policy"
/** Indication for change of volume key input policy
*
* Possible values are:
* - #MCE_INPUT_POLICY_ENABLED
* - #MCE_INPUT_POLICY_DISABLED
*
* @since v1.87.0
*
* @param input policy as DBUS_TYPE_STRING
*/
#define MCE_VOLKEY_INPUT_POLICY_SIG "keypad_input_policy_ind"
/*@}*/
#endif /* _MCE_DBUS_NAMES_H_ */

View File

@@ -322,4 +322,16 @@
*/
#define MCE_BATTERY_LEVEL_UNKNOWN (-1)
/** Input events should be processed normally
*
* @since v1.87.0
*/
#define MCE_INPUT_POLICY_ENABLED "enabled"
/** Input events should be ignored
*
* @since v1.87.0
*/
#define MCE_INPUT_POLICY_DISABLED "disabled"
#endif /* _MCE_MODE_NAMES_H_ */

2
mce.pc
View File

@@ -3,7 +3,7 @@ includedir=${prefix}/include
Name: mce
Description: Mode Control Entity
Version: 1.21.0
Version: 1.22.0
Requires:
Libs:
Cflags: -I${includedir}

View File

@@ -1,6 +1,6 @@
Name: mce-headers
Summary: Development files for mce
Version: 1.21.0
Version: 1.22.0
Release: 1
Group: Development/Libraries
License: LGPLv2
@@ -25,6 +25,7 @@ provided by the Mode Control Entity, and the signals emitted by it.
%setup -q -n %{name}-%{version}
%build
./verify_version
make %{?jobs:-j%jobs}
make doc