OpenDBX/C API/odbx finish

From Linuxnetworks
< OpenDBX‎ | C API
Revision as of 22:33, 19 February 2007 by Nose (Talk | contribs)

Jump to: navigation, search


#include <odbx.h>

int odbx_finish(
    odbx_t* handle ) 

Description

Frees all resources allocated by odbx_init(). Be sure you invoked odbx_unbind() before to avoid memory leaks.

Parameters

Return values

odbx_finish() returns ODBX_ERR_SUCCESS, or an error code whose value is less than zero if handle is invalid or one of the operations couldn't be completed successfully by the backend module. Possible error codes are listed in the error section and they can be feed to odbx_error() and odbx_error_type() to get further details.

Errors

-ODBX_ERR_PARAM 
handle is NULL or the supplied connection object is invalid

See also



Back to Overview