High-Level Data Reduction Library: hdrl_download.h Source File

High-Level Data Reduction Library 1.6.0 High-Level data reduction routines for ESO pipelines

Loading...
Searching...
No Matches
hdrl_download.h
Go to the documentation of this file.
1/*
2 * This file is part of the HDRL
3 * Copyright (C) 2016 European Southern Observatory
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20
21#ifndef HDRL_DOWNLOAD_H_
22#define HDRL_DOWNLOAD_H_
23
24/*-----------------------------------------------------------------------------
25 Includes
26 -----------------------------------------------------------------------------*/
27
28CPL_BEGIN_DECLS
29
30/*-----------------------------------------------------------------------------
31 Functions prototypes
32 -----------------------------------------------------------------------------*/
33
34 char *
35 hdrl_download_url_to_buffer(const char * url, size_t * data_length);
36
37cpl_error_code
38 hdrl_download_url_to_file (const char * url, const char * filename);
39
40
41CPL_END_DECLS
42
43
44#endif /* HDRL_DOWNLOAD_H_ */
hdrl_download_url_to_file
cpl_error_code hdrl_download_url_to_file(const char *url, const char *filename)
Downloads a url into a file on disc.
Definition hdrl_download.c:269
hdrl_download_url_to_buffer
CPL_BEGIN_DECLS char * hdrl_download_url_to_buffer(const char *url, size_t *data_length)
Downloads a url into a c data buffer.
Definition hdrl_download.c:153