From b71d03efc0783773d2aa3f88fb7aa47f54bc6050 Mon Sep 17 00:00:00 2001 From: mtollari Date: Wed, 8 Nov 2017 11:38:50 +0000 Subject: [PATCH] Patch level : 12.0 no-patch Files correlati : Commento : Aggiunte funzioni per richiesta versione git-svn-id: svn://10.65.10.50/branches/R_10_00@24184 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- src/xvtdb/xvtdb.h | 1 + src/xvturl/xvturl.cpp | 7 +++++-- src/xvturl/xvturl.h | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/xvtdb/xvtdb.h b/src/xvtdb/xvtdb.h index fc75519e6..1eba6f1d2 100644 --- a/src/xvtdb/xvtdb.h +++ b/src/xvtdb/xvtdb.h @@ -13,6 +13,7 @@ #define NOT_INITIALIZED -86552 #define ERROR_FREEZED -883 +#define SQLAPIV "SQLAPI++ 4.1.5" // Da tenere aggiornato DBDLL enum TT_driver { diff --git a/src/xvturl/xvturl.cpp b/src/xvturl/xvturl.cpp index 616db3712..de69307f3 100644 --- a/src/xvturl/xvturl.cpp +++ b/src/xvturl/xvturl.cpp @@ -1,7 +1,10 @@ #include "xvturl.h" #include -void functionTest() +URLDLL const char* xvturl_version() { - bool tolla = true; + static char version[50]; + if(version[0] == '\0') + sprintf_s(version, "cURL %s", LIBCURL_VERSION); + return version; } \ No newline at end of file diff --git a/src/xvturl/xvturl.h b/src/xvturl/xvturl.h index b82a794ee..015f01f67 100644 --- a/src/xvturl/xvturl.h +++ b/src/xvturl/xvturl.h @@ -7,6 +7,6 @@ #include -URLDLL void functionTest(); +URLDLL const char* xvturl_version(); #endif \ No newline at end of file