odbx.h   odbx.h 
/* /*
* OpenDBX - A simple but extensible database abstraction layer * OpenDBX - A simple but extensible database abstraction layer
* Copyright (C) 2004-2006 Norbert Sendetzky <norbert@linuxnetworks.de> * Copyright (C) 2004-2007 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.
* *
* 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.
*/ */
#include <inttypes.h> #ifdef HAVE_CONFIG_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 95 skipping to change at line 103
#define ODBX_ERR_PARAM 0x03 #define ODBX_ERR_PARAM 0x03
#define ODBX_ERR_NOMEM 0x04 #define ODBX_ERR_NOMEM 0x04
#define ODBX_ERR_SIZE 0x05 #define ODBX_ERR_SIZE 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_NOTSUP 0x0c #define ODBX_ERR_NOTSUP 0x0c
#define ODBX_ERR_HANDLE 0x0d
#define ODBX_MAX_ERRNO 0x0c #define ODBX_MAX_ERRNO 0x0d
/* /*
* ODBX bind type * ODBX bind type
*/ */
#define ODBX_BIND_SIMPLE 0 #define ODBX_BIND_SIMPLE 0
/* /*
* ODBX options * ODBX options
* *
skipping to change at line 121 skipping to change at line 130
#define ODBX_DISABLE 0 #define ODBX_DISABLE 0
#define ODBX_ENABLE 1 #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
#define ODBX_OPT_LIB_VERSION 0x0002
/* /*
* Security related options * Security related options
*/ */
#define ODBX_TLS_NEVER 0x00 #define ODBX_TLS_NEVER 0x00
#define ODBX_TLS_TRY 0x01 #define ODBX_TLS_TRY 0x01
#define ODBX_TLS_ALWAYS 0x02 #define ODBX_TLS_ALWAYS 0x02
#define ODBX_OPT_TLS 0x0010 #define ODBX_OPT_TLS 0x0010
/* /*
* Implemented options * Implemented options
*/ */
#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
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 );
 End of changes. 7 change blocks. 
3 lines changed or deleted 14 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/