gfs_download.h (1380B)
1 /* 2 This file is part of gnunet-fuse. 3 Copyright (C) 2012 GNUnet e.V. 4 5 gnunet-fuse is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published 7 by the Free Software Foundation; either version 3, or (at your 8 option) any later version. 9 10 gnunet-fuse 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 Street, Fifth Floor, Boston, MA 02110-1301 USA 18 19 */ 20 /** 21 * @file fuse/gfs_download.h 22 * @brief download files using FS 23 * @author Christian Grothoff 24 */ 25 #ifndef GFS_DOWNLOAD_H 26 #define GFS_DOWNLOAD_H 27 28 #include "gnunet-fuse.h" 29 30 /** 31 * Download a file. Blocks until we're done. 32 * 33 * @param path_info information about the file to download 34 * @param start_offset offset of the first byte to download 35 * @param length number of bytes to download from 'start_offset' 36 * @return GNUNET_OK on success 37 */ 38 int 39 GNUNET_FUSE_download_file (struct GNUNET_FUSE_PathInfo *path_info, 40 off_t start_offset, 41 uint64_t length); 42 43 #endif