summaryrefslogtreecommitdiffstats
path: root/db_demo/db.h
diff options
context:
space:
mode:
Diffstat (limited to 'db_demo/db.h')
-rw-r--r--db_demo/db.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/db_demo/db.h b/db_demo/db.h
new file mode 100644
index 0000000..4b896d2
--- /dev/null
+++ b/db_demo/db.h
@@ -0,0 +1,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 \ No newline at end of file