2017-11-18 17:09:20 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
2016-12-08 00:28:05 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/***
|
|
|
|
This file is part of systemd.
|
|
|
|
|
|
|
|
Copyright 2016 Lennart Poettering
|
|
|
|
***/
|
|
|
|
|
|
|
|
typedef enum VolatileMode {
|
|
|
|
VOLATILE_NO,
|
|
|
|
VOLATILE_YES,
|
|
|
|
VOLATILE_STATE,
|
|
|
|
_VOLATILE_MODE_MAX,
|
|
|
|
_VOLATILE_MODE_INVALID = -1
|
|
|
|
} VolatileMode;
|
|
|
|
|
|
|
|
VolatileMode volatile_mode_from_string(const char *s);
|
2016-12-13 12:45:19 +01:00
|
|
|
|
|
|
|
int query_volatile_mode(VolatileMode *ret);
|