ext/revdispatch/libdispatch-0.1/src/ev_dispatch.h in evdispatch-0.3.0 vs ext/revdispatch/libdispatch-0.1/src/ev_dispatch.h in evdispatch-0.3.1
- old
+ new
@@ -9,10 +9,13 @@
#include <string>
#include <list>
#include <queue>
#include <map>
+// declare ahead of time
+struct curl_slist;
+
namespace EVD {
// unique id to represent a request
typedef unsigned long request_t;
@@ -40,9 +43,10 @@
Request( request_t k, const std::string &u ) : key(k), url(u){ Timer::current_time( &start_time); }
virtual ~Request (){ }
// by default this does nothing, each real request object can do as it pleases with this feature
virtual void set_opt( const std::string &key, const std::string &value ){}
+ virtual void set_opt( const std::string &key, struct curl_slist *slist ){}
virtual void set_key( request_t key ){ this->key = key; }
// attach to the event loop
virtual bool enable() = 0;