00001 /* 00002 * Copyright (C) 2011-2014 Red Hat, Inc. 00003 * This library is free software; you can redistribute it and/or 00004 * modify it under the terms of the GNU Lesser General Public 00005 * License as published by the Free Software Foundation; either 00006 * version 2.1 of the License, or any later version. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; If not, see <http://www.gnu.org/licenses/>. 00015 * 00016 * Author: tasleson 00017 */ 00018 00019 #ifndef LSM_FS_H 00020 #define LSM_FS_H 00021 00022 #include "libstoragemgmt_common.h" 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00033 int LSM_DLL_EXPORT lsm_fs_record_free(lsm_fs *fs); 00034 00040 lsm_fs LSM_DLL_EXPORT *lsm_fs_record_copy(lsm_fs * source); 00041 00048 int LSM_DLL_EXPORT lsm_fs_record_array_free(lsm_fs *fs[], uint32_t size); 00049 00055 const char LSM_DLL_EXPORT *lsm_fs_id_get(lsm_fs *fs); 00056 00062 const char LSM_DLL_EXPORT *lsm_fs_name_get(lsm_fs *fs); 00063 00069 const char LSM_DLL_EXPORT *lsm_fs_system_id_get(lsm_fs *fs); 00070 00076 const char LSM_DLL_EXPORT *lsm_fs_pool_id_get(lsm_fs *fs); 00077 00083 uint64_t LSM_DLL_EXPORT lsm_fs_total_space_get(lsm_fs *fs); 00084 00090 uint64_t LSM_DLL_EXPORT lsm_fs_free_space_get(lsm_fs *fs); 00091 00092 #ifdef __cplusplus 00093 } 00094 #endif 00095 #endif