aboutsummaryrefslogtreecommitdiff
path: root/dbfp.h
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2016-03-10 17:42:09 +0100
committerRobin Krahl <me@robin-krahl.de>2016-03-10 17:42:09 +0100
commit4c68c15d4d3102b26b824b0021901d1dd9d79e77 (patch)
tree47688168607b1c25002ab45eeb197a3bfaa21567 /dbfp.h
parentde9f0aa8f8d248292815e5571e1fa3fb068de8c3 (diff)
downloaddbfp-4c68c15d4d3102b26b824b0021901d1dd9d79e77.tar.gz
dbfp-4c68c15d4d3102b26b824b0021901d1dd9d79e77.tar.bz2
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.
Diffstat (limited to 'dbfp.h')
-rw-r--r--dbfp.h2
1 files changed, 2 insertions, 0 deletions
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 <curl/curl.h>
#include <stddef.h>
enum dbfp_error {
@@ -19,6 +20,7 @@ enum dbfp_error {
struct dbfp {
char *key;
+ CURL *curl;
};
struct dbfp_location {