Helium
config.h
Go to the documentation of this file.
1 /* *
2  * Lightway Core
3  * Copyright (C) 2021 Express VPN International Ltd.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
26 #ifndef CONFIG_H
27 #define CONFIG_H
28 
29 #include <he.h>
30 
31 // Helpers - internal only below this point
32 
38 bool he_internal_config_is_string_length_okay(const char *string);
39 
40 bool he_internal_config_is_empty_string(const char *string);
41 bool he_internal_config_is_string_too_long(const char *string);
42 
43 he_return_code_t he_internal_set_config_string(char *field, const char *value);
44 he_return_code_t he_internal_set_config_int(int *field, int value);
45 
46 #endif // CONFIG_H
enum he_return_code he_return_code_t
All possible return codes for helium.
bool he_internal_config_is_string_length_okay(const char *string)
Checks to make sure the string does not exceed the maximum.
Definition: config.c:22
Core internal header file for libhelium.