http_file_repair.h

Go to the documentation of this file.
00001 
00033 #ifndef _HTTP_FILE_REPAIR_H_
00034 #define _HTTP_FILE_REPAIR_H_
00035 
00036 #include "../alclib/defines.h"
00037 #include "flute_defines.h"
00038 #include "flute.h"
00039 
00040 #ifdef USE_FILE_REPAIR
00041 
00042 #include <curl/curl.h>
00043 #include <curl/types.h>
00044 #include <curl/easy.h>
00045 
00046 #ifdef __cplusplus
00047 extern "C" {
00048 #endif
00049 
00055 typedef struct chunk {
00056   char *data;
00057   size_t size;
00058 } chunk_t;
00059 
00072 size_t write_to_buffer(void *ptr, size_t size, size_t nmemb, void *a);
00073 
00087 char* http_file_repair(flute_receiver_t *receiver, int openfile, int *retval, CURL *curl,
00088                                            char *serviceURI);
00089 
00090 #endif
00091 
00092 #ifdef __cplusplus
00093 }; //extern "C"
00094 #endif
00095 
00096 #endif
00097 

Generated on Fri Mar 9 19:59:53 2007 for MAD-FCL by  doxygen 1.5.0