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_TARGET_PORT_H 00020 #define LIBSTORAGEMGMT_TARGET_PORT_H 00021 00022 #include "libstoragemgmt_common.h" 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00034 lsm_target_port LSM_DLL_EXPORT *lsm_target_port_copy(lsm_target_port *tp); 00035 00036 00042 int LSM_DLL_EXPORT lsm_target_port_record_free(lsm_target_port *tp); 00043 00050 int LSM_DLL_EXPORT lsm_target_port_record_array_free(lsm_target_port * 00051 tp[], uint32_t size); 00052 00058 const char LSM_DLL_EXPORT *lsm_target_port_id_get(lsm_target_port *tp); 00059 00065 lsm_target_port_type LSM_DLL_EXPORT 00066 lsm_target_port_type_get(lsm_target_port *tp); 00067 00073 const char LSM_DLL_EXPORT * 00074 lsm_target_port_service_address_get(lsm_target_port *tp); 00075 00081 const char LSM_DLL_EXPORT * 00082 lsm_target_port_network_address_get(lsm_target_port *tp); 00083 00089 const char LSM_DLL_EXPORT * 00090 lsm_target_port_physical_address_get(lsm_target_port *tp); 00091 00097 const char LSM_DLL_EXPORT * 00098 lsm_target_port_physical_name_get(lsm_target_port *tp); 00099 00105 const char LSM_DLL_EXPORT * 00106 lsm_target_port_system_id_get(lsm_target_port *tp); 00107 00108 #ifdef __cplusplus 00109 } 00110 #endif 00111 #endif