From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6492e5e798269d9,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-07 05:30:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!demon!newshub1.home.nl!home.nl!news2.euro.net!transit.news.xs4all.nl!newszilla.xs4all.nl!not-for-mail Newsgroups: comp.lang.ada Subject: sqlite binding From: Ching Bon Lam Organization: Universiteit Twente Message-ID: User-Agent: Xnews/5.04.25 Date: 07 Jul 2003 12:30:46 GMT NNTP-Posting-Host: 213.84.97.6 X-Trace: 1057581046 dreader8.news.xs4all.nl 147 213.84.97.6:9881 Xref: archiver1.google.com comp.lang.ada:40102 Date: 2003-07-07T12:30:46+00:00 List-Id: hello everyone, I've been trying to make some sort of sqlite binding. SQLite itself is at http://www.sqlite.org/ . For now i just want to import the core api consisting of three functions (taken from sqlite.h): -- Code ----------------------------------------------------------------- sqlite *sqlite_open(const char *filename, int mode, char **errmsg); void sqlite_close(sqlite *); int sqlite_exec( sqlite*, /* An open database */ const char *sql, /* SQL to be executed */ sqlite_callback, /* Callback function */ void *, /* 1st argument to callback function */ char **errmsg /* Error msg written here */ ); ------------------------------------------------------------------------- with: -- Code ----------------------------------------------------------------- typedef struct sqlite sqlite; /* opaque struct */ typedef int (*sqlite_callback)(void*,int,char**, char**); ------------------------------------------------------------------------- What I did till now is: -- Code ----------------------------------------------------------------- -- typedef struct sqlite sqlite; /* opaque struct */ subtype sqlite is Interfaces.C.Extensions.opaque_structure_def; ------------------------------------------------------------------------- i don't know how to do the rest with the tons of pointers as arguments.. if someone would give me some pointers/guidance/hints, i would be really grateful. greetings, CBL