odbx.h   odbx.h 
skipping to change at line 21 skipping to change at line 21
* 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.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free * License along with this library; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA. * 02111-1307 USA.
*/ */
#ifdef HAVE_CONFIG_H #include <inttypes.h>
#include <config.h>
#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>
#else
#include <sys/types.h> #include <sys/types.h>
#endif
#include <sys/time.h> #include <sys/time.h>
#ifndef ODBX_H #ifndef ODBX_H
#define ODBX_H #define ODBX_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/* /*
skipping to change at line 85 skipping to change at line 77
#define ODBX_TYPE_DATALINK 0x50 #define ODBX_TYPE_DATALINK 0x50
#define ODBX_TYPE_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
#define ODBX_CAP_LO 0x0001
/* /*
* ODBX error types * ODBX error types
*/ */
#define ODBX_ERR_SUCCESS 0x00 #define ODBX_ERR_SUCCESS 0x00
#define ODBX_ERR_BACKEND 0x01 #define ODBX_ERR_BACKEND 0x01
#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
skipping to change at line 154 skipping to change at line 147
*/ */
#define ODBX_OPT_MULTI_STATEMENTS 0x0020 #define ODBX_OPT_MULTI_STATEMENTS 0x0020
#define ODBX_OPT_PAGED_RESULTS 0x0021 #define ODBX_OPT_PAGED_RESULTS 0x0021
#define ODBX_OPT_COMPRESS 0x0022 #define ODBX_OPT_COMPRESS 0x0022
#define ODBX_OPT_MODE 0x0023 #define ODBX_OPT_MODE 0x0023
#define ODBX_OPT_CONNECT_TIMEOUT 0x0024 #define ODBX_OPT_CONNECT_TIMEOUT 0x0024
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;
typedef struct odbx_lo_t odbx_lo_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( odbx_t* handle, const char* database, const char* who, const char* cred, int method ); 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 );
skipping to change at line 200 skipping to change at line 194
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 );
/* /*
* ODBX large object operations
*/
int odbx_lo_open( odbx_t* handle, odbx_lo_t** lo, const char* value );
ssize_t odbx_lo_read( odbx_lo_t* lo, void* buffer, size_t buflen );
int odbx_lo_close( odbx_lo_t* lo );
/*
* Depricated defines and 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
*/ */
/* /*
* Depricated types * Depricated types
*/ */
 End of changes. 5 change blocks. 
9 lines changed or deleted 13 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/