problem creating a berkeley db binding
BLS
windevguy at hotmail.de
Thu Sep 3 03:53:12 PDT 2009
JT wrote:
> i'm trying to create a binding for berkeley db dll and quickly ran into some problems, how do i translate statement below.
>
> int DB->open(DB *db, DB_TXN *txnid, const char *file,
> const char *database, DBTYPE type, u_int32_t flags, int mode);
>
> my normal approach would be,
>
> extern (C) {
> int function(DB* db, DB_TXN* txnid, char* file, char* database, DBTYPE type, u_int32_t flags, int mode) DB->open;
> }
>
> but real problem is 'DB->open', can anoybody suggest a workaround for this. DB is just a simple struct (struct DB;)
Maybe this project is interesting. last update may 2007
http://code.google.com/p/db4d/
More information about the Digitalmars-d-learn
mailing list