blob: 4b896d23725432cb5527685558b9f620d8c30892 (
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
|
#ifndef _DB_H
#define _DB_H
#define PGHOST "matchblox.schinagl.nl"
#define PGPORT "5432"
#define PGOPTIONS "\0"
#define PGTTY "\0"
#define DBNAME "2iv55"
#define LOGIN "2iv55"
#define PWD "uhtfiwwp"
enum db_result
{
DB_OK,
DB_NO_CONNECTION,
DB_COULD_NOT_EXECUTE,
DB_INCORRECT_RESULT,
DB_COULD_NOT_OUTPUT
};
int db_init(void);
int db_close(void);
int db_execute(const char*);
#endif
|