1998-06-03 22:33:45 +02:00
|
|
|
|
|
|
|
/* File: environ.h
|
|
|
|
*
|
|
|
|
* Description: See "environ.c"
|
|
|
|
*
|
|
|
|
* Comments: See "notice.txt" for copyright and license information.
|
|
|
|
*
|
|
|
|
*/
|
1998-04-13 17:02:05 +02:00
|
|
|
|
|
|
|
#ifndef __ENVIRON_H__
|
|
|
|
#define __ENVIRON_H__
|
|
|
|
|
1998-07-23 01:47:48 +02:00
|
|
|
#ifdef HAVE_CONFIG_H
|
1998-10-06 07:58:41 +02:00
|
|
|
#include "config.h"
|
1998-07-23 01:47:48 +02:00
|
|
|
#endif
|
|
|
|
|
1998-04-13 17:02:05 +02:00
|
|
|
#include "psqlodbc.h"
|
1998-07-23 01:47:48 +02:00
|
|
|
|
1998-10-06 07:58:41 +02:00
|
|
|
#ifndef WIN32
|
1998-07-23 01:47:48 +02:00
|
|
|
#include "iodbc.h"
|
|
|
|
#include "isql.h"
|
|
|
|
#include "isqlext.h"
|
|
|
|
#else
|
1998-04-13 17:02:05 +02:00
|
|
|
#include <windows.h>
|
|
|
|
#include <sql.h>
|
1998-06-03 22:33:45 +02:00
|
|
|
#include <sqlext.h>
|
1998-07-23 01:47:48 +02:00
|
|
|
#endif
|
1998-06-03 22:33:45 +02:00
|
|
|
|
1998-04-13 17:02:05 +02:00
|
|
|
#define ENV_ALLOC_ERROR 1
|
1998-06-03 22:33:45 +02:00
|
|
|
|
1998-04-13 17:02:05 +02:00
|
|
|
/********** Environment Handle *************/
|
|
|
|
struct EnvironmentClass_ {
|
|
|
|
char *errormsg;
|
|
|
|
int errornumber;
|
|
|
|
};
|
1998-06-03 22:33:45 +02:00
|
|
|
|
1998-04-13 17:02:05 +02:00
|
|
|
/* 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);
|
1998-04-13 17:02:05 +02:00
|
|
|
|
|
|
|
#endif
|