diff options
Diffstat (limited to 'src/uscxml/URL.h')
-rw-r--r-- | src/uscxml/URL.h | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/src/uscxml/URL.h b/src/uscxml/URL.h index 8438d3a..705fdb4 100644 --- a/src/uscxml/URL.h +++ b/src/uscxml/URL.h @@ -8,23 +8,22 @@ namespace uscxml { enum fcurl_type_e { - CFTYPE_NONE=0, - CFTYPE_FILE=1, - CFTYPE_CURL=2 + CFTYPE_NONE=0, + CFTYPE_FILE=1, + CFTYPE_CURL=2 }; -struct fcurl_data -{ - enum fcurl_type_e type; /* type of handle */ - union { - CURL *curl; - FILE *file; - } handle; /* handle */ - - char *buffer; /* buffer to store cached data*/ - size_t buffer_len; /* currently allocated buffers length */ - size_t buffer_pos; /* end of data in buffer*/ - int still_running; /* Is background url fetch still in progress */ +struct fcurl_data { + enum fcurl_type_e type; /* type of handle */ + union { + CURL *curl; + FILE *file; + } handle; /* handle */ + + char *buffer; /* buffer to store cached data*/ + size_t buffer_len; /* currently allocated buffers length */ + size_t buffer_pos; /* end of data in buffer*/ + int still_running; /* Is background url fetch still in progress */ }; typedef struct fcurl_data URL_FILE; @@ -42,7 +41,7 @@ public: private: std::string _urlString; - friend std::ostream & operator<<(std::ostream &stream, const URL& p); + friend std::ostream & operator<<(std::ostream &stream, const URL& p); }; std::ostream & operator<<(std::ostream &stream, const URL& url); |