aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/environ.h
blob: 33cf5e433a0b1a77a27070052aefae600a79bb37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* File:            environ.h
 *
 * Description:     See "environ.c"
 *
 * Comments:        See "notice.txt" for copyright and license information.
 *
 */

#ifndef __ENVIRON_H__
#define __ENVIRON_H__

#include "psqlodbc.h"
#include <windows.h>
#include <sql.h>
#include <sqlext.h>

#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);
void EN_log_error(char *func, char *desc, EnvironmentClass *self);

#endif