diff options
author | Robin Krahl <me@robin-krahl.de> | 2016-03-10 17:42:09 +0100 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2016-03-10 17:42:09 +0100 |
commit | 4c68c15d4d3102b26b824b0021901d1dd9d79e77 (patch) | |
tree | 47688168607b1c25002ab45eeb197a3bfaa21567 /dbfp.h | |
parent | de9f0aa8f8d248292815e5571e1fa3fb068de8c3 (diff) | |
download | dbfp-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 { |