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

Enumerations

enum  MyQttFileTest { 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 myqtt_support_file_test. More...
 

Functions

void myqtt_support_add_domain_search_path (MyQttCtx *ctx, const char *domain, const char *path)
 Allows to define a new search path, providing the domain that will apply. More...
 
void myqtt_support_add_domain_search_path_ref (MyQttCtx *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 myqtt_support_add_search_path (MyQttCtx *ctx, const char *path)
 Allows to add new search path to be used by myqtt_support_find_data_file. More...
 
void myqtt_support_add_search_path_ref (MyQttCtx *ctx, char *path)
 Adds a new path to be used while looking for files without making a local copy. More...
 
char * myqtt_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 myqtt_support_check_search_path (MyQttCtx *ctx, const char *domain, const char *path)
 Allows to check if the provided path is alredy foudn in the provided domain. More...
 
void myqtt_support_cleanup (MyQttCtx *ctx)
 Allows to cleanup the myqtt support module state from the provided MyQttCtx object. More...
 
char * myqtt_support_domain_find_data_file (MyQttCtx *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 myqtt_support_file_test (const char *path, MyQttFileTest test)
 Allows to perform a set of test for the provided path. More...
 
char * myqtt_support_find_data_file (MyQttCtx *ctx, const char *name)
 Allows to lookup for a file into the known myqtt data file locations. More...
 
void myqtt_support_free (int params,...)
 Allows to perform several memory dispose operations at the same time. More...
 
char * myqtt_support_getenv (const char *env_name)
 Allows to get the string variable found at the provided env_name. More...
 
int myqtt_support_getenv_int (const char *env_name)
 Allows to get the integer value stored in the provided environment varible. More...
 
char * myqtt_support_inet_ntoa (MyQttCtx *ctx, struct sockaddr_in *sin)
 Thread safe implementation for inet_ntoa. More...
 
int myqtt_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 myqtt_support_pipe (MyQttCtx *ctx, int descf[2])
 Creates a portable pipe (by creating a socket connected pair). More...
 
axl_bool myqtt_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 myqtt_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 myqtt_support_unsetenv (const char *env_name)
 Allows to unset the provided environment variable. More...
 
int myqtt_timeval_substract (struct timeval *a, struct timeval *b, struct timeval *result)
 Performs a timeval substract leaving the result in (result). More...
 

Detailed Description