fred-mod-eppd-2.20.1
|
A memory allocated by these functions is automatically freed when processing of request is finished. More...
Functions | |
void * | epp_malloc (void *pool, unsigned size) |
Allocate memory from memory pool. More... | |
void * | epp_calloc (void *pool, unsigned size) |
Allocate memory from memory pool and prezero it. More... | |
char * | epp_strdup (void *pool, const char *str) |
Duplicate string from argument, the memory will be allocated from memory pool. More... | |
char * | epp_strcat (void *pool, const char *str1, const char *str2) |
Concatenate two strings in arguments, the memory will be allocated from memory pool. More... | |
char * | epp_sprintf (void *pool, const char *fmt,...) |
Print formatted string. More... | |
A memory allocated by these functions is automatically freed when processing of request is finished.
void* epp_calloc | ( | void * | pool, |
unsigned | size | ||
) |
Allocate memory from memory pool and prezero it.
pool | Memory pool. |
size | Number of bytes to allocate. |
Allocate memory from memory pool and prezero it.
This function is exported in header file to be used by other modules which are not aware of apache pools.
pool | Apache pool pointer. |
size | Size of chunk to allocate. |
Referenced by epp_parse_command(), info_keyset_data_copy(), info_nsset_data_copy(), parse_check(), parse_create_contact(), parse_create_domain(), parse_create_keyset(), parse_create_nsset(), parse_delete(), parse_info(), parse_infoKey(), parse_login(), parse_poll(), parse_renew(), parse_sendAuthInfo(), parse_test(), parse_transfer(), parse_update_contact(), parse_update_domain(), parse_update_keyset(), and parse_update_nsset().
void* epp_malloc | ( | void * | pool, |
unsigned | size | ||
) |
Allocate memory from memory pool.
pool | Memory pool. |
size | Number of bytes to allocate. |
Referenced by epilog_failure(), epp_parse_command(), info_contact_data_copy(), info_domain_data_copy(), info_keyset_data_copy(), info_nsset_data_copy(), new_error_item(), and q_add().
char* epp_sprintf | ( | void * | pool, |
const char * | fmt, | ||
... | |||
) |
Print formatted string.
pool | Memory pool. |
fmt | Format of string. |
Print formatted string.
This function is exported in header file to be used by other modules which are not aware of apache pools.
pool | Apache pool pointer. |
fmt | Format of string. |
char* epp_strcat | ( | void * | pool, |
const char * | str1, | ||
const char * | str2 | ||
) |
Concatenate two strings in arguments, the memory will be allocated from memory pool.
In case of memory allocation failure or if one of arguments is NULL the function returns NULL.
pool | Memory pool. |
str1 | String which will be the first one. |
str2 | String which will be appended. |
Concatenate two strings in arguments, the memory will be allocated from memory pool.
This function is exported in header file to be used by other modules which are not aware of apache pools.
pool | Apache pool pointer. |
str1 | First concatenated string. |
str2 | Second concatenated string. |
char* epp_strdup | ( | void * | pool, |
const char * | str | ||
) |
Duplicate string from argument, the memory will be allocated from memory pool.
pool | Memory pool. |
str | String which is going to be duplicated. |
Duplicate string from argument, the memory will be allocated from memory pool.
This function is exported in header file to be used by other modules which are not aware of apache pools.
pool | Apache pool pointer. |
str | String which is going to be duplicated. |
Referenced by create_dummy_answer(), epp_getSubtree(), unwrap_str(), unwrap_str_req(), xpath_get1(), xpath_get_attr(), and xpath_getn().