File: from_url.h

package info (click to toggle)
growl-for-linux 0.8.5-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,464 kB
  • sloc: sh: 4,121; ansic: 3,748; makefile: 74
file content (41 lines) | stat: -rw-r--r-- 661 bytes parent folder | download | duplicates (6)
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_ */