xsecurelock 1.8.0
XSecureLock is an X11 screen lock utility.
Loading...
Searching...
No Matches
env_settings.h
Go to the documentation of this file.
1/*
2Copyright 2018 Google Inc. All rights reserved.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17#ifndef ENV_SETTINGS_H
18#define ENV_SETTINGS_H
19
26unsigned long long GetUnsignedLongLongSetting(const char* name,
27 unsigned long long def);
28
35long GetLongSetting(const char* name, long def);
36
43int GetIntSetting(const char* name, int def);
44
51double GetDoubleSetting(const char* name, double def);
52
59const char* GetStringSetting(const char* name, const char* def);
60
68const char* GetExecutablePathSetting(const char* name, const char* def,
69 int is_auth);
70
71#endif
const char * GetStringSetting(const char *name, const char *def)
Loads a setting from the environment.
Definition env_settings.c:95
long GetLongSetting(const char *name, long def)
Loads an integer setting from the environment.
Definition env_settings.c:47
unsigned long long GetUnsignedLongLongSetting(const char *name, unsigned long long def)
Loads an integer setting from the environment.
Definition env_settings.c:27
const char * GetExecutablePathSetting(const char *name, const char *def, int is_auth)
Loads a setting from the environment that specifies a binary name.
Definition env_settings.c:103
double GetDoubleSetting(const char *name, double def)
Loads a floating-point setting from the environment.
Definition env_settings.c:76
int GetIntSetting(const char *name, int def)
Loads an integer setting from the environment.
Definition env_settings.c:66