AiCPlayer
Interface of aic vm - for rendering aspect, sensors, video records
Macros | Functions
config_env.c File Reference

Utilities to get config values from the environment. More...

#include "logger.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "config_env.h"
Include dependency graph for config_env.c:

Go to the source code of this file.

Macros

#define LOG_TAG   "config_env"
 

Functions

char * configvar_string (char *varname)
 Get the value of a config variable from the env. More...
 
int configvar_int (char *varname)
 Get the value of a integer config variable from the env. More...
 
int configvar_bool (char *varname)
 Get the value of a boolean config variable from the env. More...
 

Detailed Description

Utilities to get config values from the environment.

Definition in file config_env.c.

Macro Definition Documentation

#define LOG_TAG   "config_env"

Definition at line 11 of file config_env.c.

Function Documentation

int configvar_bool ( char *  varname)

Get the value of a boolean config variable from the env.

Parameters
varnameName of the env variable
Returns
1 or 0 depending on the truth value

A "true" value can be Y/y/1 and a "false" value can be N/n/0.

Definition at line 45 of file config_env.c.

Here is the caller graph for this function:

int configvar_int ( char *  varname)

Get the value of a integer config variable from the env.

Parameters
varnameName of the env variable
Returns
The value of the variable

Definition at line 36 of file config_env.c.

Here is the caller graph for this function:

char* configvar_string ( char *  varname)

Get the value of a config variable from the env.

Parameters
varnameName of the env variable
Returns
A buffer containing the variable

Definition at line 29 of file config_env.c.

Here is the caller graph for this function: