From: Jean-Marc Pigeon (Delson) Date: Sun, 4 May 2025 23:14:33 +0000 (-0400) Subject: Start to add devsql module X-Git-Tag: tag-0.8~156 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=c4da85a2160b919f1a2f675e6e99908deedb68b5;p=jmp%2Fmailleur Start to add devsql module --- 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