blob: a299407340c99be315b7bed8ff2f6f974520beaa [file] [log] [blame]
Radek Krejcied5acc52019-04-25 15:57:04 +02001/**
2 * @file configuration.h
3 * @author Michal Vasko <mvasko@cesnet.cz>
4 * @brief yanglint configuration header
5 *
6 * Copyright (c) 2017 CESNET, z.s.p.o.
7 *
8 * This source code is licensed under BSD 3-Clause License (the "License").
9 * You may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * https://opensource.org/licenses/BSD-3-Clause
13 */
14
15#ifndef CONFIGURATION_H_
16#define CONFIGURATION_H_
17
18
19/**
20 * @brief Finds the current user's yanglint dir
21 * @return NULL on failure, dynamically allocated yanglint dir path
22 * otherwise
23 */
24char *get_yanglint_dir(void);
25
26/**
27 * @brief Checks all the relevant files and directories creating any
28 * that are missing, sets the saved configuration (currently only history)
29 */
30void load_config(void);
31
32/**
33 * @brief Saves the current configuration (currently only history)
34 */
35void store_config(void);
36
37#endif /* CONFIGURATION_H_ */