plymouth-restore-suspend.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. From 152304f3fd2ebd04ca6d49c62dce4ddd2269326a Mon Sep 17 00:00:00 2001
  2. From: Frederic Crozat <fcrozat@suse.com>
  3. Date: Fri, 20 Jul 2012 11:07:29 +0200
  4. Subject: [PATCH] Revert "libply: remove the unused SPLASH_MODE_SUSPEND and
  5. SPLASH_MODE_RESUME"
  6. This reverts commit 02c596757753589f7e49d26eab2759d552f24671.
  7. Conflicts:
  8. src/libply-splash-core/ply-boot-splash-plugin.h
  9. src/plugins/splash/script/script-lib-plymouth.c
  10. ---
  11. src/libply-splash-core/ply-boot-splash-plugin.h | 2 ++
  12. src/plugins/splash/script/script-lib-plymouth.c | 6 ++++++
  13. 2 files changed, 8 insertions(+)
  14. diff --git a/src/libply-splash-core/ply-boot-splash-plugin.h b/src/libply-splash-core/ply-boot-splash-plugin.h
  15. index 2d73d66..1a67526 100644
  16. --- a/src/libply-splash-core/ply-boot-splash-plugin.h
  17. +++ b/src/libply-splash-core/ply-boot-splash-plugin.h
  18. @@ -38,6 +38,8 @@ typedef enum
  19. {
  20. PLY_BOOT_SPLASH_MODE_BOOT_UP,
  21. PLY_BOOT_SPLASH_MODE_SHUTDOWN,
  22. + PLY_BOOT_SPLASH_MODE_SUSPEND,
  23. + PLY_BOOT_SPLASH_MODE_RESUME,
  24. PLY_BOOT_SPLASH_MODE_UPDATES,
  25. PLY_BOOT_SPLASH_MODE_INVALID
  26. } ply_boot_splash_mode_t;
  27. diff --git a/src/plugins/splash/script/script-lib-plymouth.c b/src/plugins/splash/script/script-lib-plymouth.c
  28. index 5c648a6..eb7791e 100644
  29. --- a/src/plugins/splash/script/script-lib-plymouth.c
  30. +++ b/src/plugins/splash/script/script-lib-plymouth.c
  31. @@ -61,6 +61,12 @@ static script_return_t plymouth_get_mode (script_state_t *state,
  32. case PLY_BOOT_SPLASH_MODE_SHUTDOWN:
  33. obj = script_obj_new_string ("shutdown");
  34. break;
  35. + case PLY_BOOT_SPLASH_MODE_SUSPEND:
  36. + obj = script_obj_new_string ("suspend");
  37. + break;
  38. + case PLY_BOOT_SPLASH_MODE_RESUME:
  39. + obj = script_obj_new_string ("resume");
  40. + break;
  41. case PLY_BOOT_SPLASH_MODE_UPDATES:
  42. obj = script_obj_new_string ("updates");
  43. break;
  44. --
  45. 1.7.10.4