1 #ifndef IO_CURL_H 2 #define IO_CURL_H 3 4 #include "io.h" 5 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 9 10 void io_curl_init (); 11 void io_curl_cleanup (); 12 void io_curl_open (struct io_stream *s, const char *url); 13 void io_curl_close (struct io_stream *s); 14 ssize_t io_curl_read (struct io_stream *s, char *buf, size_t count); 15 void io_curl_strerror (struct io_stream *s); 16 void io_curl_wake_up (struct io_stream *s); 17 18 #ifdef __cplusplus 19 } 20 #endif 21 22 #endif 23