aboutsummaryrefslogtreecommitdiff
path: root/miner.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2011-02-10 00:41:44 -0500
committerJeff Garzik <jgarzik@redhat.com>2011-02-10 00:41:44 -0500
commitc0935a94899bc7261bc98b17a52d7c11b005fde4 (patch)
treeb69fdac650a0c428e7f55babc9bc557f8feaa1ef /miner.h
parent82772022216c1d8b4dca2d0772d5810afc2e4ad8 (diff)
Re-use CURL object, thereby caching DNS and HTTP connections where possible.
Diffstat (limited to 'miner.h')
-rw-r--r--miner.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/miner.h b/miner.h
index 539b5d6..314796b 100644
--- a/miner.h
+++ b/miner.h
@@ -5,6 +5,7 @@
#include <stdint.h>
#include <sys/time.h>
#include <jansson.h>
+#include <curl/curl.h>
#ifdef __SSE2__
#define WANT_SSE2_4WAY 1
@@ -45,7 +46,7 @@ static inline void swap256(void *dest_p, const void *src_p)
extern bool opt_debug;
extern bool opt_protocol;
extern const uint32_t sha256_init_state[];
-extern json_t *json_rpc_call(const char *url, const char *userpass,
+extern json_t *json_rpc_call(CURL *curl, const char *url, const char *userpass,
const char *rpc_req);
extern char *bin2hex(unsigned char *p, size_t len);
extern bool hex2bin(unsigned char *p, const char *hexstr, size_t len);