]> granicus.if.org Git - postgresql/blob - src/interfaces/odbc/environ.h
Provide some initial support for building the ODBC driver for
[postgresql] / src / interfaces / odbc / environ.h
1 /* File:                        environ.h
2  *
3  * Description:         See "environ.c"
4  *
5  * Comments:            See "notice.txt" for copyright and license information.
6  *
7  */
8
9 #ifndef __ENVIRON_H__
10 #define __ENVIRON_H__
11
12 #include "psqlodbc.h"
13
14 #define ENV_ALLOC_ERROR 1
15
16 /**********             Environment Handle      *************/
17 struct EnvironmentClass_
18 {
19         char       *errormsg;
20         int                     errornumber;
21 };
22
23 /*      Environment prototypes */
24 EnvironmentClass *EN_Constructor(void);
25 char            EN_Destructor(EnvironmentClass *self);
26 char            EN_get_error(EnvironmentClass *self, int *number, char **message);
27 char            EN_add_connection(EnvironmentClass *self, ConnectionClass *conn);
28 char            EN_remove_connection(EnvironmentClass *self, ConnectionClass *conn);
29 void            EN_log_error(char *func, char *desc, EnvironmentClass *self);
30
31 #endif