Skip to content

Commit

Permalink
Merge branch 'jb38001_volkey_policy' into 'master'
Browse files Browse the repository at this point in the history
Add input policy related D-Bus constants

See merge request !5
  • Loading branch information
spiiroin committed Apr 10, 2017
2 parents 6ca9301 + 1629e7c commit edbd329
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
55 changes: 55 additions & 0 deletions include/mce/dbus-names.h
Expand Up @@ -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_ */
12 changes: 12 additions & 0 deletions include/mce/mode-names.h
Expand Up @@ -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_ */

0 comments on commit edbd329

Please sign in to comment.