From c4da85a2160b919f1a2f675e6e99908deedb68b5 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Sun, 4 May 2025 19:14:33 -0400 Subject: [PATCH] Start to add devsql module --- lib/devsql.c | 16 ++++++++++++++++ lib/devsql.h | 20 ++++++++++++++++++++ lib/lvleml.h | 6 ++++-- 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 lib/devsql.c create mode 100644 lib/devsql.h diff --git a/lib/devsql.c b/lib/devsql.c new file mode 100644 index 0000000..17b4680 --- /dev/null +++ b/lib/devsql.c @@ -0,0 +1,16 @@ +// vim: smarttab tabstop=8 shiftwidth=2 expandtab +/********************************************************/ +/* */ +/* Low level subroutine implementation */ +/* to handle SQL request */ +/* */ +/********************************************************/ +#include "devsql.h" + +/* + +*/ +/********************************************************/ +/* */ +/* */ +/********************************************************/ diff --git a/lib/devsql.h b/lib/devsql.h new file mode 100644 index 0000000..2c69c11 --- /dev/null +++ b/lib/devsql.h @@ -0,0 +1,20 @@ +// vim: smarttab tabstop=8 shiftwidth=2 expandtab +/********************************************************/ +/* */ +/* Low level subroutine declaration */ +/* to handle SQL resquest. */ +/* */ +/********************************************************/ +#ifndef DEVSQL +#define DEVSQL + +//reference to a SQL pointer reference +typedef void SQLPTR; + +//to connect a remote SQL server +extern SQLPTR *soql_opensql(); + +//procedure to close an previously opened SQL channel +extern SQLPTR *soc_closesql(SOCPTR *socptr); + +#endif diff --git a/lib/lvleml.h b/lib/lvleml.h index 28e9158..3c354a0 100644 --- a/lib/lvleml.h +++ b/lib/lvleml.h @@ -8,11 +8,13 @@ #ifndef LVLEML #define LVLEML +#include "devsoc.h" +#include "devsql.h" #include "gestcp.h" typedef struct { - SOCPTR *socptr; //established contact context - //_Bool tlsok; //link is in crypted mode + SOCPTR *socptr; //established contact socket context + SQLPTR *sqlptr; //established contact database access char *fqdn; //fully qualified domain from peer char *locname; //socket local hostname char *locserv; //local service port -- 2.47.3