Enumerations | Functions
Vortex Support: Support function used across the library

Enumerations

enum  VortexFileTest { 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 vortex_support_file_test. More...
 

Functions

void vortex_support_add_domain_search_path (VortexCtx *ctx, const char *domain, const char *path)
 Allows to define a new search path, providing the domain that will apply. More...
 
void vortex_support_add_domain_search_path_ref (VortexCtx *ctx, char *domain, char *path)
 Allows to define a new search path, providing the domain that will apply, providing the values already allocated. More...
 
void vortex_support_add_search_path (VortexCtx *ctx, const char *path)
 Allows to add new search path to be used by vortex_support_find_data_file. More...
 
void vortex_support_add_search_path_ref (VortexCtx *ctx, char *path)
 Adds a new path to be used while looking for files without making a local copy. More...
 
char * vortex_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 vortex_support_check_search_path (VortexCtx *ctx, const char *domain, const char *path)
 Allows to check if the provided path is alredy foudn in the provided domain. More...
 
void vortex_support_cleanup (VortexCtx *ctx)
 Allows to cleanup the vortex support module state from the provided VortexCtx object. More...
 
char * vortex_support_domain_find_data_file (VortexCtx *ctx, const char *domain, const char *name)
 Perform a file lookup, providing a domain at the file to lookup, using current search path configuration for the domain. More...
 
axl_bool vortex_support_file_test (const char *path, VortexFileTest test)
 Allows to perform a set of test for the provided path. More...
 
char * vortex_support_find_data_file (VortexCtx *ctx, const char *name)
 Allows to lookup for a file into the known vortex data file locations. More...
 
void vortex_support_free (int params,...)
 Allows to perform several memory dispose operations at the same time. More...
 
char * vortex_support_getenv (const char *env_name)
 Allows to get the string variable found at the provided env_name. More...
 
int vortex_support_getenv_int (const char *env_name)
 Allows to get the integer value stored in the provided environment varible. More...
 
char * vortex_support_inet_ntoa (VortexCtx *ctx, struct sockaddr_in *sin)
 Thread safe implementation for inet_ntoa. More...
 
void vortex_support_init (VortexCtx *ctx)
 Inits the vortex support module using the context provided (VortexCtx). More...
 
int vortex_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 vortex_support_pipe (VortexCtx *ctx, int descf[2])
 Creates a portable pipe (by creating a socket connected pair). More...
 
axl_bool vortex_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...
 
double vortex_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 vortex_support_unsetenv (const char *env_name)
 Allows to unset the provided environment variable. More...
 
int vortex_timeval_substract (struct timeval *a, struct timeval *b, struct timeval *result)
 Performs a timeval substract leaving the result in (result). More...
 

Detailed Description