Trying to pass data into driver

This commit is contained in:
Max Lapshin
2009-10-13 10:56:15 +04:00
parent 9a3aea50a7
commit 89d9d0b17d
4 changed files with 45 additions and 59 deletions

View File

@@ -3,6 +3,7 @@
#include <stdio.h>
#include <string.h>
#include <sqlite3.h>
#include <erl_interface.h>
// Path to file where data will be stored.
// It will be created if it doesn't exist
@@ -30,6 +31,7 @@ static void stop(ErlDrvData handle);
static void outputv(ErlDrvData handle, ErlIOVec *ev);
static void ready_async(ErlDrvData drv_data, ErlDrvThreadData thread_data);
static void list_tables(sqlite3_drv_t *drv, ErlIOVec *ev);
static void sql_exec(sqlite3_drv_t *drv, ErlIOVec *ev);
// static void get(bdb_drv_t *bdb_drv, ErlIOVec *ev);
// static void del(bdb_drv_t *bdb_drv, ErlIOVec *ev);
static void unkown(sqlite3_drv_t *bdb_drv, ErlIOVec *ev);