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