odbx.h   odbx.h 
skipping to change at line 93 skipping to change at line 93
#define ODBX_ERR_NOCAP 0x02 #define ODBX_ERR_NOCAP 0x02
#define ODBX_ERR_PARAM 0x03 #define ODBX_ERR_PARAM 0x03
#define ODBX_ERR_NOMEM 0x04 #define ODBX_ERR_NOMEM 0x04
#define ODBX_ERR_TOOLONG 0x05 #define ODBX_ERR_TOOLONG 0x05
#define ODBX_ERR_NOTEXIST 0x06 #define ODBX_ERR_NOTEXIST 0x06
#define ODBX_ERR_NOOP 0x07 #define ODBX_ERR_NOOP 0x07
#define ODBX_ERR_OPTION 0x08 #define ODBX_ERR_OPTION 0x08
#define ODBX_ERR_OPTRO 0x09 #define ODBX_ERR_OPTRO 0x09
#define ODBX_ERR_OPTWR 0x0a #define ODBX_ERR_OPTWR 0x0a
#define ODBX_ERR_RESULT 0x0b #define ODBX_ERR_RESULT 0x0b
#define ODBX_ERR_TOOSHORT 0x0c
#define ODBX_ERR_VALUE 0x0d
#define ODBX_ERR_NOTSUP 0x0e
#define ODBX_MAX_ERRNO 0x0b #define ODBX_MAX_ERRNO 0x0e
/*
* ODBX bind type
*/
#define ODBX_BIND_SIMPLE 0
/* /*
* ODBX options * ODBX options
* *
* 0x0000 - 0x1fff reserved for api options * 0x0000 - 0x1fff reserved for api options
* 0x2000 - 0x3fff reserved for api extension options * 0x2000 - 0x3fff reserved for api extension options
* 0x4000 - 0xffff reserved for vendor specific and experimental options * 0x4000 - 0xffff reserved for vendor specific and experimental options
*/ */
#define ODBX_DISABLE 0
#define ODBX_ENABLE 1
/* /*
* Informational options * Informational options
*/ */
#define ODBX_OPT_API_VERSION 0x0000 #define ODBX_OPT_API_VERSION 0x0000
#define ODBX_OPT_THREAD_SAFE 0x0001 #define ODBX_OPT_THREAD_SAFE 0x0001
/* /*
* Security related options * Security related options
*/ */
skipping to change at line 138 skipping to change at line 150
typedef struct odbx_t odbx_t; typedef struct odbx_t odbx_t;
typedef struct odbx_result_t odbx_result_t; typedef struct odbx_result_t odbx_result_t;
/* /*
* ODBX basic operations * ODBX basic operations
*/ */
int odbx_init( odbx_t** handle, const char* backend, const char* host, cons t char* port ); int odbx_init( odbx_t** handle, const char* backend, const char* host, cons t char* port );
int odbx_bind_simple( odbx_t* handle, const char* database, const char* use rname, const char* password ); int odbx_bind( odbx_t* handle, const char* database, const char* who, const char* cred, int method );
int odbx_unbind( odbx_t* handle ); int odbx_unbind( odbx_t* handle );
int odbx_finish( odbx_t* handle ); int odbx_finish( odbx_t* handle );
int odbx_capabilities( odbx_t* handle, unsigned int cap ); int odbx_capabilities( odbx_t* handle, unsigned int cap );
int odbx_get_option( odbx_t* handle, unsigned int option, void* value ); int odbx_get_option( odbx_t* handle, unsigned int option, void* value );
int odbx_set_option( odbx_t* handle, unsigned int option, void* value ); int odbx_set_option( odbx_t* handle, unsigned int option, void* value );
skipping to change at line 174 skipping to change at line 186
unsigned long odbx_column_count( odbx_result_t* result ); unsigned long odbx_column_count( odbx_result_t* result );
const char* odbx_column_name( odbx_result_t* result, unsigned long pos ); const char* odbx_column_name( odbx_result_t* result, unsigned long pos );
int odbx_column_type( odbx_result_t* result, unsigned long pos ); int odbx_column_type( odbx_result_t* result, unsigned long pos );
unsigned long odbx_field_length( odbx_result_t* result, unsigned long pos ) ; unsigned long odbx_field_length( odbx_result_t* result, unsigned long pos ) ;
const char* odbx_field_value( odbx_result_t* result, unsigned long pos ); const char* odbx_field_value( odbx_result_t* result, unsigned long pos );
int odbx_field_bind( odbx_result_t* result, unsigned long pos, int type, vo
id* buffer, unsigned long* buflen );
// Depricated
int odbx_bind_simple( odbx_t* handle, const char* database, const char* use
rname, const char* password );
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif
 End of changes. 5 change blocks. 
2 lines changed or deleted 21 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/