diff options
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/client.h b/src/client.h index ae80ed9..750d603 100644 --- a/src/client.h +++ b/src/client.h | |||
@@ -5,8 +5,6 @@ | |||
5 | #include "tweet.h" | 5 | #include "tweet.h" |
6 | #include "auth.h" | 6 | #include "auth.h" |
7 | #include <list> | 7 | #include <list> |
8 | #include <curl_easy.h> | ||
9 | #include <curl_header.h> | ||
10 | #include <thread> | 8 | #include <thread> |
11 | #include <mutex> | 9 | #include <mutex> |
12 | #include "notification.h" | 10 | #include "notification.h" |
@@ -20,6 +18,8 @@ namespace OAuth { | |||
20 | class Client; | 18 | class Client; |
21 | }; | 19 | }; |
22 | 20 | ||
21 | class curl_httppost; | ||
22 | |||
23 | namespace twitter { | 23 | namespace twitter { |
24 | 24 | ||
25 | class client { | 25 | class client { |
@@ -36,6 +36,9 @@ namespace twitter { | |||
36 | void start(); | 36 | void start(); |
37 | void stop(); | 37 | void stop(); |
38 | 38 | ||
39 | int progress(); | ||
40 | size_t write(char* ptr, size_t size, size_t nmemb); | ||
41 | |||
39 | private: | 42 | private: |
40 | enum class backoff { | 43 | enum class backoff { |
41 | none, | 44 | none, |
@@ -45,11 +48,6 @@ namespace twitter { | |||
45 | }; | 48 | }; |
46 | 49 | ||
47 | void run(); | 50 | void run(); |
48 | int progress(); | ||
49 | int write(char* ptr, size_t size, size_t nmemb); | ||
50 | |||
51 | friend int client_stream_progress_callback_wrapper(void* stream, curl_off_t, curl_off_t, curl_off_t, curl_off_t); | ||
52 | friend size_t client_stream_write_callback_wrapper(void* ptr, size_t size, size_t nmemb, void* stream); | ||
53 | 51 | ||
54 | client& _client; | 52 | client& _client; |
55 | notify_callback _notify; | 53 | notify_callback _notify; |