path_disk_size_info.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 2015- The University of Notre Dame
00003 This software is distributed under the GNU General Public License.
00004 See the file COPYING for details.
00005 */
00006 
00007 #ifndef CWD_INFO_H
00008 #define CWD_INFO_H
00009 
00010 #include "int_sizes.h"
00011 #include "list.h"
00012 
00013 struct path_disk_size_info {
00014         int     complete_measurement;
00015         int64_t last_byte_size_complete;
00016         int64_t last_file_count_complete;
00017 
00018         int64_t size_so_far;
00019         int64_t count_so_far;
00020 
00021         struct list *current_dirs;
00022 };
00023 
00034 int path_disk_size_info_get(const char *path, int64_t *measured_size, int64_t *number_of_files);
00035 
00045 int path_disk_size_info_get_r(const char *path, int64_t max_secs, struct path_disk_size_info **state);
00046 
00047 void path_disk_size_info_delete_state(struct path_disk_size_info *state);
00048 
00049 #endif

Generated on 17 Dec 2015 for cctools by  doxygen 1.6.1