Commit 78526793 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

main: Add profile activation reason "Resume"

parent 4aa9922e
Pipeline #624145 passed with stage
in 2 minutes and 26 seconds
......@@ -315,6 +315,8 @@ ppd_profile_activation_reason_to_str (PpdProfileActivationReason reason)
return "reset";
case PPD_PROFILE_ACTIVATION_REASON_USER:
return "user";
case PPD_PROFILE_ACTIVATION_REASON_RESUME:
return "resume";
case PPD_PROFILE_ACTIVATION_REASON_PROGRAM_HOLD:
return "program-hold";
default:
......
......@@ -41,6 +41,8 @@ typedef enum {
* because drivers are getting reprobed.
* @PPD_PROFILE_ACTIVATION_REASON_USER: setting profile because the user
* requested it.
* @PPD_PROFILE_ACTIVATION_REASON_RESUME: setting profile because preference
* is lost during suspend.
* @PPD_PROFILE_ACTIVATION_REASON_PROGRAM_HOLD: setting profile because a program
* requested it through the `HoldProfile` method.
*
......@@ -52,6 +54,7 @@ typedef enum{
PPD_PROFILE_ACTIVATION_REASON_INTERNAL = 0,
PPD_PROFILE_ACTIVATION_REASON_RESET,
PPD_PROFILE_ACTIVATION_REASON_USER,
PPD_PROFILE_ACTIVATION_REASON_RESUME,
PPD_PROFILE_ACTIVATION_REASON_PROGRAM_HOLD
} PpdProfileActivationReason;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment