Memory Management
Reference the Vivox Core SDK API.
Read time 2 minutesLast updated 20 hours ago
Functions
Name | |
|---|---|
| VIVOXSDK_DLLEXPORT int | vx_cookie_create(const char * value, VX_COOKIE * cookie) Allocate and initialize a cookie. |
| VIVOXSDK_DLLEXPORT int | vx_cookie_free(VX_COOKIE * cookie) Free a cookie. |
| VIVOXSDK_DLLEXPORT char * | vx_strdup(const char * ) Allocate string data to send to the SDK. |
| VIVOXSDK_DLLEXPORT int | vx_free(char * ) Free string data returned to the application. |
| VIVOXSDK_DLLEXPORT int | vx_on_application_exit(void ) Some applications may need to call this routine before exiting. |
| VIVOXSDK_DLLEXPORT int | vx_destroy_message(vx_message_base_t * message) Deallocate any message of any type. |
| VIVOXSDK_DLLEXPORT int | destroy_req(vx_req_base_t * pCmd) Destroy a request of any type. |
| VIVOXSDK_DLLEXPORT int | destroy_resp(vx_resp_base_t * pCmd) Deallocate a response object of any type. |
| VIVOXSDK_DLLEXPORT int | destroy_evt(vx_evt_base_t * pCmd) Free any event of any type. |
Functions Documentation
function vx_cookie_create
Allocate and initialize a cookie.VIVOXSDK_DLLEXPORT int vx_cookie_create( const char * value, VX_COOKIE * cookie)
function vx_cookie_free
Free a cookie.VIVOXSDK_DLLEXPORT int vx_cookie_free( VX_COOKIE * cookie)
function vx_strdup
Allocate string data to send to the SDK. Note: This function will not work until vx_initialize3() is called and after vx_uninitialize() is called.VIVOXSDK_DLLEXPORT char * vx_strdup( const char * )
function vx_free
Free string data returned to the application. Note: This function will not work until vx_initialize3() is called and after vx_uninitialize() is called. This function is rarely used in practice.VIVOXSDK_DLLEXPORT int vx_free( char * )
function vx_on_application_exit
Some applications may need to call this routine before exiting. Note: Applications must call vx_uninitialize() before calling this routine. Attention: PC, console, and mobile applications are not required to call this routine because it has no effect for applications on these platforms.VIVOXSDK_DLLEXPORT int vx_on_application_exit( void )
function vx_destroy_message
Deallocate any message of any type.VIVOXSDK_DLLEXPORT int vx_destroy_message( vx_message_base_t * message)
function destroy_req
Destroy a request of any type.VIVOXSDK_DLLEXPORT int destroy_req( vx_req_base_t * pCmd)
function destroy_resp
Deallocate a response object of any type.VIVOXSDK_DLLEXPORT int destroy_resp( vx_resp_base_t * pCmd)
function destroy_evt
Free any event of any type.VIVOXSDK_DLLEXPORT int destroy_evt( vx_evt_base_t * pCmd)