odbx.h   odbx.h 
/* /*
* OpenDBX - a simple but extensible database abstraction layer * OpenDBX - A simple but extensible database abstraction layer
* Copyright (C) 2004 Norbert Sendetzky <norbert@linuxnetworks.de> * Copyright (C) 2004-2006 Norbert Sendetzky <norbert@linuxnetworks.de>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public * modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either * License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version. * version 2 of the License, or (at your option) any later version.
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details. * Library General Public License for more details.
skipping to change at line 35 skipping to change at line 35
#define ODBX_H #define ODBX_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/* /*
* ODBX (SQL2003) data types * ODBX (SQL2003) data types
*/ */
#define ODBX_BOOLEAN 0x00 #define ODBX_TYPE_BOOLEAN 0x00
#define ODBX_SMALLINT 0x01 #define ODBX_TYPE_SMALLINT 0x01
#define ODBX_INTEGER 0x02 #define ODBX_TYPE_INTEGER 0x02
#define ODBX_BIGINT 0x03 #define ODBX_TYPE_BIGINT 0x03
#define ODBX_DECIMAL 0x07 #define ODBX_TYPE_DECIMAL 0x07
#define ODBX_REAL 0x08 #define ODBX_TYPE_REAL 0x08
#define ODBX_DOUBLE 0x09 #define ODBX_TYPE_DOUBLE 0x09
#define ODBX_FLOAT 0x0f #define ODBX_TYPE_FLOAT 0x0f
#define ODBX_CHAR 0x10 #define ODBX_TYPE_CHAR 0x10
#define ODBX_NCHAR 0x11 #define ODBX_TYPE_NCHAR 0x11
#define ODBX_VARCHAR 0x12 #define ODBX_TYPE_VARCHAR 0x12
#define ODBX_NVARCHAR 0x13 #define ODBX_TYPE_NVARCHAR 0x13
#define ODBX_CLOB 0x20 #define ODBX_TYPE_CLOB 0x20
#define ODBX_NCLOB 0x21 #define ODBX_TYPE_NCLOB 0x21
#define ODBX_XML 0x22 #define ODBX_TYPE_XML 0x22
#define ODBX_BLOB 0x2f #define ODBX_TYPE_BLOB 0x2f
#define ODBX_TYPE_TIME 0x30
#define ODBX_TYPE_TIME_TZ 0x31
#define ODBX_TYPE_TIMESTAMP 0x32
#define ODBX_TYPE_TIMESTAMP_TZ 0x33
#define ODBX_TYPE_DATE 0x34
#define ODBX_TYPE_INTERVAL 0x35
#define ODBX_TIME 0x30 #define ODBX_TYPE_ARRAY 0x40
#define ODBX_TIME_TZ 0x31 #define ODBX_TYPE_MULTISET 0x41
#define ODBX_TIMESTAMP 0x32
#define ODBX_TIMESTAMP_TZ 0x33
#define ODBX_DATE 0x34
#define ODBX_INTERVAL 0x35
#define ODBX_ARRAY 0x40 #define ODBX_TYPE_DATALINK 0x50
#define ODBX_MULTISET 0x41
#define ODBX_DATALINK 0x50
#define ODBX_UNKNOWN 0xff #define ODBX_TYPE_UNKNOWN 0xff
/* /*
* Extended capabilities supported by the backends * Extended capabilities supported by the backends
* 0x0000-0x00ff: Well known capabilities * 0x0000-0x00ff: Well known capabilities
*/ */
#define ODBX_CAP_BASIC 0x0000 #define ODBX_CAP_BASIC 0x0000
/* /*
* ODBX error types * ODBX error types
skipping to change at line 97 skipping to change at line 97
#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_NOTSUP 0x0c #define ODBX_ERR_NOTSUP 0x0c
#define ODBX_MAX_ERRNO 0x0c #define ODBX_MAX_ERRNO 0x0c
#define ODBX_ERR_TOOLONG ODBX_ERR_SIZE
/* /*
* ODBX bind type * ODBX bind type
*/ */
#define ODBX_BIND_SIMPLE 0 #define ODBX_BIND_SIMPLE 0
/* /*
* ODBX options * ODBX options
* *
* 0x0000 - 0x1fff reserved for api options * 0x0000 - 0x1fff reserved for api options
skipping to change at line 190 skipping to change at line 188
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 );
/* /*
* Depricated functions * Depricated defines and functions
* *
* They won't be available in version 2.0 any more * They won't be available in version 2.0 any more
* Please don't use and replace them in your code * Please don't use and replace them in your code
*/ */
#ifdef ODBX_DEPRICATED /*
* Depricated types
*/
int odbx_bind_simple( odbx_t* handle, const char* database, const char* use #define ODBX_BOOLEAN 0x00
rname, const char* password ); #define ODBX_SMALLINT 0x01
#define ODBX_INTEGER 0x02
#define ODBX_BIGINT 0x03
#define ODBX_DECIMAL 0x07
#endif #define ODBX_REAL 0x08
#define ODBX_DOUBLE 0x09
#define ODBX_FLOAT 0x0f
#define ODBX_CHAR 0x10
#define ODBX_NCHAR 0x11
#define ODBX_VARCHAR 0x12
#define ODBX_NVARCHAR 0x13
#define ODBX_CLOB 0x20
#define ODBX_NCLOB 0x21
#define ODBX_XML 0x22
#define ODBX_BLOB 0x2f
#define ODBX_TIME 0x30
#define ODBX_TIME_TZ 0x31
#define ODBX_TIMESTAMP 0x32
#define ODBX_TIMESTAMP_TZ 0x33
#define ODBX_DATE 0x34
#define ODBX_INTERVAL 0x35
#define ODBX_ARRAY 0x40
#define ODBX_MULTISET 0x41
#define ODBX_DATALINK 0x50
#define ODBX_UNKNOWN 0xff
/*
* Depricated errors
*/
#define ODBX_ERR_TOOLONG ODBX_ERR_SIZE
/*
* Depricated functions
*/
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. 10 change blocks. 
40 lines changed or deleted 83 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/