postgresql/src/interfaces/odbc/environ.h

46 lines
963 B
C
Raw Normal View History

/* File: environ.h
*
* Description: See "environ.c"
*
* Comments: See "notice.txt" for copyright and license information.
*
*/
#ifndef __ENVIRON_H__
#define __ENVIRON_H__
1998-07-23 01:47:48 +02:00
#ifdef HAVE_CONFIG_H
#include "config.h"
1998-07-23 01:47:48 +02:00
#endif
#include "psqlodbc.h"
1998-07-23 01:47:48 +02:00
#ifndef WIN32
1998-07-23 01:47:48 +02:00
#include "iodbc.h"
#include "isql.h"
#include "isqlext.h"
#else
#include <windows.h>
#include <sql.h>
#include <sqlext.h>
1998-07-23 01:47:48 +02:00
#endif
#define ENV_ALLOC_ERROR 1
/********** Environment Handle *************/
struct EnvironmentClass_ {
char *errormsg;
int errornumber;
};
/* Environment prototypes */
EnvironmentClass *EN_Constructor(void);
char EN_Destructor(EnvironmentClass *self);
char EN_get_error(EnvironmentClass *self, int *number, char **message);
char EN_add_connection(EnvironmentClass *self, ConnectionClass *conn);
char EN_remove_connection(EnvironmentClass *self, ConnectionClass *conn);
1998-06-16 23:29:19 +02:00
void EN_log_error(char *func, char *desc, EnvironmentClass *self);
#endif