1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#ifndef plugins_from_url_h_
#define plugins_from_url_h_
#include <stddef.h>
#include <glib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <curl/curl.h>
#include "memfile.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
const char* url;
MEMFILE** body;
size_t (*body_writer)(const char*, size_t, size_t, void*);
long* code;
double* csize;
char** ctype;
} memfile_from_url_info;
CURLcode
memfile_from_url(memfile_from_url_info);
GdkPixbuf*
pixbuf_from_url(const char*, GError**);
GdkPixbuf*
pixbuf_from_url_as_file(const char*, GError**);
#ifdef __cplusplus
}
#endif
#endif /* plugins_from_url_h_ */
|