From 903b0e9a002e0839943c5d734f3728114272ebc1 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Tue, 9 Jul 2019 00:17:39 +0200 Subject: Rework how to build dest DB URL Change-Id: I5a351d6e2f5750dcb39bd9feff71abe930c052bb Signed-off-by: Sebastien Douheret --- src/plugins/influxdb.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/influxdb.h') diff --git a/src/plugins/influxdb.h b/src/plugins/influxdb.h index 781ab29..33eb0a2 100644 --- a/src/plugins/influxdb.h +++ b/src/plugins/influxdb.h @@ -127,6 +127,8 @@ static inline void concatenate_str(char* dest, const char* source, const char* s strncat(dest, "\"", 1); } -size_t make_url(char* url, size_t l_url, const char* host, const char* port, const char* endpoint); +extern size_t make_url_db(char* url, size_t l_url, const char* host, const char* port, const char* endpoint, const char *db); +extern size_t make_url(char* url, size_t l_url, const char* host, const char* port, const char* endpoint); +extern char* get_url(const char* host, const char* port, const char* endpoint); #endif -- cgit 1.2.3-korg