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 #ifndef LIBSTORAGEMGMT_SYSTEMS_H 00019 #define LIBSTORAGEMGMT_SYSTEMS_H 00020 00021 #include "libstoragemgmt_common.h" 00022 00023 #ifdef __cplusplus 00024 extern "C" { 00025 #endif 00026 00033 lsm_system LSM_DLL_EXPORT *lsm_system_record_copy(lsm_system *s); 00034 00035 00041 int LSM_DLL_EXPORT lsm_system_record_free(lsm_system *s); 00042 00049 int LSM_DLL_EXPORT lsm_system_record_array_free(lsm_system *s[], uint32_t size); 00050 00058 const char LSM_DLL_EXPORT *lsm_system_id_get(lsm_system *s); 00059 00067 const char LSM_DLL_EXPORT *lsm_system_name_get(lsm_system *s); 00068 00075 uint32_t LSM_DLL_EXPORT lsm_system_status_get(lsm_system *s); 00076 00077 00078 #ifdef __cplusplus 00079 } 00080 #endif 00081 #endif