aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-03-01 16:27:48 -0500
committerBrian Cully <bjc@kublai.com>2008-03-01 16:27:48 -0500
commitadb1b26020e46923f8659f5e84b6483811cca1e6 (patch)
tree840119583c16330c37849dff7c645ca78c3b9949 /src
parenta352e4e28678fd2029e0bf3b06e1b872377ccbc0 (diff)
downloadmysqlerl-adb1b26020e46923f8659f5e84b6483811cca1e6.tar.gz
mysqlerl-adb1b26020e46923f8659f5e84b6483811cca1e6.zip
Add erl interface headers.
Diffstat (limited to 'src')
-rw-r--r--src/mysqlerl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mysqlerl.c b/src/mysqlerl.c
index dfd7ef0..b4e6441 100644
--- a/src/mysqlerl.c
+++ b/src/mysqlerl.c
@@ -4,6 +4,8 @@
* Copyright (C) 2008, Brian Cully <bjc@kublai.com>
*/
+#include <erl_interface.h>
+#include <ei.h>
#include <mysql.h>
#include <errno.h>
@@ -18,7 +20,9 @@ const char *LOGPATH = "/tmp/mysqlerl.log";
static FILE *logfile = NULL;
typedef u_int32_t msglen_t;
-typedef enum { QUERY_MSG = 0, EXTENDED_MSG = 255 } msgtype_t;
+typedef enum {
+ QUERY_MSG = 0, COMMIT_MSG = 1, ROLLBACK_MSG = 2, EXTENDED_MSG = 255
+} msgtype_t;
struct msg {
msgtype_t type;