1 /* 2 * SPDX-License-Identifier: GPL-2.0-or-later 3 * 4 * Copyright (c) 2018 Jan Stancek <jstancek@redhat.com> 5 */ 6 7 #ifndef TST_SYS_CONF_H__ 8 #define TST_SYS_CONF_H__ 9 10 struct tst_sys_conf { 11 char path[PATH_MAX]; 12 char value[PATH_MAX]; 13 struct tst_sys_conf *next; 14 }; 15 16 int tst_sys_conf_save_str(const char *path, const char *value); 17 int tst_sys_conf_save(const char *path); 18 void tst_sys_conf_restore(int verbose); 19 void tst_sys_conf_dump(void); 20 21 #endif 22