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