libposql: unipos.o
$(CC) -shared -Wl,-soname,$@.so.1 -o $@.so.1.0 unipos.o
-libmysql: unisql.o
- $(CC) -shared -Wl,-soname,$@.so.1 -o $@.so.1.0 unisql.o
+libmysql: unimar.o
+ $(CC) -shared -Wl,-soname,$@.so.1 -o $@.so.1.0 unimar.o
#--------------------------------------------------------------------
unipos.o: unipos.h
$(CC) $(CFLAGS) -c -fPIC -o $@ unipos.c
-unisql.o: unisql.h
- $(CC) $(CFLAGS) -c -fPIC -o $@ unisql.c
+unimar.o: unimar.h
+ $(CC) $(CFLAGS) -c -fPIC -o $@ unimar.c
#--------------------------------------------------------------------
#Equivalences
SQLDBTYP sqldb; //database type
union {
POSPTR *psql; //postgreSQL reference/
- MYSPTR *msql; //MySQL Reference
+ MARPTR *msql; //Mariadb|MySQL Reference
}db;
}SQLTYP;
/*
/********************************************************/
#include <stdio.h>
-#include "unisql.h"
+#include "unimar.h"
/*
\f
/* postgresq SQL server. */
/* */
/********************************************************/
-SQLPTR *sql_opensql(const char *host,const char *sqlport,const char *dbname)
+MARPTR *mar_opensql(const char *host,const char *sqlport,const char *dbname)
{
#define OPEP "unisql.c:sql_opensql,"
-SQLPTR *sqlptr;
+MARPTR *marptr;
-sqlptr=(SQLPTR *)0;
+marptr=(MARPTR *)0;
(void) fprintf(stderr,"%s\n","To be implemented");
-return sqlptr;
+return marptr;
#undef OPEP
}
/*
/* postgresql SQL server. */
/* */
/********************************************************/
-SQLPTR *sql_closesql(SQLPTR *sqlptr)
+MARPTR *mar_closesql(MARPTR *marptr)
{
#define OPEP "sqlpos.c:sql_closesql,"
(void) fprintf(stderr,"%s\n","To be implemented");
-return sqlptr;
+return marptr;
#undef OPEP
}
// vim: smarttab tabstop=8 shiftwidth=2 expandtab
/********************************************************/
/* */
-/* base level subroutine declaration */
-/* to handle MariaDB SQL request. */
+/* Base level subroutine declaration */
+/* to handle MYSQL/MARIADB SQL request. */
/* */
/********************************************************/
#ifndef UNIMAR
#define UNIMAR
//reference to a SQL pointer reference
-typedef void MYSPTR;
+typedef void MARPTR;
+
+//Opening a postscript database
+extern MARPTR *mar_opensql(const char *host,const char *sqlport,const char *dbname);
+
+//closing a postscript database
+extern MARPTR *mar_closesql(MARPTR *marptr);
#endif
+++ /dev/null
-// vim: smarttab tabstop=8 shiftwidth=2 expandtab
-/********************************************************/
-/* */
-/* Base level subroutine declaration */
-/* to handle MYSQL/MARIADB SQL request. */
-/* */
-/********************************************************/
-#ifndef UNISQL
-#define UNISQL
-
-//reference to a SQL pointer reference
-typedef void SQLPTR;
-
-//Opening a postscript database
-extern SQLPTR *sql_opensql(const char *host,const char *sqlport,const char *dbname);
-
-//closing a postscript database
-extern SQLPTR *sql_closesql(SQLPTR *sqlptr);
-
-#endif