Code

92dc22e9ec42f30ca513a853d8ab7c4f8fc35e7e
[ncmpc.git] / src / easy_download.h
1 /*
2  *  by Qball
3  *
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  */
19 #include <curl/curl.h>
21 typedef struct _easy_download_struct{
22         char *data;
23         int size;
24         int max_size;
26 }easy_download_struct;
29 int easy_download(char *url,easy_download_struct *dld, 
30                 curl_progress_callback cb);
31 void easy_download_clean(easy_download_struct *dld);