Enumerations | Functions
Valvula_support

Enumerations

enum  ValvulaFileTest { FILE_EXISTS = 1 << 0, FILE_IS_LINK = 1 << 1, FILE_IS_DIR = 1 << 2, FILE_IS_REGULAR = 1 << 3 }
 Available tests to be performed while using valvula_support_file_test. More...
 

Functions

char * valvula_support_build_filename (const char *name,...)
 Allows to create a path to a filename, by providing its tokens, ending them with NULL. More...
 
axl_bool valvula_support_file_test (const char *path, ValvulaFileTest test)
 Allows to perform a set of test for the provided path. More...
 
char * valvula_support_getenv (const char *env_name)
 Allows to get the string variable found at the provided env_name. More...
 
int valvula_support_getenv_int (const char *env_name)
 Allows to get the integer value stored in the provided environment varible. More...
 
char * valvula_support_inet_ntoa (ValvulaCtx *ctx, struct sockaddr_in *sin)
 Thread safe implementation for inet_ntoa. More...
 
int valvula_support_itoa (unsigned int value, char *buffer, int buffer_size)
 Allows to convert the provided integer value into its string representation leaving the result on the provided buffer. More...
 
int valvula_support_pipe (ValvulaCtx *ctx, int descf[2])
 Creates a portable pipe (by creating a socket connected pair). More...
 
axl_bool valvula_support_setenv (const char *env_name, const char *env_value)
 Allows to configure the environment value identified by env_name, with the value provided env_value. More...
 
const char * valvula_support_state_str (ValvulaState state)
 Allows to convert the provided state into a string that represents its state. More...
 
double valvula_support_strtod (const char *param, char **string_aux)
 Tries to translate the double provided on the string received, doing the best effort (meaning that the locale will be skiped). More...
 
axl_bool valvula_support_unsetenv (const char *env_name)
 Allows to unset the provided environment variable. More...
 
int valvula_timeval_substract (struct timeval *a, struct timeval *b, struct timeval *result)
 Performs a timeval substract leaving the result in (result). More...
 

Detailed Description