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 LIBSTORAGEMGMT_VOLUMES_H 00020 #define LIBSTORAGEMGMT_VOLUMES_H 00021 00022 #include "libstoragemgmt_common.h" 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00033 int LSM_DLL_EXPORT lsm_volume_record_free(lsm_volume *v); 00034 00040 lsm_volume LSM_DLL_EXPORT *lsm_volume_record_copy(lsm_volume *vol); 00041 00048 int LSM_DLL_EXPORT lsm_volume_record_array_free(lsm_volume *init[], 00049 uint32_t size); 00050 00057 const char LSM_DLL_EXPORT *lsm_volume_id_get(lsm_volume *v); 00058 00065 const char LSM_DLL_EXPORT *lsm_volume_name_get(lsm_volume *v); 00066 00073 const char LSM_DLL_EXPORT *lsm_volume_vpd83_get(lsm_volume *v); 00074 00080 uint64_t LSM_DLL_EXPORT lsm_volume_block_size_get(lsm_volume *v); 00081 00087 uint64_t LSM_DLL_EXPORT lsm_volume_number_of_blocks_get(lsm_volume *v); 00088 00096 uint32_t LSM_DLL_EXPORT lsm_volume_admin_state_get(lsm_volume *v); 00097 00103 char LSM_DLL_EXPORT *lsm_volume_system_id_get(lsm_volume *v); 00104 00110 char LSM_DLL_EXPORT *lsm_volume_pool_id_get(lsm_volume *v); 00111 00112 #ifdef __cplusplus 00113 } 00114 #endif 00115 #endif /* LIBSTORAGEMGMT_VOLUMES_H */