diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-30 22:32:09 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-30 22:32:09 +0200 |
commit | 23a749f2857088547c8ef3966e96b37c71510a1b (patch) | |
tree | a3739420ab6e9a18e997b3b54e179c9b1905d21c /src/core/swap.h | |
parent | 6ed796c827f7e89a7900713b132301bced1a73c6 (diff) | |
parent | 4ed2f1b1f106b84276eaf8cc4d27cca54653845e (diff) |
Merge pull request #1419 from keszybz/shell-completion
Shell completion tweaks
Diffstat (limited to 'src/core/swap.h')
-rw-r--r-- | src/core/swap.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/core/swap.h b/src/core/swap.h index 9136b9abab..7f29603c32 100644 --- a/src/core/swap.h +++ b/src/core/swap.h @@ -26,22 +26,6 @@ typedef struct Swap Swap; - -typedef enum SwapState { - SWAP_DEAD, - SWAP_ACTIVATING, /* /sbin/swapon is running, but the swap not yet enabled. */ - SWAP_ACTIVATING_DONE, /* /sbin/swapon is running, and the swap is done. */ - SWAP_ACTIVE, - SWAP_DEACTIVATING, - SWAP_ACTIVATING_SIGTERM, - SWAP_ACTIVATING_SIGKILL, - SWAP_DEACTIVATING_SIGTERM, - SWAP_DEACTIVATING_SIGKILL, - SWAP_FAILED, - _SWAP_STATE_MAX, - _SWAP_STATE_INVALID = -1 -} SwapState; - typedef enum SwapExecCommand { SWAP_EXEC_ACTIVATE, SWAP_EXEC_DEACTIVATE, @@ -120,9 +104,6 @@ extern const UnitVTable swap_vtable; int swap_process_device_new(Manager *m, struct udev_device *dev); int swap_process_device_remove(Manager *m, struct udev_device *dev); -const char* swap_state_to_string(SwapState i) _const_; -SwapState swap_state_from_string(const char *s) _pure_; - const char* swap_exec_command_to_string(SwapExecCommand i) _const_; SwapExecCommand swap_exec_command_from_string(const char *s) _pure_; |