src/shutdown/detach-swap.h
raw| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | #pragma once |
| 3 | |
| 4 | /*** |
| 5 | Copyright © 2010 ProFUSION embedded systems |
| 6 | ***/ |
| 7 | |
| 8 | #include "shared-forward.h" |
| 9 | #include "list.h" |
| 10 | |
| 11 | int swapoff_all(bool *changed); |
| 12 | |
| 13 | /* This is exported just for testing */ |
| 14 | typedef struct SwapDevice { |
| 15 | char *path; |
| 16 | LIST_FIELDS(struct SwapDevice, swap_device); |
| 17 | } SwapDevice; |
| 18 | |
| 19 | int swap_list_get(const char *swaps, SwapDevice **head); |
| 20 | void swap_devices_list_free(SwapDevice **head); |