File: download.h

package info (click to toggle)
wmweather+ 2.15-1.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,100 kB
  • ctags: 579
  • sloc: ansic: 5,822; sh: 1,294; makefile: 42
file content (13 lines) | stat: -rw-r--r-- 410 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef DOWNLOAD_H
#define DOWNLOAD_H

/* flags for download_file */
#define DOWNLOAD_NO_404              1
#define DOWNLOAD_KILL_OTHER_REQUESTS 2

void download_init(char *email);
void download_process(unsigned long sleep_time);
int download_kill(char *filename);
int download_file(char *filename, char *from_addr, char *postdata, int flags, void (*callback)(char *filename, void *data), void *data);

#endif