From 4c68c15d4d3102b26b824b0021901d1dd9d79e77 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 10 Mar 2016 17:42:09 +0100 Subject: dbfp: move curl handle to dbfp As the curl handle can be reused between requests, it is moved to the dbfp structure, initialized in dbfp_init and freed in dbfp_close. --- dbfp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dbfp.h') diff --git a/dbfp.h b/dbfp.h index b2537ad..7871372 100644 --- a/dbfp.h +++ b/dbfp.h @@ -7,6 +7,7 @@ #ifndef DBFP_H_ #define DBFP_H_ +#include #include enum dbfp_error { @@ -19,6 +20,7 @@ enum dbfp_error { struct dbfp { char *key; + CURL *curl; }; struct dbfp_location { -- cgit v1.2.1