From: <hem...@us...> - 2014-09-30 00:31:08
|
Revision: 7595 http://sourceforge.net/p/openhpi/code/7595 Author: hemanthreddy Date: 2014-09-30 00:31:05 +0000 (Tue, 30 Sep 2014) Log Message: ----------- Fix for the issue# 702 Support for BL460c Gen9 server Modified Paths: -------------- openhpi/trunk/include/SaHpiOaSoap.h openhpi/trunk/plugins/oa_soap/oa_soap_resources.c openhpi/trunk/plugins/oa_soap/oa_soap_resources.h openhpi/trunk/plugins/oa_soap/oa_soap_sensor.h Modified: openhpi/trunk/include/SaHpiOaSoap.h =================================================================== --- openhpi/trunk/include/SaHpiOaSoap.h 2014-09-30 00:12:24 UTC (rev 7594) +++ openhpi/trunk/include/SaHpiOaSoap.h 2014-09-30 00:31:05 UTC (rev 7595) @@ -267,8 +267,12 @@ #define OA_SOAP_SEN_BLADE_POWER_SUPPLY_ZONE7 (SaHpiSensorNumT) 0x068 /* Server Blade Power Supply zone8 */ #define OA_SOAP_SEN_BLADE_POWER_SUPPLY_ZONE8 (SaHpiSensorNumT) 0x069 +/* Server Blade Chassis Zone zone 1*/ +#define OA_SOAP_SEN_BLADE_CHASSIS_ZONE1 (SaHpiSensorNumT) 0x06a +/* Server Blade Chassis Zone zone 2*/ +#define OA_SOAP_SEN_BLADE_CHASSIS_ZONE2 (SaHpiSensorNumT) 0x06b /* Main Memory Errors sensor */ -#define OA_SOAP_SEN_MAIN_MEMORY_ERRORS (SaHpiSensorNumT) 0x06a +#define OA_SOAP_SEN_MAIN_MEMORY_ERRORS (SaHpiSensorNumT) 0x06c /* Control numbers used in OA SOAP plugin * On adding new control, control array in in plugin/oa_soap/oa_soap_resources.c Modified: openhpi/trunk/plugins/oa_soap/oa_soap_resources.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_resources.c 2014-09-30 00:12:24 UTC (rev 7594) +++ openhpi/trunk/plugins/oa_soap/oa_soap_resources.c 2014-09-30 00:31:05 UTC (rev 7595) @@ -8795,6 +8795,158 @@ .sensor_class = OA_SOAP_BLADE_THERMAL_CLASS, .comment = "Power Supply Zone", }, + /* Chassis Zone1 sensor */ + { + .sensor = { + .Num = OA_SOAP_SEN_BLADE_CHASSIS_ZONE1, + .Type = SAHPI_TEMPERATURE, + .Category = SAHPI_EC_THRESHOLD, + .EnableCtrl = SAHPI_TRUE, + .EventCtrl = SAHPI_SEC_READ_ONLY, + .Events = SAHPI_ES_UNSPECIFIED, + .DataFormat = { + .IsSupported = SAHPI_TRUE, + .ReadingType = + SAHPI_SENSOR_READING_TYPE_FLOAT64, + .BaseUnits = SAHPI_SU_DEGREES_C, + .ModifierUnits = SAHPI_SU_UNSPECIFIED, + .ModifierUse = SAHPI_SMUU_NONE, + .Percentage = SAHPI_FALSE, + .Range.Flags = SAHPI_SRF_MAX | + SAHPI_SRF_NORMAL_MAX, + .Range.Max.IsSupported = SAHPI_TRUE, + .Range.Max.Type = + SAHPI_SENSOR_READING_TYPE_FLOAT64, + /* This default Max value should be replaced + * with Max value retrieved from OA + */ + .Range.Max.Value.SensorFloat64 = 86, + .Range.NormalMax.IsSupported = SAHPI_TRUE, + .Range.NormalMax.Type = + SAHPI_SENSOR_READING_TYPE_FLOAT64, + /* This default Normal Max value should be + * replaced with Normal Max value retrieved + * from OA + */ + .Range.NormalMax.Value.SensorFloat64 = 81, + .AccuracyFactor = 0, + }, + .ThresholdDefn = { + .IsAccessible = SAHPI_TRUE, + .ReadThold = SAHPI_ES_UPPER_CRIT | + SAHPI_ES_UPPER_MAJOR, + .WriteThold = 0x0, + }, + .Oem = 0, + }, + .sensor_info = { + .current_state = SAHPI_ES_UNSPECIFIED, + .sensor_enable = SAHPI_TRUE, + .event_enable = SAHPI_FALSE, + .assert_mask = OA_SOAP_STM_UNSPECIFED, + .deassert_mask = OA_SOAP_STM_UNSPECIFED, + .sensor_reading = { + .IsSupported = SAHPI_TRUE, + .Type = SAHPI_SENSOR_READING_TYPE_FLOAT64, + /* Update the value with current reading */ + .Value.SensorFloat64 = 0x0, + }, + .threshold = { + .UpCritical.IsSupported = SAHPI_TRUE, + .UpCritical.Type = + SAHPI_SENSOR_READING_TYPE_FLOAT64, + /* Update the value with critical threshold + * reading + */ + .UpCritical.Value.SensorFloat64 = 86, + .UpMajor.IsSupported = SAHPI_TRUE, + .UpMajor.Type = + SAHPI_SENSOR_READING_TYPE_FLOAT64, + /* Update the value with major threshold + * reading + */ + .UpMajor.Value.SensorFloat64 = 81, + }, + }, + .sensor_class = OA_SOAP_BLADE_THERMAL_CLASS, + .comment = "Chassis Zone", + }, + /* Chassis zone2 sensor */ + { + .sensor = { + .Num = OA_SOAP_SEN_BLADE_CHASSIS_ZONE2, + .Type = SAHPI_TEMPERATURE, + .Category = SAHPI_EC_THRESHOLD, + .EnableCtrl = SAHPI_TRUE, + .EventCtrl = SAHPI_SEC_READ_ONLY, + .Events = SAHPI_ES_UNSPECIFIED, + .DataFormat = { + .IsSupported = SAHPI_TRUE, + .ReadingType = + SAHPI_SENSOR_READING_TYPE_FLOAT64, + .BaseUnits = SAHPI_SU_DEGREES_C, + .ModifierUnits = SAHPI_SU_UNSPECIFIED, + .ModifierUse = SAHPI_SMUU_NONE, + .Percentage = SAHPI_FALSE, + .Range.Flags = SAHPI_SRF_MAX | + SAHPI_SRF_NORMAL_MAX, + .Range.Max.IsSupported = SAHPI_TRUE, + .Range.Max.Type = + SAHPI_SENSOR_READING_TYPE_FLOAT64, + /* This default Max value should be replaced + * with Max value retrieved from OA + */ + .Range.Max.Value.SensorFloat64 = 86, + .Range.NormalMax.IsSupported = SAHPI_TRUE, + .Range.NormalMax.Type = + SAHPI_SENSOR_READING_TYPE_FLOAT64, + /* This default Normal Max value should be + * replaced with Normal Max value retrieved + * from OA + */ + .Range.NormalMax.Value.SensorFloat64 = 81, + .AccuracyFactor = 0, + }, + .ThresholdDefn = { + .IsAccessible = SAHPI_TRUE, + .ReadThold = SAHPI_ES_UPPER_CRIT | + SAHPI_ES_UPPER_MAJOR, + .WriteThold = 0x0, + }, + .Oem = 0, + }, + .sensor_info = { + .current_state = SAHPI_ES_UNSPECIFIED, + .sensor_enable = SAHPI_TRUE, + .event_enable = SAHPI_FALSE, + .assert_mask = OA_SOAP_STM_UNSPECIFED, + .deassert_mask = OA_SOAP_STM_UNSPECIFED, + .sensor_reading = { + .IsSupported = SAHPI_TRUE, + .Type = SAHPI_SENSOR_READING_TYPE_FLOAT64, + /* Update the value with current reading */ + .Value.SensorFloat64 = 0x0, + }, + .threshold = { + .UpCritical.IsSupported = SAHPI_TRUE, + .UpCritical.Type = + SAHPI_SENSOR_READING_TYPE_FLOAT64, + /* Update the value with critical threshold + * reading + */ + .UpCritical.Value.SensorFloat64 = 86, + .UpMajor.IsSupported = SAHPI_TRUE, + .UpMajor.Type = + SAHPI_SENSOR_READING_TYPE_FLOAT64, + /* Update the value with major threshold + * reading + */ + .UpMajor.Value.SensorFloat64 = 81, + }, + }, + .sensor_class = OA_SOAP_BLADE_THERMAL_CLASS, + .comment = "Chassis Zone", + }, /* NULL element to end the array */ {} }; @@ -10169,7 +10321,8 @@ "Ambient", "Storage", "I/O Board", - "Power Supply" + "Power Supply", + "Chassis" }; /* Array containing the name strings of the possible blade types @@ -10179,6 +10332,7 @@ "BL260C", "BL2x220C", "BL460C GEN8", + "BL460C GEN9", "BL460C G8", "BL460C G7", "BL460C", @@ -10251,6 +10405,20 @@ {OA_SOAP_SEN_BLADE_POWER_SUPPLY_ZONE1, POWER_SUPPLY_ZONE, 6}, {OA_SOAP_SEN_BLADE_IO_BOARD_ZONE1, IO_BOARD_ZONE, 8} }, + /* BL460c Gen9 blade type */ + { + {OA_SOAP_SEN_BLADE_SYSTEM_ZONE1, SYSTEM_ZONE, 5}, + {OA_SOAP_SEN_BLADE_CPU_ZONE1, CPU_ZONE, 2}, + {OA_SOAP_SEN_BLADE_CPU1_1, CPU_1, 0}, + {OA_SOAP_SEN_BLADE_CPU2_1, CPU_2, 0}, + {OA_SOAP_SEN_BLADE_CPU3_1, CPU_3, 0}, + {OA_SOAP_SEN_BLADE_CPU4_1, CPU_4, 0}, + {OA_SOAP_SEN_BLADE_DISK_ZONE1, DISK_ZONE, 2}, + {OA_SOAP_SEN_BLADE_MEM_ZONE1, MEMORY_ZONE, 6}, + {OA_SOAP_SEN_TEMP_STATUS, AMBIENT_ZONE, 1}, + {OA_SOAP_SEN_BLADE_IO_BOARD_ZONE1, IO_BOARD_ZONE, 8}, + {OA_SOAP_SEN_BLADE_CHASSIS_ZONE1, CHASSIS_ZONE, 2} + }, /* BL460c G8 blade type */ { {OA_SOAP_SEN_BLADE_SYSTEM_ZONE1, SYSTEM_ZONE, 7}, @@ -10482,7 +10650,7 @@ {OA_SOAP_SEN_BLADE_DISK_ZONE1, DISK_ZONE, 0}, {OA_SOAP_SEN_BLADE_MEM_ZONE1, MEMORY_ZONE, 1}, {OA_SOAP_SEN_TEMP_STATUS, AMBIENT_ZONE, 1} - }, + } }; /* Array containing the sensor base number of the thermal sensor types. @@ -10548,7 +10716,9 @@ OA_SOAP_SEN_BLADE_POWER_SUPPLY_ZONE1, OA_SOAP_SEN_BLADE_POWER_SUPPLY_ZONE1, OA_SOAP_SEN_BLADE_POWER_SUPPLY_ZONE1, - OA_SOAP_SEN_BLADE_POWER_SUPPLY_ZONE1 + OA_SOAP_SEN_BLADE_POWER_SUPPLY_ZONE1, + OA_SOAP_SEN_BLADE_CHASSIS_ZONE1, + OA_SOAP_SEN_BLADE_CHASSIS_ZONE1 }; /* Array which indicates the power status of the blade in different slots Modified: openhpi/trunk/plugins/oa_soap/oa_soap_resources.h =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_resources.h 2014-09-30 00:12:24 UTC (rev 7594) +++ openhpi/trunk/plugins/oa_soap/oa_soap_resources.h 2014-09-30 00:31:05 UTC (rev 7595) @@ -81,7 +81,7 @@ const char *comment; }; -#define OA_SOAP_MAX_BLD_TYPE 22 +#define OA_SOAP_MAX_BLD_TYPE 23 /* Enum for possible cclass blade types * Put more specific ones always first @@ -90,6 +90,7 @@ BL260C, BL2x220C, BL460CGEN8, + BL460CGEN9, BL460CG8, BL460CG7, BL460C, Modified: openhpi/trunk/plugins/oa_soap/oa_soap_sensor.h =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_sensor.h 2014-09-30 00:12:24 UTC (rev 7594) +++ openhpi/trunk/plugins/oa_soap/oa_soap_sensor.h 2014-09-30 00:31:05 UTC (rev 7595) @@ -195,7 +195,7 @@ /* Maximum number of possible sensor strings provided * by getBladeThermalInfoArray soap call */ -#define OA_SOAP_MAX_THRM_SEN 12 +#define OA_SOAP_MAX_THRM_SEN 13 /* Enum values for the sensor description strings provide by * getBladeThermalInfoArray soap call @@ -212,13 +212,14 @@ AMBIENT_ZONE, STORAGE_ZONE, IO_BOARD_ZONE, - POWER_SUPPLY_ZONE + POWER_SUPPLY_ZONE, + CHASSIS_ZONE }; /* Define the sensor number range for blade extra thermal sensors */ #define OA_SOAP_BLD_THRM_SEN_START 0x02e -#define OA_SOAP_BLD_THRM_SEN_END 0x069 +#define OA_SOAP_BLD_THRM_SEN_END 0x06b /* Structure required for building thermal sensor when server blade is off */ struct oa_soap_static_thermal_sensor_info { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2014-09-30 04:44:39
|
Revision: 7598 http://sourceforge.net/p/openhpi/code/7598 Author: dr_mohan Date: 2014-09-30 04:44:36 +0000 (Tue, 30 Sep 2014) Log Message: ----------- Incrementing version on trunk after creating 3.5.x branch Modified Paths: -------------- openhpi/trunk/Makefile.mingw32.def openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py openhpi/trunk/configure.ac Modified: openhpi/trunk/Makefile.mingw32.def =================================================================== --- openhpi/trunk/Makefile.mingw32.def 2014-09-30 04:21:20 UTC (rev 7597) +++ openhpi/trunk/Makefile.mingw32.def 2014-09-30 04:44:36 UTC (rev 7598) @@ -2,9 +2,9 @@ ARCH := x86 #ARCH := amd64 -VERSION := 3.5.0 +VERSION := 3.6.0 # This is for resource compiler -BINARY_VERSION := 3,5,0,0 +BINARY_VERSION := 3,6,0,0 ############################################################################ TOOLCHAIN_PATH := /home/avpak/usr/cross/mingw32 Modified: openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs =================================================================== --- openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs 2014-09-30 04:21:20 UTC (rev 7597) +++ openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs 2014-09-30 04:44:36 UTC (rev 7598) @@ -24,6 +24,6 @@ [assembly: AssemblyTitle( "OpenHPI Base Library For .NET" )] [assembly: AssemblyDescription( "OpenHPI Base Library For .NET" )] [assembly: AssemblyProduct( "OpenHPI" )] -[assembly: AssemblyVersion( "3.5.0.0" )] +[assembly: AssemblyVersion( "3.6.0.0" )] [assembly: AssemblyCulture( "" )] Modified: openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt =================================================================== --- openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt 2014-09-30 04:21:20 UTC (rev 7597) +++ openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt 2014-09-30 04:44:36 UTC (rev 7598) @@ -3,5 +3,5 @@ Implementation-Title: OpenHPI Base Library For Java Implementation-Vendor: openhpi.org Implementation-URL: http://openhpi.org -Implementation-Version: 3.5.0 +Implementation-Version: 3.6.0 Modified: openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py =================================================================== --- openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py 2014-09-30 04:21:20 UTC (rev 7597) +++ openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py 2014-09-30 04:44:36 UTC (rev 7598) @@ -14,5 +14,5 @@ # Anton Pak <ant...@pi...> # -__version_info__ = ( 3, 5, 0 ) +__version_info__ = ( 3, 6, 0 ) Modified: openhpi/trunk/configure.ac =================================================================== --- openhpi/trunk/configure.ac 2014-09-30 04:21:20 UTC (rev 7597) +++ openhpi/trunk/configure.ac 2014-09-30 04:44:36 UTC (rev 7598) @@ -5,7 +5,7 @@ AC_PREREQ(2.57) -AC_INIT(openhpi, 3.5.0) +AC_INIT(openhpi, 3.6.0) AC_CONFIG_SRCDIR(openhpi.spec.in) AM_INIT_AUTOMAKE([1.8]) @@ -23,7 +23,7 @@ # minor version: 11 = 11 # patch version: 4 = 4 # -HPI_LIB_VERSION=8:0:5 +HPI_LIB_VERSION=9:0:6 HPI_PKG=$PACKAGE_NAME HPI_UTIL_PKG=${PACKAGE_NAME}utils HPI_CLIENT_PKG=${PACKAGE_NAME}client This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2014-10-08 22:33:39
|
Revision: 7607 http://sourceforge.net/p/openhpi/code/7607 Author: dr_mohan Date: 2014-10-08 22:33:34 +0000 (Wed, 08 Oct 2014) Log Message: ----------- Bring bug fixes - 1855,1856,1857 and 1860, from 3.5.x branch Modified Paths: -------------- openhpi/trunk/openhpi.spec.in openhpi/trunk/plugins/oa_soap/oa_soap_event.c openhpi/trunk/plugins/oa_soap/oa_soap_oa_event.c openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.c openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.h openhpi/trunk/utils/Makefile.mingw32 Modified: openhpi/trunk/openhpi.spec.in =================================================================== --- openhpi/trunk/openhpi.spec.in 2014-10-08 21:31:05 UTC (rev 7606) +++ openhpi/trunk/openhpi.spec.in 2014-10-08 22:33:34 UTC (rev 7607) @@ -285,7 +285,7 @@ %build ################################################### %configure @ac_configure_args@ --prefix=/usr --with-varpath=/var/lib/%{name} -find . -type f -name "Makefile" | xargs -n1 sed -i -e 's/-D_FORTIFY_SOURCE=2//g;' +find . -type f -name "Makefile" | xargs -n1 sed -i -e 's/ -Wp,-D_FORTIFY_SOURCE=2//g;' %{__make} ################################################### Modified: openhpi/trunk/plugins/oa_soap/oa_soap_event.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_event.c 2014-10-08 21:31:05 UTC (rev 7606) +++ openhpi/trunk/plugins/oa_soap/oa_soap_event.c 2014-10-08 22:33:34 UTC (rev 7607) @@ -372,7 +372,6 @@ struct oa_info *oa) { SaErrorT rv = SA_OK; - int is_switchover = SAHPI_FALSE; SaHpiBoolT is_oa_accessible = SAHPI_FALSE; struct oa_soap_handler *oa_handler = NULL; SaHpiInt32T error_code; @@ -387,6 +386,7 @@ } oa_handler = (struct oa_soap_handler *) oh_handler->data; + rv = check_oa_status(oa_handler, oa, oa->event_con); /* If the OA is not PRESENT, then do not even try. Just get out */ if ( oa->oa_status == OA_ABSENT ) @@ -454,8 +454,7 @@ */ OA_SOAP_CHEK_SHUTDOWN_REQ(oa_handler, oa_handler->mutex, oa->mutex, NULL); - rv = oa_soap_re_discover_resources(oh_handler, oa, - is_switchover); + rv = oa_soap_re_discover_resources(oh_handler, oa); wrap_g_mutex_unlock(oa->mutex); wrap_g_mutex_unlock(oa_handler->mutex); if (rv != SA_OK) { Modified: openhpi/trunk/plugins/oa_soap/oa_soap_oa_event.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_oa_event.c 2014-10-08 21:31:05 UTC (rev 7606) +++ openhpi/trunk/plugins/oa_soap/oa_soap_oa_event.c 2014-10-08 22:33:34 UTC (rev 7607) @@ -166,7 +166,6 @@ GTimer *timer = NULL; gulong micro_seconds; gdouble time_elapsed = 0; - int is_switchover = SAHPI_TRUE; char oa_fw_buf[SAHPI_MAX_TEXT_BUFFER_LENGTH]; if (oh_handler == NULL || oa == NULL) { @@ -331,7 +330,7 @@ */ OA_SOAP_CHEK_SHUTDOWN_REQ(oa_handler, oa_handler->mutex, oa->mutex, NULL); - rv = oa_soap_re_discover_resources(oh_handler, oa, is_switchover); + rv = oa_soap_re_discover_resources(oh_handler, oa); wrap_g_mutex_unlock(oa->mutex); wrap_g_mutex_unlock(oa_handler->mutex); Modified: openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.c 2014-10-08 21:31:05 UTC (rev 7606) +++ openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.c 2014-10-08 22:33:34 UTC (rev 7607) @@ -151,7 +151,7 @@ * SA_ERR_HPI_INTERNAL_ERROR - on failure. **/ SaErrorT oa_soap_re_discover_resources(struct oh_handler_state *oh_handler, - struct oa_info *oa, int oa_switched) + struct oa_info *oa) { SaErrorT rv = SA_OK; struct oa_soap_handler *oa_handler = NULL; @@ -165,28 +165,6 @@ oa_handler = (struct oa_soap_handler *) oh_handler->data; - /* The following is applicable only to OA Switchover cases - Just rediscover oa and end the whole thing. If some other hardware - is removed at the same time, then it is a separate case that needs to - be handled separately */ - - if ( oa_switched == SAHPI_TRUE ) { - OA_SOAP_CHEK_SHUTDOWN_REQ(oa_handler, oa_handler->mutex, oa->mutex, - NULL); - rv = re_discover_oa(oh_handler, oa->event_con); - if (rv != SA_OK) { - err("Re-discovery of OA failed"); - } - OA_SOAP_CHEK_SHUTDOWN_REQ(oa_handler, oa_handler->mutex, oa->mutex, - NULL); - rv = re_discover_interconnect(oh_handler, oa->event_con); - if (rv != SA_OK) { - err("Re-discovery of interconnect failed"); - } - - return rv; - } - /* Re-discovery is called by locking the OA handler mutex and oa_info * mutex. Hence on getting request to shutdown, pass the locked mutexes * for unlocking Modified: openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.h =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.h 2014-10-08 21:31:05 UTC (rev 7606) +++ openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.h 2014-10-08 22:33:34 UTC (rev 7607) @@ -46,7 +46,7 @@ #include "oa_soap_lcd_event.h" SaErrorT oa_soap_re_discover_resources(struct oh_handler_state *oh_handler, - struct oa_info *oa, int oa_switched); + struct oa_info *oa); SaErrorT re_discover_oa(struct oh_handler_state *oh_handler, SOAP_CON *con); Modified: openhpi/trunk/utils/Makefile.mingw32 =================================================================== --- openhpi/trunk/utils/Makefile.mingw32 2014-10-08 21:31:05 UTC (rev 7606) +++ openhpi/trunk/utils/Makefile.mingw32 2014-10-08 22:33:34 UTC (rev 7607) @@ -14,6 +14,7 @@ sahpi_time_utils.c \ sahpiatca_enum_utils.c \ sahpixtca_enum_utils.c \ + sahpi_wrappers.c \ uid_utils.c \ version.rc @@ -23,7 +24,7 @@ INCLUDES := ${GLIB_INCLUDES} -I ../mingw32 -I ../include -I . -LIBS := ${GLIB_LIBS} +LIBS := ${GLIB_LIBS} ${GTHREAD_LIBS} CPPFLAGS += ${DEFS} ${INCLUDES} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2014-11-19 23:04:06
|
Revision: 7612 http://sourceforge.net/p/openhpi/code/7612 Author: dr_mohan Date: 2014-11-19 23:03:58 +0000 (Wed, 19 Nov 2014) Log Message: ----------- 1863 Create wrap_g_free to set the freed memory to NULL in ilo2_ribcl plugin Modified Paths: -------------- openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl.c openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl_discover.c openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl_idr.c openhpi/trunk/utils/sahpi_wrappers.c openhpi/trunk/utils/sahpi_wrappers.h Modified: openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl.c =================================================================== --- openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl.c 2014-10-09 21:08:39 UTC (rev 7611) +++ openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl.c 2014-11-19 23:03:58 UTC (rev 7612) @@ -201,7 +201,7 @@ /* build complete hostname with port string appended */ /* add one extra byte to account for : in the middle of hostname:port string example: 10.100.1.1:443 */ - ilo2_ribcl_handler->ilo2_hostport = g_malloc(host_len+port_len+2); + ilo2_ribcl_handler->ilo2_hostport = g_malloc0(host_len+port_len+2); if(ilo2_ribcl_handler->ilo2_hostport == NULL) { err("ilo2 ribcl Open:unable to allocate memory"); free(ilo2_ribcl_handler); Modified: openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl_discover.c =================================================================== --- openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl_discover.c 2014-10-09 21:08:39 UTC (rev 7611) +++ openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl_discover.c 2014-11-19 23:03:58 UTC (rev 7612) @@ -43,6 +43,7 @@ #include <sys/stat.h> /* For test routine ilo2_ribcl_getfile() */ #include <fcntl.h> /* For test routine ilo2_ribcl_getfile() */ #endif /* ILO2_RIBCL_SIMULATE_iLO2_RESPONSE */ +#include "sahpi_wrappers.h" /* Foreward decls: */ @@ -2070,7 +2071,7 @@ default: { err("ilo2_ribcl_controls(): Invalid iLO2 RIBCL control type"); - g_free(rdrptr); + wrap_g_free(rdrptr); return(SA_ERR_HPI_INTERNAL_ERROR); } } @@ -2085,7 +2086,7 @@ cinfo_ptr = g_memdup(&cinfo, sizeof(cinfo)); if(cinfo_ptr == NULL) { err("ilo2_ribcl_controls(): Out of memory."); - g_free(rdrptr); + wrap_g_free(rdrptr); return(SA_ERR_HPI_OUT_OF_MEMORY); } @@ -2093,8 +2094,8 @@ rdrptr, cinfo_ptr, 0); if (err) { err("Could not add RDR. Error=%s.", oh_lookup_error(err)); - g_free(rdrptr); - g_free(cinfo_ptr); + wrap_g_free(rdrptr); + wrap_g_free(cinfo_ptr); return(SA_ERR_HPI_INTERNAL_ERROR); } else { event->rdrs = g_slist_append(event->rdrs, rdrptr); @@ -2186,7 +2187,7 @@ * to be associated with this RDR. */ si = g_memdup(sens_info, sizeof(struct ilo2_ribcl_sensinfo)); if( si == NULL){ - g_free( rdr); + wrap_g_free( rdr); err("ilo2_ribcl_add_severity_sensor: Memory allocation failed."); return(SA_ERR_HPI_OUT_OF_MEMORY); } @@ -2196,8 +2197,8 @@ if( ret != SA_OK){ err("ilo2_ribcl_add_severity_sensor: could not add RDR. Error = %s.", oh_lookup_error(ret)); - g_free( si); - g_free( rdr); + wrap_g_free( si); + wrap_g_free( rdr); return( SA_ERR_HPI_INTERNAL_ERROR); } else { event->rdrs = g_slist_append(event->rdrs, rdr); @@ -2308,7 +2309,7 @@ * to be associated with this RDR. */ si = g_memdup(sens_info, sizeof(struct ilo2_ribcl_sensinfo)); if( si == NULL){ - g_free( rdr); + wrap_g_free( rdr); err("ilo2_ribcl_add_threshold_sensor: Memory allocation " "failed."); return(SA_ERR_HPI_OUT_OF_MEMORY); @@ -2320,8 +2321,8 @@ if( ret != SA_OK){ err("ilo2_ribcl_add_threshold_sensor: could not add RDR. " "Error = %s.", oh_lookup_error(ret)); - g_free( si); - g_free( rdr); + wrap_g_free( si); + wrap_g_free( rdr); return( SA_ERR_HPI_INTERNAL_ERROR); } else { event->rdrs = g_slist_append(event->rdrs, rdr); Modified: openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl_idr.c =================================================================== --- openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl_idr.c 2014-10-09 21:08:39 UTC (rev 7611) +++ openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl_idr.c 2014-11-19 23:03:58 UTC (rev 7612) @@ -41,6 +41,7 @@ #include <ilo2_ribcl.h> #include <ilo2_ribcl_idr.h> #include <ilo2_ribcl_discover.h> +#include "sahpi_wrappers.h" /************************************ Forward declarations for static functions in this file @@ -559,7 +560,7 @@ idr = g_memdup(new_idr, sizeof(struct ilo2_ribcl_idr_info)); if( idr == NULL){ - g_free( rdr); + wrap_g_free( rdr); err("ilo2_ribcl_add_idr: Memory allocation failed."); return(SA_ERR_HPI_OUT_OF_MEMORY); } @@ -569,8 +570,8 @@ if( ret != SA_OK){ err("ilo2_ribcl_add_idr: could not add RDR. Error = %s.", oh_lookup_error(ret)); - g_free( idr); - g_free( rdr); + wrap_g_free( idr); + wrap_g_free( rdr); return( SA_ERR_HPI_INTERNAL_ERROR); } else { event->rdrs = g_slist_append(event->rdrs, rdr); Modified: openhpi/trunk/utils/sahpi_wrappers.c =================================================================== --- openhpi/trunk/utils/sahpi_wrappers.c 2014-10-09 21:08:39 UTC (rev 7611) +++ openhpi/trunk/utils/sahpi_wrappers.c 2014-11-19 23:03:58 UTC (rev 7612) @@ -291,5 +291,12 @@ g_static_mutex_lock((GStaticMutex*)mutex); #endif } +void wrap_g_free(void *ptr) +{ + if(ptr) + { + g_free(ptr); + ptr = NULL; + } +} - Modified: openhpi/trunk/utils/sahpi_wrappers.h =================================================================== --- openhpi/trunk/utils/sahpi_wrappers.h 2014-10-09 21:08:39 UTC (rev 7611) +++ openhpi/trunk/utils/sahpi_wrappers.h 2014-11-19 23:03:58 UTC (rev 7612) @@ -66,6 +66,7 @@ void wrap_g_static_mutex_free_clear(void *mutex); void wrap_g_static_mutex_unlock(void *mutex); void wrap_g_static_mutex_lock(void *mutex); +void wrap_g_free(void *ptr); #ifdef __cplusplus } /* extern "C" */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2014-11-21 21:39:47
|
Revision: 7613 http://sourceforge.net/p/openhpi/code/7613 Author: dr_mohan Date: 2014-11-21 21:39:38 +0000 (Fri, 21 Nov 2014) Log Message: ----------- Fix for 1862 Create wrap_g_free to set the freed memory to NULL Modified Paths: -------------- openhpi/trunk/plugins/oa_soap/oa_soap.c openhpi/trunk/plugins/oa_soap/oa_soap_callsupport.c openhpi/trunk/plugins/oa_soap/oa_soap_discover.c openhpi/trunk/plugins/oa_soap/oa_soap_discover.h openhpi/trunk/plugins/oa_soap/oa_soap_interconnect_event.c openhpi/trunk/plugins/oa_soap/oa_soap_inventory.c openhpi/trunk/plugins/oa_soap/oa_soap_ps_event.c openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.c openhpi/trunk/plugins/oa_soap/oa_soap_sensor.c openhpi/trunk/plugins/oa_soap/oa_soap_server_event.c openhpi/trunk/plugins/oa_soap/oa_soap_utils.c openhpi/trunk/ssl/oh_ssl.c Modified: openhpi/trunk/plugins/oa_soap/oa_soap.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap.c 2014-11-19 23:03:58 UTC (rev 7612) +++ openhpi/trunk/plugins/oa_soap/oa_soap.c 2014-11-21 21:39:38 UTC (rev 7613) @@ -132,7 +132,7 @@ g_malloc0(sizeof(struct oa_info)); if (oa_handler->oa_1 == NULL) { err("Out of memory"); - g_free(oa_handler); + wrap_g_free(oa_handler); return SA_ERR_HPI_OUT_OF_MEMORY; } @@ -140,8 +140,8 @@ g_malloc0(sizeof(struct oa_info)); if (oa_handler->oa_2 == NULL) { err("Out of memory"); - g_free(oa_handler->oa_1); - g_free(oa_handler); + wrap_g_free(oa_handler->oa_1); + wrap_g_free(oa_handler); return SA_ERR_HPI_OUT_OF_MEMORY; } @@ -254,7 +254,7 @@ handler->eventq = eventq; handler->rptcache = (RPTable *) g_malloc0(sizeof(RPTable)); if (handler->rptcache == NULL) { - g_free(handler); + wrap_g_free(handler); err("Out of memory"); return NULL; } @@ -262,8 +262,8 @@ rv = oh_init_rpt(handler->rptcache); if (rv != SA_OK) { err("Initializing rptcache failed"); - g_free(handler->rptcache); - g_free(handler); + wrap_g_free(handler->rptcache); + wrap_g_free(handler); return NULL; } @@ -277,8 +277,8 @@ * Else, try to build the oa_soap_handler during discovery call */ if (rv == SA_ERR_HPI_OUT_OF_MEMORY) { - g_free(handler->rptcache); - g_free(handler); + wrap_g_free(handler->rptcache); + wrap_g_free(handler); return NULL; } } @@ -339,7 +339,7 @@ /* Cleanup the RPTable */ cleanup_plugin_rptable(handler); - g_free(handler->rptcache); + wrap_g_free(handler->rptcache); dbg("Cleaned the OA SOAP RPTable"); /* Release the mutexes. Check whether the mutex is unlocked or not. If @@ -396,13 +396,13 @@ dbg("Released the SOAP CON structures from handler"); /* Release the oa info structure */ - g_free(oa_handler->oa_1); - g_free(oa_handler->oa_2); + wrap_g_free(oa_handler->oa_1); + wrap_g_free(oa_handler->oa_2); dbg("Released the oa_info structures from handler"); /* Release the oa handler structure */ - g_free(oa_handler); - g_free(handler); + wrap_g_free(oa_handler); + wrap_g_free(handler); dbg("Released the OA SOAP handler"); return; Modified: openhpi/trunk/plugins/oa_soap/oa_soap_callsupport.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_callsupport.c 2014-11-19 23:03:58 UTC (rev 7612) +++ openhpi/trunk/plugins/oa_soap/oa_soap_callsupport.c 2014-11-21 21:39:38 UTC (rev 7613) @@ -91,6 +91,7 @@ #include <glib.h> #include <oh_error.h> #include "oa_soap_callsupport.h" +#include "sahpi_wrappers.h" /* Include file check */ #ifndef LIBXML_PUSH_ENABLED @@ -508,7 +509,7 @@ /* Get a new OA SOAP connection structure and initialize it */ - connection = g_malloc(sizeof(SOAP_CON)); /* New connection */ + connection = g_malloc0(sizeof(SOAP_CON)); /* New connection */ if (! connection) { err("out of memory"); return(NULL); @@ -596,7 +597,7 @@ connection->req_high_water, OA_SOAP_REQ_BUFFER_SIZE); - g_free(connection); + wrap_g_free(connection); /* Note that soap_open() initialized the SSL library, but * soap_close() does nothing to clean up and free SSL objects. Modified: openhpi/trunk/plugins/oa_soap/oa_soap_discover.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_discover.c 2014-11-19 23:03:58 UTC (rev 7612) +++ openhpi/trunk/plugins/oa_soap/oa_soap_discover.c 2014-11-21 21:39:38 UTC (rev 7613) @@ -1581,8 +1581,7 @@ default: err("unknown power status"); - if (hotswap_state != NULL) - g_free(hotswap_state); + wrap_g_free(hotswap_state); return SA_ERR_HPI_INTERNAL_ERROR; } @@ -1592,8 +1591,7 @@ rv = oh_add_resource(oh_handler->rptcache, &rpt, hotswap_state, 0); if (rv != SA_OK) { err("Failed to add Server rpt"); - if (hotswap_state != NULL) - g_free(hotswap_state); + wrap_g_free(hotswap_state); return rv; } @@ -2454,8 +2452,7 @@ case SAHPI_POWER_CYCLE: default: err("Wrong power state detected"); - if (hotswap_state != NULL) - g_free(hotswap_state); + wrap_g_free(hotswap_state); return SA_ERR_HPI_INTERNAL_ERROR; } } @@ -2464,8 +2461,7 @@ rv = oh_add_resource(oh_handler->rptcache, &rpt, hotswap_state, 0); if (rv != SA_OK) { err("Failed to add Interconnect RPT"); - if (hotswap_state != NULL) - g_free(hotswap_state); + wrap_g_free(hotswap_state); return rv; } @@ -2598,12 +2594,12 @@ break; case (POWER_REBOOT): err("Wrong (REBOOT) Power State detected"); - g_free(hotswap_state); + wrap_g_free(hotswap_state); return SA_ERR_HPI_INTERNAL_ERROR; break; default: err("Unknown Power State detected"); - g_free(hotswap_state); + wrap_g_free(hotswap_state); return SA_ERR_HPI_INTERNAL_ERROR; } @@ -2611,8 +2607,7 @@ rv = oh_add_resource(oh_handler->rptcache, &rpt, hotswap_state, 0); if (rv != SA_OK) { err("Failed to add Interconnect RPT"); - if (hotswap_state != NULL) - g_free(hotswap_state); + wrap_g_free(hotswap_state); return rv; } @@ -3773,7 +3768,7 @@ ps_info_doc); if( rv != SA_OK) { err("Failed to get power supply info array"); - g_free(result); + wrap_g_free(result); xmlFreeDoc( ps_info_doc); return rv; } @@ -3781,7 +3776,7 @@ ps_sts_doc); if( rv != SA_OK) { err("Failed to get power supply status array"); - g_free(result); + wrap_g_free(result); xmlFreeDoc( ps_info_doc); xmlFreeDoc( ps_sts_doc); return rv; @@ -3826,8 +3821,7 @@ i, &resource_id); if (rv != SA_OK) { err("build power supply unit rpt failed"); - g_free(result); - result = NULL; + wrap_g_free(result); xmlFreeDoc( ps_info_doc); xmlFreeDoc( ps_sts_doc); return rv; @@ -3849,8 +3843,7 @@ oa_soap_update_resource_status( &oa_handler->oa_soap_resources.ps_unit, i, "", SAHPI_UNSPECIFIED_RESOURCE_ID, RES_ABSENT); - g_free(result); - result = NULL; + wrap_g_free(result); xmlFreeDoc( ps_info_doc); xmlFreeDoc( ps_sts_doc); return rv; @@ -3861,8 +3854,7 @@ sts_response.powerSupplyStsArray = soap_next_node(sts_response.powerSupplyStsArray); } - g_free(result); - result = NULL; + wrap_g_free(result); xmlFreeDoc(ps_info_doc); xmlFreeDoc(ps_sts_doc); return SA_OK; @@ -5964,10 +5956,10 @@ "event for sensor %x has " "failed", OA_SOAP_SEN_MAIN_MEMORY_ERRORS); - g_free(memoryError); + wrap_g_free(memoryError); return rv; } - g_free(memoryError); + wrap_g_free(memoryError); strcpy(mainMemoryError, subStr + 2); if (j == 99) { err("Too many memory errors, getting out"); Modified: openhpi/trunk/plugins/oa_soap/oa_soap_discover.h =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_discover.h 2014-11-19 23:03:58 UTC (rev 7612) +++ openhpi/trunk/plugins/oa_soap/oa_soap_discover.h 2014-11-21 21:39:38 UTC (rev 7613) @@ -68,7 +68,7 @@ (SaHpiInt32T) sensor_value, &sensor_status); \ if (rv != SA_OK) { \ err("Setting sensor state failed"); \ - g_free(sensor_info); \ + wrap_g_free(sensor_info); \ return rv; \ } \ \ @@ -100,7 +100,7 @@ event_support, sensor_info); \ if (rv != SA_OK) { \ err("Updating rdr with threshold failed"); \ - g_free(sensor_info); \ + wrap_g_free(sensor_info); \ return rv; \ } \ \ Modified: openhpi/trunk/plugins/oa_soap/oa_soap_interconnect_event.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_interconnect_event.c 2014-11-19 23:03:58 UTC (rev 7612) +++ openhpi/trunk/plugins/oa_soap/oa_soap_interconnect_event.c 2014-11-21 21:39:38 UTC (rev 7613) @@ -60,6 +60,7 @@ */ #include "oa_soap_interconnect_event.h" +#include "sahpi_wrappers.h" /** * process_interconnect_reset_event @@ -535,7 +536,7 @@ strcpy(serial_number, oa_event->eventData.interconnectTrayInfo.serialNumber); serial_number[len]='\0'; if (strcmp(serial_number,"[Unknown]") == 0 ) { - g_free(serial_number); + wrap_g_free(serial_number); return SA_ERR_HPI_OUT_OF_MEMORY; } name = oa_event->eventData.interconnectTrayInfo.name; @@ -547,7 +548,7 @@ bay_number, &resource_id, TRUE); if (rv != SA_OK) { err("Failed to build the interconnect RPT"); - g_free(serial_number); + wrap_g_free(serial_number); return rv; } @@ -565,7 +566,7 @@ rv = build_inserted_interconnect_rdr(oh_handler, con, bay_number, resource_id, FALSE); - g_free(serial_number); + wrap_g_free(serial_number); return SA_OK; Modified: openhpi/trunk/plugins/oa_soap/oa_soap_inventory.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_inventory.c 2014-11-19 23:03:58 UTC (rev 7612) +++ openhpi/trunk/plugins/oa_soap/oa_soap_inventory.c 2014-11-21 21:39:38 UTC (rev 7613) @@ -155,6 +155,7 @@ #include "oa_soap_inventory.h" #include "oa_soap_utils.h" +#include "sahpi_wrappers.h" /* Array defined in oa_soap_resources.c */ extern const struct oa_soap_inv_rdr oa_soap_inv_arr[]; @@ -5332,7 +5333,7 @@ tmp_area = local_area; local_area = local_area->next_area; *head_area = local_area; - g_free(tmp_area); + wrap_g_free(tmp_area); return SA_OK; } /* Traverse the area list to find the specified IDR area */ @@ -5359,7 +5360,7 @@ } } local_area->next_area = next_area->next_area; - g_free(next_area); + wrap_g_free(next_area); return SA_OK; } else { local_area = local_area->next_area; @@ -5719,7 +5720,7 @@ } field = field->next_field; *oa_field = field; - g_free(tmp_field); + wrap_g_free(tmp_field); return SA_OK; } @@ -5731,7 +5732,7 @@ return SA_ERR_HPI_READ_ONLY; } field->next_field = tmp_field->next_field; - g_free(tmp_field); + wrap_g_free(tmp_field); return SA_OK; } else { field = field->next_field; @@ -6003,7 +6004,7 @@ } } - g_free(inventory->comment); + wrap_g_free(inventory->comment); return SA_OK; } Modified: openhpi/trunk/plugins/oa_soap/oa_soap_ps_event.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_ps_event.c 2014-11-19 23:03:58 UTC (rev 7612) +++ openhpi/trunk/plugins/oa_soap/oa_soap_ps_event.c 2014-11-21 21:39:38 UTC (rev 7613) @@ -47,6 +47,7 @@ */ #include "oa_soap_ps_event.h" +#include "sahpi_wrappers.h" /** * process_ps_insertion_event @@ -94,8 +95,7 @@ rv = soap_getPowerSupplyInfo(con, &info, response); if (rv != SOAP_OK) { err("Get power supply info failed"); - g_free(response); - response = NULL; + wrap_g_free(response); return SA_ERR_HPI_INTERNAL_ERROR; } @@ -114,13 +114,11 @@ rv = add_ps_unit(oh_handler, con, response); if (rv != SA_OK) { err("Add power supply unit failed"); - g_free(response); - response = NULL; + wrap_g_free(response); return rv; } - g_free(response); - response = NULL; + wrap_g_free(response); return SA_OK; } @@ -668,7 +666,7 @@ serial_number[len]='\0'; if (strcmp(serial_number,"[Unknown]") == 0 ) { err("Serial # of PSU at %d is [Unknown]", bay_number); - g_free(serial_number); + wrap_g_free(serial_number); return SA_ERR_HPI_OUT_OF_MEMORY; } @@ -690,7 +688,7 @@ bay_number, &resource_id); if (rv != SA_OK) { err("Failed to build the ps_unit RPT for PSU at %d", bay_number); - g_free(serial_number); + wrap_g_free(serial_number); return rv; } @@ -708,7 +706,7 @@ rv = build_power_supply_rdr(oh_handler, con, &(oa_event->eventData.powerSupplyInfo), resource_id); - g_free(serial_number); + wrap_g_free(serial_number); return SA_OK; } Modified: openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.c 2014-11-19 23:03:58 UTC (rev 7612) +++ openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.c 2014-11-21 21:39:38 UTC (rev 7613) @@ -2267,7 +2267,7 @@ if (rv != SA_OK) { err("Failed to get power supply info array"); xmlFreeDoc( ps_info_doc); - g_free( info_result); + wrap_g_free( info_result); return rv; } rv = oa_soap_get_ps_sts_arr( oa_handler ,max_bays ,&sts_res, @@ -2276,7 +2276,7 @@ err("Failed to get power supply status array"); xmlFreeDoc( ps_info_doc); xmlFreeDoc( ps_sts_doc); - g_free( info_result); + wrap_g_free( info_result); return rv; } @@ -2346,8 +2346,7 @@ if (rv != SA_OK) { err("Re-discover power supply " "sensors failed"); - g_free(info_result); - info_result = NULL; + wrap_g_free(info_result); xmlFreeDoc( ps_info_doc); xmlFreeDoc( ps_sts_doc); return rv; @@ -2374,8 +2373,7 @@ rv = remove_ps_unit(oh_handler, i); if (rv != SA_OK) { err("Power Supply Unit %d removal failed", i); - g_free(info_result); - info_result = NULL; + wrap_g_free(info_result); xmlFreeDoc( ps_info_doc); xmlFreeDoc( ps_sts_doc); return rv; @@ -2393,8 +2391,7 @@ &sts_result); if (rv != SA_OK) { err("Power Supply Unit %d add failed", i); - g_free(info_result); - info_result = NULL; + wrap_g_free(info_result); xmlFreeDoc( ps_info_doc); xmlFreeDoc( ps_sts_doc); return rv; @@ -2410,7 +2407,7 @@ } /* End of while loop */ - g_free(info_result); + wrap_g_free(info_result); xmlFreeDoc(ps_info_doc); xmlFreeDoc( ps_sts_doc); return SA_OK; @@ -2545,8 +2542,7 @@ rv = soap_getPowerSupplyInfo(con, &request, response); if (rv != SOAP_OK) { err("Get power supply info failed"); - g_free(response); - response = NULL; + wrap_g_free(response); return SA_ERR_HPI_INTERNAL_ERROR; } @@ -2555,8 +2551,7 @@ info->bayNumber, &resource_id); if (rv != SA_OK) { err("build power supply rpt failed"); - g_free(response); - response = NULL; + wrap_g_free(response); return rv; } @@ -2584,8 +2579,7 @@ info->bayNumber, "", SAHPI_UNSPECIFIED_RESOURCE_ID, RES_ABSENT); - g_free(response); - response = NULL; + wrap_g_free(response); return SA_ERR_HPI_INTERNAL_ERROR; } @@ -2593,8 +2587,7 @@ &asserted_sensors); if (rv != SA_OK) { err("Populating event struct failed"); - g_free(response); - response = NULL; + wrap_g_free(response); return rv; } @@ -2615,8 +2608,7 @@ oa_soap_assert_sen_evt(oh_handler, rpt, asserted_sensors); } - g_free(response); - response = NULL; + wrap_g_free(response); return SA_OK; } Modified: openhpi/trunk/plugins/oa_soap/oa_soap_sensor.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_sensor.c 2014-11-19 23:03:58 UTC (rev 7612) +++ openhpi/trunk/plugins/oa_soap/oa_soap_sensor.c 2014-11-21 21:39:38 UTC (rev 7613) @@ -99,6 +99,7 @@ #include "oa_soap_sensor.h" #include "oa_soap_resources.h" +#include "sahpi_wrappers.h" /* Forward declarations of static functions */ static SaErrorT oa_soap_gen_sen_evt(struct oh_handler_state *oh_handler, @@ -1232,7 +1233,7 @@ &power_supply_request, power_supply_response); if (rv != SOAP_OK) { - g_free(power_supply_response); + wrap_g_free(power_supply_response); return SA_ERR_HPI_INTERNAL_ERROR; } sensor_data->data.IsSupported = SAHPI_TRUE; @@ -1240,8 +1241,7 @@ SAHPI_SENSOR_READING_TYPE_FLOAT64; sensor_data->data.Value.SensorFloat64 = power_supply_response->actualOutput; - g_free(power_supply_response); - power_supply_response = NULL; + wrap_g_free(power_supply_response); break; default: err("Wrong resource type"); @@ -2556,7 +2556,7 @@ err("Unrecognized sensor class %d " "is detected", sensor_class); /* Release the node->data */ - g_free(node->data); + wrap_g_free(node->data); continue; } @@ -2571,7 +2571,7 @@ oa_soap_gen_res_evt(oh_handler, rpt, OA_SOAP_SEN_ASSERT_TRUE); /* Release the node->data */ - g_free(node->data); + wrap_g_free(node->data); } /* End of while loop */ /* Release the assert_sensor_list */ Modified: openhpi/trunk/plugins/oa_soap/oa_soap_server_event.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_server_event.c 2014-11-19 23:03:58 UTC (rev 7612) +++ openhpi/trunk/plugins/oa_soap/oa_soap_server_event.c 2014-11-21 21:39:38 UTC (rev 7613) @@ -65,6 +65,7 @@ #include "oa_soap_server_event.h" #include "oa_soap_discover.h" /* for build_server_rpt() prototype */ +#include "sahpi_wrappers.h" extern time_t server_insert_timer[]; extern SaHpiInt32T memErrRecFlag[]; @@ -672,11 +673,11 @@ rpt = oh_get_resource_by_id(oh_handler->rptcache, resource_id); if (rpt == NULL) { if (server_insert_timer[bay_number-1]){ - g_free(serial_number); + wrap_g_free(serial_number); return SA_OK; } err("server RPT NULL at bay %d",bay_number); - g_free(serial_number); + wrap_g_free(serial_number); return SA_ERR_HPI_INTERNAL_ERROR; } @@ -691,7 +692,7 @@ bay_number, resource_id, blade_name, FALSE); if (rv != SA_OK) { err("Failed to add Server rdr"); - g_free(serial_number); + wrap_g_free(serial_number); return rv; } @@ -706,7 +707,7 @@ rv = oh_add_resource(oh_handler->rptcache, rpt, NULL, 0); if (rv != SA_OK) { err("Failed to add Server rpt"); - g_free(serial_number); + wrap_g_free(serial_number); return rv; } @@ -716,7 +717,7 @@ SAHPI_DEFAULT_INVENTORY_ID); if (rdr == NULL) { err("Inventory RDR is not found"); - g_free(serial_number); + wrap_g_free(serial_number); return SA_ERR_HPI_NOT_PRESENT; } @@ -739,7 +740,7 @@ copy_oa_soap_event(&event)); } - g_free(serial_number); + wrap_g_free(serial_number); return SA_OK; } @@ -834,8 +835,7 @@ rv = oh_add_resource(oh_handler->rptcache, rpt, hotswap_state, 0); if (rv != SA_OK) { err("Failed to add Server rpt"); - if (hotswap_state != NULL) - g_free(hotswap_state); + wrap_g_free(hotswap_state); return rv; } @@ -961,10 +961,10 @@ if (rv != SA_OK) { err("processing the memory event for sensor %x has" " failed", OA_SOAP_SEN_MAIN_MEMORY_ERRORS); - g_free(mainMemoryError); + wrap_g_free(mainMemoryError); return; } - g_free(mainMemoryError); + wrap_g_free(mainMemoryError); memErrFlag[bay] = 0; } else { /* Get the sensor value */ Modified: openhpi/trunk/plugins/oa_soap/oa_soap_utils.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_utils.c 2014-11-19 23:03:58 UTC (rev 7612) +++ openhpi/trunk/plugins/oa_soap/oa_soap_utils.c 2014-11-21 21:39:38 UTC (rev 7613) @@ -648,7 +648,7 @@ } /* Pop out the RDR from the RDRs list */ event->rdrs = g_slist_remove(event->rdrs, (gpointer)rdr); - g_free(rdr); + wrap_g_free(rdr); /* Get the next RDR */ node = event->rdrs; } while (node != NULL); @@ -1326,92 +1326,62 @@ /* Release memory of blade presence, resource id and blade * serial number arrays */ - if (oa_handler->oa_soap_resources.server.presence != NULL) { - g_free(oa_handler->oa_soap_resources.server.presence); - } - if (oa_handler->oa_soap_resources.server.resource_id != NULL) { - g_free(oa_handler->oa_soap_resources.server.resource_id); - } + wrap_g_free(oa_handler->oa_soap_resources.server.presence); + wrap_g_free(oa_handler->oa_soap_resources.server.resource_id); + if(oa_handler->oa_soap_resources.server.serial_number != NULL) { for (i = 0; i < oa_handler->oa_soap_resources.server.max_bays; i++) { - if (oa_handler->oa_soap_resources.server.serial_number[i] != - NULL) { - g_free(oa_handler->oa_soap_resources.server. - serial_number[i]); - } + wrap_g_free(oa_handler->oa_soap_resources.server.serial_number[i]); } - g_free(oa_handler->oa_soap_resources.server.serial_number); + wrap_g_free(oa_handler->oa_soap_resources.server.serial_number); } /* Release memory of interconnect presence and serial number array */ - if (oa_handler->oa_soap_resources.interconnect.presence != NULL) { - g_free(oa_handler->oa_soap_resources.interconnect.presence); - } - if (oa_handler->oa_soap_resources.interconnect.resource_id != NULL) { - g_free(oa_handler->oa_soap_resources.interconnect.resource_id); - } + wrap_g_free(oa_handler->oa_soap_resources.interconnect.presence); + wrap_g_free(oa_handler->oa_soap_resources.interconnect.resource_id); + if(oa_handler->oa_soap_resources.interconnect.serial_number != NULL) { for (i = 0; i < oa_handler->oa_soap_resources.interconnect.max_bays; i++) { - if (oa_handler->oa_soap_resources.interconnect. - serial_number[i] != NULL) { - g_free(oa_handler->oa_soap_resources.interconnect. - serial_number[i]); - } + wrap_g_free(oa_handler->oa_soap_resources.interconnect. + serial_number[i]); } - g_free(oa_handler->oa_soap_resources.interconnect.serial_number); + wrap_g_free(oa_handler->oa_soap_resources.interconnect.serial_number); } /* Release memory of OA presence and serial number array */ - if (oa_handler->oa_soap_resources.oa.presence != NULL) { - g_free(oa_handler->oa_soap_resources.oa.presence); - } - if (oa_handler->oa_soap_resources.oa.resource_id != NULL) { - g_free(oa_handler->oa_soap_resources.oa.resource_id); - } + wrap_g_free(oa_handler->oa_soap_resources.oa.presence); + wrap_g_free(oa_handler->oa_soap_resources.oa.resource_id); + if(oa_handler->oa_soap_resources.oa.serial_number != NULL) { for (i = 0; i < oa_handler->oa_soap_resources.oa.max_bays; i++) { - if (oa_handler->oa_soap_resources.oa.serial_number[i] != NULL) { - g_free(oa_handler->oa_soap_resources.oa. - serial_number[i]); - } + wrap_g_free(oa_handler->oa_soap_resources.oa. + serial_number[i]); } - g_free(oa_handler->oa_soap_resources.oa.serial_number); + wrap_g_free(oa_handler->oa_soap_resources.oa.serial_number); } /* Release memory of fan presence. Since fans do not have serial * numbers, a serial numbers array does not need to be released. */ - if (oa_handler->oa_soap_resources.fan.presence != NULL) { - g_free(oa_handler->oa_soap_resources.fan.presence); - } - if (oa_handler->oa_soap_resources.fan.resource_id != NULL) { - g_free(oa_handler->oa_soap_resources.fan.resource_id); - } + wrap_g_free(oa_handler->oa_soap_resources.fan.presence); + wrap_g_free(oa_handler->oa_soap_resources.fan.resource_id); /* Release memory of fan zone resource id */ - if (oa_handler->oa_soap_resources.fan_zone.resource_id != NULL) { - g_free(oa_handler->oa_soap_resources.fan_zone.resource_id); - } + wrap_g_free(oa_handler->oa_soap_resources.fan_zone.resource_id); /* Release memory of power supply presence and serial number array */ - if (oa_handler->oa_soap_resources.ps_unit.presence !=NULL) { - g_free(oa_handler->oa_soap_resources.ps_unit.presence); - } - if (oa_handler->oa_soap_resources.ps_unit.resource_id !=NULL) { - g_free(oa_handler->oa_soap_resources.ps_unit.resource_id); - } + wrap_g_free(oa_handler->oa_soap_resources.ps_unit.presence); + wrap_g_free(oa_handler->oa_soap_resources.ps_unit.resource_id); + if(oa_handler->oa_soap_resources.ps_unit.serial_number != NULL) { for (i = 0; i < oa_handler->oa_soap_resources.ps_unit.max_bays; i++) { - if (oa_handler->oa_soap_resources.ps_unit.serial_number[i] - != NULL) { - g_free(oa_handler->oa_soap_resources. - ps_unit.serial_number[i]); - } + wrap_g_free(oa_handler->oa_soap_resources. + ps_unit.serial_number[i]); } - g_free(oa_handler->oa_soap_resources.ps_unit.serial_number); + wrap_g_free(oa_handler->oa_soap_resources.ps_unit.serial_number); } } Modified: openhpi/trunk/ssl/oh_ssl.c =================================================================== --- openhpi/trunk/ssl/oh_ssl.c 2014-11-19 23:03:58 UTC (rev 7612) +++ openhpi/trunk/ssl/oh_ssl.c 2014-11-21 21:39:38 UTC (rev 7613) @@ -187,7 +187,7 @@ struct CRYPTO_dynlock_value *value; if ((value = (struct CRYPTO_dynlock_value *) - g_malloc(sizeof(struct CRYPTO_dynlock_value)))) { + g_malloc0(sizeof(struct CRYPTO_dynlock_value)))) { value->mutex = wrap_g_mutex_new_init(); } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2014-12-16 22:12:48
|
Revision: 7614 http://sourceforge.net/p/openhpi/code/7614 Author: dr_mohan Date: 2014-12-16 22:12:40 +0000 (Tue, 16 Dec 2014) Log Message: ----------- Fix for #1807 use standard docdir Modified Paths: -------------- openhpi/trunk/Makefile.am openhpi/trunk/openhpi.spec.in Modified: openhpi/trunk/Makefile.am =================================================================== --- openhpi/trunk/Makefile.am 2014-11-21 21:39:38 UTC (rev 7613) +++ openhpi/trunk/Makefile.am 2014-12-16 22:12:40 UTC (rev 7614) @@ -117,8 +117,7 @@ $(top_srcdir)/utils/event_utils.h \ $(top_srcdir)/clients/oh_clients.h -docsdir=$(datadir)/doc/$(PACKAGE_NAME)-$(VERSION) -docs_DATA = README README.daemon COPYING ChangeLog +doc_DATA = README README.daemon COPYING ChangeLog $(top_srcdir)/utils/sahpi_enum_utils.h: make -C $(top_builddir)/utils sahpi_enum_utils.h Modified: openhpi/trunk/openhpi.spec.in =================================================================== --- openhpi/trunk/openhpi.spec.in 2014-11-21 21:39:38 UTC (rev 7613) +++ openhpi/trunk/openhpi.spec.in 2014-12-16 22:12:40 UTC (rev 7614) @@ -6,7 +6,7 @@ %define _sourcedir %{_topdir} %define _specdir %{_topdir} %define _srcrpmdir %{_rpmtopdir}/SRPMS -%define _docdir %{_datadir}/doc/%{name}-%{version} +%define _docdir %{_datadir}/doc/%{name} # For systems where libuuid is provided in e2fsprogs rpm %define uuid_provider e2fsprogs This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2015-06-16 21:37:24
|
Revision: 7631 http://sourceforge.net/p/openhpi/code/7631 Author: dr_mohan Date: 2015-06-16 21:37:22 +0000 (Tue, 16 Jun 2015) Log Message: ----------- #1876 ilo2_ribcl takes a long time to exit on kill Modified Paths: -------------- openhpi/trunk/openhpid/openhpid-posix.cpp openhpi/trunk/openhpid/threaded.c openhpi/trunk/openhpid/threaded.h openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl.c openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl_power.c Modified: openhpi/trunk/openhpid/openhpid-posix.cpp =================================================================== --- openhpi/trunk/openhpid/openhpid-posix.cpp 2015-06-16 16:58:33 UTC (rev 7630) +++ openhpi/trunk/openhpid/openhpid-posix.cpp 2015-06-16 21:37:22 UTC (rev 7631) @@ -42,6 +42,7 @@ #include "event.h" #include "init.h" #include "server.h" +#include "threaded.h" /*--------------------------------------------------------------------*/ @@ -314,6 +315,7 @@ // Handles SIGTERM and SIGINT oh_post_quit_event(); oh_server_request_stop(); + oh_signal_service(); } Modified: openhpi/trunk/openhpid/threaded.c =================================================================== --- openhpi/trunk/openhpid/threaded.c 2015-06-16 16:58:33 UTC (rev 7630) +++ openhpi/trunk/openhpid/threaded.c 2015-06-16 21:37:22 UTC (rev 7631) @@ -27,6 +27,7 @@ static volatile int started = FALSE; volatile int signal_stop = FALSE; +int signal_service_thread = FALSE; /* Used by the plugins */ GThread *discovery_thread = 0; GMutex *discovery_lock = 0; @@ -138,20 +139,32 @@ DBG("Starting discovery thread."); discovery_cond = wrap_g_cond_new_init(); discovery_lock = wrap_g_mutex_new_init(); - discovery_thread = wrap_g_thread_create_new("DiscoveryThread",discovery_func, 0, TRUE, 0); + discovery_thread = wrap_g_thread_create_new("DiscoveryThread", + discovery_func, 0, TRUE, 0); DBG("Starting event threads."); evtget_cond = wrap_g_cond_new_init(); evtget_lock = wrap_g_mutex_new_init(); - evtget_thread = wrap_g_thread_create_new("EventGet",evtget_func, 0, TRUE, 0); + evtget_thread = wrap_g_thread_create_new("EventGet",evtget_func, + 0, TRUE, 0); - evtpop_thread = wrap_g_thread_create_new("EventPop",evtpop_func, 0, TRUE, 0); + evtpop_thread = wrap_g_thread_create_new("EventPop",evtpop_func, + 0, TRUE, 0); started = TRUE; return 0; } +void oh_signal_service(void) +{ + /* Plugin may need to wait for a long time (ex: power cycle). This + variable could be used by service threads executing in the plugin + code to exit. Discovery, main and other plugin specific threads + need to use some other variable set by the close function */ + signal_service_thread = TRUE; +} + int oh_threaded_stop(void) { if ( started == FALSE ) { Modified: openhpi/trunk/openhpid/threaded.h =================================================================== --- openhpi/trunk/openhpid/threaded.h 2015-06-16 16:58:33 UTC (rev 7630) +++ openhpi/trunk/openhpid/threaded.h 2015-06-16 21:37:22 UTC (rev 7631) @@ -22,6 +22,7 @@ #endif int oh_threaded_start(void); +void oh_signal_service(void); int oh_threaded_stop(void); void oh_wake_discovery_thread(void); Modified: openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl.c =================================================================== --- openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl.c 2015-06-16 16:58:33 UTC (rev 7630) +++ openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl.c 2015-06-16 21:37:22 UTC (rev 7631) @@ -315,6 +315,7 @@ } close_handler = SAHPI_TRUE; + dbg("ilo2 ribcl close_handler is set"); /* Sleep so that discovery thread get this variable */ sleep(1); Modified: openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl_power.c =================================================================== --- openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl_power.c 2015-06-16 16:58:33 UTC (rev 7630) +++ openhpi/trunk/plugins/ilo2_ribcl/ilo2_ribcl_power.c 2015-06-16 21:37:22 UTC (rev 7631) @@ -42,9 +42,9 @@ #include <ilo2_ribcl.h> #include <ilo2_ribcl_ssl.h> #include <ilo2_ribcl_xml.h> - -/***************************** - iLO2 RIBCL plug-in Power ABI Interface functions +extern int signal_service_thread; +/***************************n +iLO2 RIBCL plug-in Power ABI Interface functions *****************************/ /** @@ -147,6 +147,7 @@ ret = ir_xml_parse_host_power_status(new_response, &power_status, ilo2_ribcl_handler->ilo2_hostport); + free( new_response); break; default: err("ilo2_ribcl_do_discovery():" @@ -156,13 +157,11 @@ if( ret != RIBCL_SUCCESS){ err("ilo2_ribcl_get_power_state: response parse failed."); free( response); - free( new_response); return( SA_ERR_HPI_INTERNAL_ERROR); } /* We're finished. Free up the temporary response buffer */ free( response); - free( new_response); if(power_status == ILO2_RIBCL_POWER_ON) { *state = SAHPI_POWER_ON; @@ -268,6 +267,7 @@ /* we should never get here as oh_lookup_powerstate() should have returned a null string back. */ err("ilo2_ribcl_set_power_state(): Invalid parameter."); + free( response); return(SA_ERR_HPI_INVALID_PARAMS); } @@ -299,6 +299,7 @@ /* Now, parse the response. */ ret = ir_xml_parse_set_host_power(new_response, ilo2_ribcl_handler->ilo2_hostport); + free( new_response); break; default: err("ilo2_ribcl_do_discovery():" @@ -307,7 +308,6 @@ if(ret == -1) { err("ilo2_ribcl_set_power_state: iLO2 returned error."); free( response); - free( new_response); return( SA_ERR_HPI_INTERNAL_ERROR); } @@ -324,14 +324,16 @@ temp_state = SAHPI_POWER_ON; for( polls=0; polls < ILO2_MAX_POWER_POLLS; polls++){ + if( signal_service_thread == TRUE ) { + dbg("ilo2_ribcl_handler is closed"); + free( response); + return(SA_OK); + } - dbg("Obtaining current power state from iLo2 at %s, try %d", - ilo2_ribcl_handler->ilo2_hostport, polls); ilo2_ribcl_get_power_state(hnd, rid, &temp_state); if(temp_state == SAHPI_POWER_OFF){ break; } - /* iLo2 commands take around 10 seconds round trip, * so sleep for a while before retrying. */ sleep( ILO2_POWER_POLL_SLEEP_SECONDS); @@ -339,9 +341,11 @@ } /* end for polls */ if( polls == ILO2_MAX_POWER_POLLS){ - err("Maximum tries exceeded ( %d) checking power off for system at address %s", - ILO2_MAX_POWER_POLLS, ilo2_ribcl_handler->ilo2_hostport); - return( SA_ERR_HPI_INTERNAL_ERROR); + err(" %s Failed to get to the power off state even " + "after %d seconds", ilo2_ribcl_handler->ir_hostname, + ILO2_MAX_POWER_POLLS*ILO2_POWER_POLL_SLEEP_SECONDS); + free( response); + return( SA_ERR_HPI_INVALID_STATE); } /* Power is off now. update res_info power status */ @@ -378,6 +382,7 @@ /* Now, parse the response. */ ret = ir_xml_parse_set_host_power(new_response, ilo2_ribcl_handler->ilo2_hostport); + free( new_response); break; default: err("ilo2_ribcl_do_discovery():" @@ -385,7 +390,6 @@ } free( response); - free( new_response); if(ret == -1) { err("ilo2_ribcl_set_power_state: iLO2 returned error."); @@ -395,21 +399,28 @@ res_info->power_cur_state = SAHPI_POWER_ON; } else { /* Save current value in res_info */ - for( polls=0; polls < ILO2_MAX_POWER_POLLS; polls++){ - ilo2_ribcl_get_power_state(hnd, rid, &temp_state); - if(temp_state == state){ - res_info->power_cur_state = state; - return(SA_OK); - } - sleep( ILO2_POWER_POLL_SLEEP_SECONDS); + for( polls=0; polls < ILO2_MAX_POWER_POLLS; polls++) { + if( signal_service_thread == TRUE ) { + dbg("ilo2_ribcl_handler is closed"); + free( response); + return(SA_OK); + } + + ilo2_ribcl_get_power_state(hnd, rid, &temp_state); + if(temp_state == state) { + res_info->power_cur_state = state; + return(SA_OK); + } + sleep( ILO2_POWER_POLL_SLEEP_SECONDS); } if( polls == ILO2_MAX_POWER_POLLS){ - err(" %s Failed to get to the requested %s state even after " - "%d seconds", ilo2_ribcl_handler->ir_hostname, - state?"Power ON":"Power OFF", - ILO2_MAX_POWER_POLLS*ILO2_POWER_POLL_SLEEP_SECONDS); + err(" %s Failed to get to the requested %s state even " + "after %d seconds", ilo2_ribcl_handler->ir_hostname, + state?"Power ON":"Power OFF", + ILO2_MAX_POWER_POLLS*ILO2_POWER_POLL_SLEEP_SECONDS); - return( SA_ERR_HPI_INVALID_STATE); + free( response); + return( SA_ERR_HPI_INVALID_STATE); } } return(SA_OK); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2015-07-08 13:24:09
|
Revision: 7637 http://sourceforge.net/p/openhpi/code/7637 Author: dr_mohan Date: 2015-07-08 13:24:06 +0000 (Wed, 08 Jul 2015) Log Message: ----------- Fix for #1877 Old functions still used with GLIB > 2.31 Modified Paths: -------------- openhpi/trunk/baselib/session.cpp openhpi/trunk/hpi_shell/session.c openhpi/trunk/openhpid/session.c openhpi/trunk/openhpid/threaded.c openhpi/trunk/utils/sahpi_wrappers.c openhpi/trunk/utils/sahpi_wrappers.h Modified: openhpi/trunk/baselib/session.cpp =================================================================== --- openhpi/trunk/baselib/session.cpp 2015-07-08 01:28:03 UTC (rev 7636) +++ openhpi/trunk/baselib/session.cpp 2015-07-08 13:24:06 UTC (rev 7637) @@ -104,10 +104,7 @@ SaHpiSessionIdT m_sid; SaHpiSessionIdT m_remote_sid; #if GLIB_CHECK_VERSION (2, 32, 0) - /* TODO Below variable type needs to be changed with - * GPrivate from glib version > 2.31.0. - */ - GStaticPrivate m_sockets; + GPrivate m_sockets; #else GStaticPrivate m_sockets; #endif @@ -120,7 +117,11 @@ m_sid( 0 ), m_remote_sid( 0 ) { + #if GLIB_CHECK_VERSION (2, 32, 0) + m_sockets = G_PRIVATE_INIT (g_free); + #else wrap_g_static_private_init( &m_sockets ); + #endif } cSession::~cSession() @@ -212,7 +213,11 @@ } } + #if GLIB_CHECK_VERSION (2, 32, 0) + wrap_g_static_private_set( &m_sockets, 0);// close socket + #else wrap_g_static_private_set( &m_sockets, 0, 0 ); // close socket + #endif g_usleep( NEXT_RPC_ATTEMPT_TIMEOUT ); } if ( !rc ) { @@ -261,7 +266,11 @@ /* keepalive_intvl */ 1, /* keepalive_probes */ 3 ); + #if GLIB_CHECK_VERSION (2, 32, 0) + wrap_g_static_private_set( &m_sockets, sock ); + #else wrap_g_static_private_set( &m_sockets, sock, DeleteSock ); + #endif } return SA_OK; Modified: openhpi/trunk/hpi_shell/session.c =================================================================== --- openhpi/trunk/hpi_shell/session.c 2015-07-08 01:28:03 UTC (rev 7636) +++ openhpi/trunk/hpi_shell/session.c 2015-07-08 13:24:06 UTC (rev 7637) @@ -45,7 +45,6 @@ /* Progress bar implementation */ static void* progress_bar(void *unused) { - GTimeVal time; char buf[PROGRESS_BUF_SIZE], A[20]; int i = 0, t = 0, len, mes_len; @@ -60,9 +59,17 @@ strncpy(buf + mes_len + (i - len) / 2, A, len); printf("%s\r", buf); fflush(stdout); + #if GLIB_CHECK_VERSION (2, 32, 0) + gint64 time; + time = g_get_monotonic_time(); + time = time + G_USEC_PER_SEC / 10; + wrap_g_cond_timed_wait(thread_wait, thread_mutex, time); + #else + GTimeVal time; g_get_current_time(&time); g_time_val_add(&time, G_USEC_PER_SEC / 10); wrap_g_cond_timed_wait(thread_wait, thread_mutex, &time); + #endif if (i < (PROGRESS_BUF_SIZE - mes_len - 1)) i++; t++; }; Modified: openhpi/trunk/openhpid/session.c =================================================================== --- openhpi/trunk/openhpid/session.c 2015-07-08 01:28:03 UTC (rev 7636) +++ openhpi/trunk/openhpid/session.c 2015-07-08 13:24:06 UTC (rev 7637) @@ -290,7 +290,6 @@ { struct oh_session *session = NULL; struct oh_event *devent = NULL; - GTimeVal gfinaltime; GAsyncQueue *eventq = NULL; SaHpiBoolT subscribed; SaErrorT invalid; @@ -317,10 +316,19 @@ devent = g_async_queue_try_pop(eventq); } else if (timeout == SAHPI_TIMEOUT_BLOCK) { while (devent == NULL) { + #if GLIB_CHECK_VERSION (2, 32, 0) + guint64 gfinaltime; + gfinaltime = g_get_monotonic_time(); + gfinaltime = gfinaltime + 5000000L; + devent = + wrap_g_async_queue_timed_pop(eventq, gfinaltime); + #else + GTimeVal gfinaltime; g_get_current_time(&gfinaltime); g_time_val_add(&gfinaltime, 5000000L); devent = wrap_g_async_queue_timed_pop(eventq, &gfinaltime); + #endif /* compliance with spec page 63 */ invalid = oh_get_session_subscription(sid, &subscribed); @@ -333,9 +341,17 @@ } } } else { + #if GLIB_CHECK_VERSION (2, 32, 0) + guint64 gfinaltime; + gfinaltime = g_get_monotonic_time(); + gfinaltime = gfinaltime + (glong) (timeout / 1000); + devent = wrap_g_async_queue_timed_pop(eventq, gfinaltime); + #else + GTimeVal gfinaltime; g_get_current_time(&gfinaltime); g_time_val_add(&gfinaltime, (glong) (timeout / 1000)); devent = wrap_g_async_queue_timed_pop(eventq, &gfinaltime); + #endif invalid = oh_get_session_subscription(sid, &subscribed); if (invalid || !subscribed) { g_async_queue_unref(eventq); Modified: openhpi/trunk/openhpid/threaded.c =================================================================== --- openhpi/trunk/openhpid/threaded.c 2015-07-08 01:28:03 UTC (rev 7636) +++ openhpi/trunk/openhpid/threaded.c 2015-07-08 13:24:06 UTC (rev 7637) @@ -59,10 +59,17 @@ break; DBG("Discovery: Going to sleep."); + #if GLIB_CHECK_VERSION (2, 32, 0) + gint64 time; + time = g_get_monotonic_time(); + time = time + OH_DISCOVERY_THREAD_SLEEP_TIME; + wrap_g_cond_timed_wait(discovery_cond, discovery_lock, time); + #else GTimeVal time; g_get_current_time(&time); g_time_val_add(&time, OH_DISCOVERY_THREAD_SLEEP_TIME); wrap_g_cond_timed_wait(discovery_cond, discovery_lock, &time); + #endif } /* Let oh_wake_discovery_thread know this thread is done */ g_cond_broadcast(discovery_cond); @@ -92,10 +99,17 @@ break; DBG("Event harvesting: Going to sleep."); + #if GLIB_CHECK_VERSION (2, 32, 0) + gint64 time; + time = g_get_monotonic_time(); + time = time + OH_EVTGET_THREAD_SLEEP_TIME; + wrap_g_cond_timed_wait(evtget_cond, evtget_lock, time); + #else GTimeVal time; g_get_current_time(&time); g_time_val_add(&time, OH_EVTGET_THREAD_SLEEP_TIME); wrap_g_cond_timed_wait(evtget_cond, evtget_lock, &time); + #endif } g_mutex_unlock(evtget_lock); Modified: openhpi/trunk/utils/sahpi_wrappers.c =================================================================== --- openhpi/trunk/utils/sahpi_wrappers.c 2015-07-08 01:28:03 UTC (rev 7636) +++ openhpi/trunk/utils/sahpi_wrappers.c 2015-07-08 13:24:06 UTC (rev 7637) @@ -149,7 +149,7 @@ void wrap_g_static_private_init(void *key) { #if GLIB_CHECK_VERSION (2, 32, 0) - ; + err("Not expected to be here"); #else g_static_private_init((GStaticPrivate *)key); #endif @@ -164,25 +164,22 @@ #endif } +#if GLIB_CHECK_VERSION (2, 32, 0) +void wrap_g_static_private_set(void * key, gpointer value) +{ + g_private_set((GPrivate*) key, value); +} +#else void wrap_g_static_private_set(void * key, gpointer value, GDestroyNotify notify) { - #if GLIB_CHECK_VERSION (2, 32, 0) - /* TODO Below call needs to be replaced with - * g_private_set() call for glib version > 2.31.0. - * */ - g_static_private_set((GStaticPrivate*) key, value, notify); - #else - g_static_private_set((GStaticPrivate*) key, value, notify); - #endif + g_static_private_set((GStaticPrivate*) key, value, notify); } +#endif gpointer wrap_g_static_private_get(void *key) { #if GLIB_CHECK_VERSION (2, 32, 0) - /* TODO Below call needs to be replaced with - * g_private_get() call for glib version > 2.31.0. - * */ - return g_static_private_get((GStaticPrivate *)key); + return g_private_get((GPrivate*) key); #else return g_static_private_get((GStaticPrivate *)key); #endif @@ -206,34 +203,29 @@ #endif } +#if GLIB_CHECK_VERSION (2, 32, 0) +gpointer wrap_g_async_queue_timed_pop(GAsyncQueue *queue, guint64 end_time) +{ + return(g_async_queue_timeout_pop(queue, end_time)); +} +#else gpointer wrap_g_async_queue_timed_pop(GAsyncQueue *queue, GTimeVal *end_time) { - #if GLIB_CHECK_VERSION (2, 32, 0) - /* The actual function for this is the following. But - the argument has to be different. Use it when the source - is modified - g_async_queue_timeout_pop (*queue, (guint64) *end_time); - */ - return(g_async_queue_timeout_pop(queue, (guint64)end_time->tv_usec)); - #else - return(g_async_queue_timed_pop(queue, end_time)); - #endif + return(g_async_queue_timed_pop(queue, end_time)); } +#endif +#if GLIB_CHECK_VERSION (2, 32, 0) +gboolean wrap_g_cond_timed_wait (GCond *cond, GMutex *mutex, gint64 abs_time) +{ + return(g_cond_wait_until (cond, mutex, abs_time)); +} +#else gboolean wrap_g_cond_timed_wait (GCond *cond, GMutex *mutex, GTimeVal *abs_time) { - #if GLIB_CHECK_VERSION (2, 32, 0) - /* The actual function for this is the following. But - the argument has to be different. Use it when the source - is modified - g_cond_wait_until (cond, mutex, (gint64) *abs_time); - */ - //return(g_cond_wait_until (cond, mutex, (gint64)abs_time->tv_usec)); - return(g_cond_timed_wait (cond, mutex, abs_time)); - #else - return(g_cond_timed_wait (cond, mutex, abs_time)); - #endif + return(g_cond_timed_wait (cond, mutex, abs_time)); } +#endif GCond* wrap_g_cond_new_init() { Modified: openhpi/trunk/utils/sahpi_wrappers.h =================================================================== --- openhpi/trunk/utils/sahpi_wrappers.h 2015-07-08 01:28:03 UTC (rev 7636) +++ openhpi/trunk/utils/sahpi_wrappers.h 2015-07-08 13:24:06 UTC (rev 7637) @@ -54,12 +54,24 @@ void wrap_g_static_rec_mutex_unlock( void *mutex); void wrap_g_static_private_init(void *key); void wrap_g_static_private_free(void * key); +#if GLIB_CHECK_VERSION (2, 32, 0) +void wrap_g_static_private_set(void* key, gpointer value); +#else void wrap_g_static_private_set(void* key, gpointer value, GDestroyNotify notify); +#endif gpointer wrap_g_static_private_get(void *key); void wrap_g_static_rec_mutex_init(void *mutex); void wrap_g_static_rec_mutex_free_clear(void *mutex); +#if GLIB_CHECK_VERSION (2, 32, 0) +gpointer wrap_g_async_queue_timed_pop(GAsyncQueue *queue, guint64 end_time); +#else gpointer wrap_g_async_queue_timed_pop(GAsyncQueue *queue, GTimeVal *end_time); +#endif +#if GLIB_CHECK_VERSION (2, 32, 0) +gboolean wrap_g_cond_timed_wait (GCond *cond, GMutex *mutex, gint64 abs_time); +#else gboolean wrap_g_cond_timed_wait (GCond *cond, GMutex *mutex, GTimeVal *abs_time); +#endif GCond* wrap_g_cond_new_init(void); void wrap_g_cond_free (GCond *cond); void wrap_g_static_mutex_init (void *mutex); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2015-07-15 16:50:32
|
Revision: 7642 http://sourceforge.net/p/openhpi/code/7642 Author: dr_mohan Date: 2015-07-15 16:50:29 +0000 (Wed, 15 Jul 2015) Log Message: ----------- Fix for #1886 Warnings from new automake Modified Paths: -------------- openhpi/trunk/baselib/Makefile.am openhpi/trunk/clients/Makefile.am openhpi/trunk/clients/hpixml/Makefile.am openhpi/trunk/cpp/Makefile.am openhpi/trunk/cpp/t/Makefile.am openhpi/trunk/hpi_shell/Makefile.am openhpi/trunk/marshal/Makefile.am openhpi/trunk/marshal/t/Makefile.am openhpi/trunk/openhpid/Makefile.am openhpi/trunk/openhpid/t/ohpi/Makefile.am openhpi/trunk/plugins/dynamic_simulator/Makefile.am openhpi/trunk/plugins/ilo2_ribcl/Makefile.am openhpi/trunk/plugins/ipmi/Makefile.am openhpi/trunk/plugins/ipmi/t/Makefile.am openhpi/trunk/plugins/ipmidirect/Makefile.am openhpi/trunk/plugins/ipmidirect/t/Makefile.am openhpi/trunk/plugins/oa_soap/Makefile.am openhpi/trunk/plugins/rtas/Makefile.am openhpi/trunk/plugins/simulator/Makefile.am openhpi/trunk/plugins/simulator/t/Makefile.am openhpi/trunk/plugins/slave/Makefile.am openhpi/trunk/plugins/snmp_bc/Makefile.am openhpi/trunk/plugins/snmp_bc/t/Makefile.am openhpi/trunk/plugins/sysfs/Makefile.am openhpi/trunk/plugins/test_agent/Makefile.am openhpi/trunk/plugins/watchdog/Makefile.am openhpi/trunk/snmp/Makefile.am openhpi/trunk/ssl/Makefile.am openhpi/trunk/transport/Makefile.am openhpi/trunk/utils/Makefile.am openhpi/trunk/utils/t/ann/Makefile.am openhpi/trunk/utils/t/el/Makefile.am openhpi/trunk/utils/t/epath/Makefile.am openhpi/trunk/utils/t/rpt/Makefile.am openhpi/trunk/utils/t/sahpi/Makefile.am openhpi/trunk/utils/t/uid/Makefile.am Modified: openhpi/trunk/baselib/Makefile.am =================================================================== --- openhpi/trunk/baselib/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/baselib/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -19,7 +19,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"baselib\" -INCLUDES = \ +AM_CPPFLAGS += \ @OPENHPI_INCLUDES@ -I$(top_srcdir)/transport -I$(top_srcdir)/marshal @OH_SSL_INCLUDES@ EXTRA_DIST = Makefile.mingw32 version.rc Modified: openhpi/trunk/clients/Makefile.am =================================================================== --- openhpi/trunk/clients/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/clients/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -4,7 +4,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"client\" @CRYPT_FLAG@ AM_CFLAGS = @CRYPT_FLAG@ -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ SUBDIRS = hpixml DIST_SUBDIRS = hpixml Modified: openhpi/trunk/clients/hpixml/Makefile.am =================================================================== --- openhpi/trunk/clients/hpixml/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/clients/hpixml/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -4,7 +4,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"hpixml\" AM_CCASFLAGS = -DSCHEMA=\"$(srcdir)/schema.xsd\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ EXTRA_DIST = Makefile.mingw32 schema.xsd version.rc Modified: openhpi/trunk/cpp/Makefile.am =================================================================== --- openhpi/trunk/cpp/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/cpp/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -20,7 +20,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"cpp\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ includedir=$(base_includedir)/openhpi include_HEADERS = oSaHpiAlarm.hpp \ Modified: openhpi/trunk/cpp/t/Makefile.am =================================================================== --- openhpi/trunk/cpp/t/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/cpp/t/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -12,7 +12,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ -I$(top_builddir)/cpp +AM_CPPFLAGS += @OPENHPI_INCLUDES@ -I$(top_builddir)/cpp MAINTAINERCLEANFILES = Makefile.in Modified: openhpi/trunk/hpi_shell/Makefile.am =================================================================== --- openhpi/trunk/hpi_shell/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/hpi_shell/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -8,9 +8,9 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"hpi_shell\" -INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/utils +AM_CPPFLAGS += -I$(top_srcdir)/include -I$(top_srcdir)/utils -INCLUDES += -I$(top_srcdir)/openhpid \ +AM_CPPFLAGS += -I$(top_srcdir)/openhpid \ -I$(top_srcdir)/marshal \ -I$(top_srcdir)/clients \ -DCLIENT Modified: openhpi/trunk/marshal/Makefile.am =================================================================== --- openhpi/trunk/marshal/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/marshal/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -23,7 +23,7 @@ EXTRA_DIST = Makefile.mingw32 version.rc -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ # just to clear LIBS LIBS = Modified: openhpi/trunk/marshal/t/Makefile.am =================================================================== --- openhpi/trunk/marshal/t/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/marshal/t/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -23,7 +23,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = -I $(MARSHAL_SRCDIR) @OPENHPI_INCLUDES@ +AM_CPPFLAGS += -I $(MARSHAL_SRCDIR) @OPENHPI_INCLUDES@ noinst_PROGRAMS = float_format float_format_SOURCES = float_format.c Modified: openhpi/trunk/openhpid/Makefile.am =================================================================== --- openhpi/trunk/openhpid/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/openhpid/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -20,7 +20,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"openhpid\" @CRYPT_FLAG@ AM_CFLAGS = @CRYPT_FLAG@ -INCLUDES = \ +AM_CPPFLAGS += \ @OPENHPI_INCLUDES@ -I$(top_srcdir)/transport -I$(top_srcdir)/marshal @OH_SSL_INCLUDES@ SUBDIRS = t Modified: openhpi/trunk/openhpid/t/ohpi/Makefile.am =================================================================== --- openhpi/trunk/openhpid/t/ohpi/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/openhpid/t/ohpi/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -15,7 +15,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ TDEPLIB = $(top_builddir)/openhpid/libopenhpidaemon.la \ $(top_builddir)/utils/libopenhpiutils.la Modified: openhpi/trunk/plugins/dynamic_simulator/Makefile.am =================================================================== --- openhpi/trunk/plugins/dynamic_simulator/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/dynamic_simulator/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -33,7 +33,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"dynsim\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ pkglib_LTLIBRARIES = libdyn_simulator.la Modified: openhpi/trunk/plugins/ilo2_ribcl/Makefile.am =================================================================== --- openhpi/trunk/plugins/ilo2_ribcl/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/ilo2_ribcl/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -37,7 +37,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"ilo2_ribcl\" -INCLUDES = @OPENHPI_INCLUDES@ @XML2_INCLUDE@ @OH_SSL_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ @XML2_INCLUDE@ @OH_SSL_INCLUDES@ pkglib_LTLIBRARIES = libilo2_ribcl.la Modified: openhpi/trunk/plugins/ipmi/Makefile.am =================================================================== --- openhpi/trunk/plugins/ipmi/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/ipmi/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -37,7 +37,7 @@ SUBDIRS = t -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ AM_CFLAGS = @OPENIPMI_CFLAGS@ Modified: openhpi/trunk/plugins/ipmi/t/Makefile.am =================================================================== --- openhpi/trunk/plugins/ipmi/t/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/ipmi/t/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -34,7 +34,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" noinst_PROGRAMS = ipmi_thres_test -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ #noinst_PROGRAMS = set_thres Modified: openhpi/trunk/plugins/ipmidirect/Makefile.am =================================================================== --- openhpi/trunk/plugins/ipmidirect/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/ipmidirect/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -33,7 +33,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"ipmidirect\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ SUBDIRS = t DIST_SUBDIRS = t Modified: openhpi/trunk/plugins/ipmidirect/t/Makefile.am =================================================================== --- openhpi/trunk/plugins/ipmidirect/t/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/ipmidirect/t/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -41,7 +41,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ -I$(top_srcdir)/plugins/ipmidirect +AM_CPPFLAGS += @OPENHPI_INCLUDES@ -I$(top_srcdir)/plugins/ipmidirect $(CON_REMOTE_SOURCES): Modified: openhpi/trunk/plugins/oa_soap/Makefile.am =================================================================== --- openhpi/trunk/plugins/oa_soap/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/oa_soap/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -31,7 +31,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"oa_soap\" -INCLUDES = @OPENHPI_INCLUDES@ @XML2_INCLUDE@ @OH_SSL_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ @XML2_INCLUDE@ @OH_SSL_INCLUDES@ pkglib_LTLIBRARIES = liboa_soap.la Modified: openhpi/trunk/plugins/rtas/Makefile.am =================================================================== --- openhpi/trunk/plugins/rtas/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/rtas/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -17,7 +17,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"rtas\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ pkglib_LTLIBRARIES = librtas2hpi.la Modified: openhpi/trunk/plugins/simulator/Makefile.am =================================================================== --- openhpi/trunk/plugins/simulator/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/simulator/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -21,7 +21,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"sim\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ pkglib_LTLIBRARIES = libsimulator.la Modified: openhpi/trunk/plugins/simulator/t/Makefile.am =================================================================== --- openhpi/trunk/plugins/simulator/t/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/simulator/t/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -13,7 +13,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ MAINTAINERCLEANFILES = Makefile.in Modified: openhpi/trunk/plugins/slave/Makefile.am =================================================================== --- openhpi/trunk/plugins/slave/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/slave/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -17,7 +17,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"slave\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ EXTRA_DIST = Makefile.mingw32 version.rc Modified: openhpi/trunk/plugins/snmp_bc/Makefile.am =================================================================== --- openhpi/trunk/plugins/snmp_bc/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/snmp_bc/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -25,7 +25,7 @@ SUBDIRS = t -INCLUDES = @OPENHPI_INCLUDES@ -I$(top_srcdir)/snmp -I$(SNMPUTILSDIR) +AM_CPPFLAGS += @OPENHPI_INCLUDES@ -I$(top_srcdir)/snmp -I$(SNMPUTILSDIR) AM_CFLAGS = @SNMPFLAGS@ Modified: openhpi/trunk/plugins/snmp_bc/t/Makefile.am =================================================================== --- openhpi/trunk/plugins/snmp_bc/t/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/snmp_bc/t/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -44,7 +44,7 @@ SNMPUTILSDIR = $(top_srcdir)/$(SNMPDIR) -INCLUDES = \ +AM_CPPFLAGS += \ @OPENHPI_INCLUDES@ \ -I$(top_srcdir)/snmp \ -I$(top_srcdir)/include \ Modified: openhpi/trunk/plugins/sysfs/Makefile.am =================================================================== --- openhpi/trunk/plugins/sysfs/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/sysfs/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -33,7 +33,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"sysfs\" -INCLUDES = @OPENHPI_INCLUDES@ -I/usr/include/sysfs +AM_CPPFLAGS += @OPENHPI_INCLUDES@ -I/usr/include/sysfs pkglib_LTLIBRARIES = libsysfs2hpi.la Modified: openhpi/trunk/plugins/test_agent/Makefile.am =================================================================== --- openhpi/trunk/plugins/test_agent/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/test_agent/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -17,7 +17,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"test_agent\" -D__STDC_FORMAT_MACROS -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ EXTRA_DIST = Makefile.mingw32 version.rc Modified: openhpi/trunk/plugins/watchdog/Makefile.am =================================================================== --- openhpi/trunk/plugins/watchdog/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/watchdog/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -33,7 +33,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"watchdog\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ pkglib_LTLIBRARIES = libwatchdog.la Modified: openhpi/trunk/snmp/Makefile.am =================================================================== --- openhpi/trunk/snmp/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/snmp/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -12,7 +12,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"snmp\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ AM_CFLAGS = @SNMPFLAGS@ Modified: openhpi/trunk/ssl/Makefile.am =================================================================== --- openhpi/trunk/ssl/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/ssl/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -12,7 +12,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"ssl\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ lib_LTLIBRARIES = libopenhpi_ssl.la Modified: openhpi/trunk/transport/Makefile.am =================================================================== --- openhpi/trunk/transport/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/transport/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -20,7 +20,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"transport\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ # just to clear LIBS LIBS = Modified: openhpi/trunk/utils/Makefile.am =================================================================== --- openhpi/trunk/utils/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/utils/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -55,7 +55,7 @@ # FIXME:: Add when we can auto-generate files for SMP systems # MOSTLYCLEANFILES += $(GENERATED_FILES) -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ SUBDIRS = t DIST_SUBDIRS = t Modified: openhpi/trunk/utils/t/ann/Makefile.am =================================================================== --- openhpi/trunk/utils/t/ann/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/utils/t/ann/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -27,7 +27,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ $(REMOTE_SOURCES): if test ! -f $@ -a ! -L $@; then \ Modified: openhpi/trunk/utils/t/el/Makefile.am =================================================================== --- openhpi/trunk/utils/t/el/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/utils/t/el/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -30,7 +30,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ $(REMOTE_SOURCES): if test ! -f $@ -a ! -L $@; then \ Modified: openhpi/trunk/utils/t/epath/Makefile.am =================================================================== --- openhpi/trunk/utils/t/epath/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/utils/t/epath/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -46,7 +46,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ $(REMOTE_SOURCES): if test ! -f $@ -a ! -L $@; then \ Modified: openhpi/trunk/utils/t/rpt/Makefile.am =================================================================== --- openhpi/trunk/utils/t/rpt/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/utils/t/rpt/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -25,7 +25,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ EXTRA_DIST = rpt_resources.h Modified: openhpi/trunk/utils/t/sahpi/Makefile.am =================================================================== --- openhpi/trunk/utils/t/sahpi/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/utils/t/sahpi/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -24,7 +24,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ AM_CFLAGS = -std=c99 # the -std=c99 comment above is required to have unicode in the tests Modified: openhpi/trunk/utils/t/uid/Makefile.am =================================================================== --- openhpi/trunk/utils/t/uid/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/utils/t/uid/Makefile.am 2015-07-15 16:50:29 UTC (rev 7642) @@ -26,7 +26,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ $(REMOTE_SOURCES): if test ! -f $@ -a ! -L $@; then \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2015-07-27 17:05:59
|
Revision: 7642 http://sourceforge.net/p/openhpi/code/7642 Author: dr_mohan Date: 2015-07-27 17:05:56 +0000 (Mon, 27 Jul 2015) Log Message: ----------- Fix for #1886 Warnings from new automake Modified Paths: -------------- openhpi/trunk/baselib/Makefile.am openhpi/trunk/clients/Makefile.am openhpi/trunk/clients/hpixml/Makefile.am openhpi/trunk/cpp/Makefile.am openhpi/trunk/cpp/t/Makefile.am openhpi/trunk/hpi_shell/Makefile.am openhpi/trunk/marshal/Makefile.am openhpi/trunk/marshal/t/Makefile.am openhpi/trunk/openhpid/Makefile.am openhpi/trunk/openhpid/t/ohpi/Makefile.am openhpi/trunk/plugins/dynamic_simulator/Makefile.am openhpi/trunk/plugins/ilo2_ribcl/Makefile.am openhpi/trunk/plugins/ipmi/Makefile.am openhpi/trunk/plugins/ipmi/t/Makefile.am openhpi/trunk/plugins/ipmidirect/Makefile.am openhpi/trunk/plugins/ipmidirect/t/Makefile.am openhpi/trunk/plugins/oa_soap/Makefile.am openhpi/trunk/plugins/rtas/Makefile.am openhpi/trunk/plugins/simulator/Makefile.am openhpi/trunk/plugins/simulator/t/Makefile.am openhpi/trunk/plugins/slave/Makefile.am openhpi/trunk/plugins/snmp_bc/Makefile.am openhpi/trunk/plugins/snmp_bc/t/Makefile.am openhpi/trunk/plugins/sysfs/Makefile.am openhpi/trunk/plugins/test_agent/Makefile.am openhpi/trunk/plugins/watchdog/Makefile.am openhpi/trunk/snmp/Makefile.am openhpi/trunk/ssl/Makefile.am openhpi/trunk/transport/Makefile.am openhpi/trunk/utils/Makefile.am openhpi/trunk/utils/t/ann/Makefile.am openhpi/trunk/utils/t/el/Makefile.am openhpi/trunk/utils/t/epath/Makefile.am openhpi/trunk/utils/t/rpt/Makefile.am openhpi/trunk/utils/t/sahpi/Makefile.am openhpi/trunk/utils/t/uid/Makefile.am Modified: openhpi/trunk/baselib/Makefile.am =================================================================== --- openhpi/trunk/baselib/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/baselib/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -19,7 +19,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"baselib\" -INCLUDES = \ +AM_CPPFLAGS += \ @OPENHPI_INCLUDES@ -I$(top_srcdir)/transport -I$(top_srcdir)/marshal @OH_SSL_INCLUDES@ EXTRA_DIST = Makefile.mingw32 version.rc Modified: openhpi/trunk/clients/Makefile.am =================================================================== --- openhpi/trunk/clients/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/clients/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -4,7 +4,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"client\" @CRYPT_FLAG@ AM_CFLAGS = @CRYPT_FLAG@ -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ SUBDIRS = hpixml DIST_SUBDIRS = hpixml Modified: openhpi/trunk/clients/hpixml/Makefile.am =================================================================== --- openhpi/trunk/clients/hpixml/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/clients/hpixml/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -4,7 +4,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"hpixml\" AM_CCASFLAGS = -DSCHEMA=\"$(srcdir)/schema.xsd\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ EXTRA_DIST = Makefile.mingw32 schema.xsd version.rc Modified: openhpi/trunk/cpp/Makefile.am =================================================================== --- openhpi/trunk/cpp/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/cpp/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -20,7 +20,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"cpp\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ includedir=$(base_includedir)/openhpi include_HEADERS = oSaHpiAlarm.hpp \ Modified: openhpi/trunk/cpp/t/Makefile.am =================================================================== --- openhpi/trunk/cpp/t/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/cpp/t/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -12,7 +12,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ -I$(top_builddir)/cpp +AM_CPPFLAGS += @OPENHPI_INCLUDES@ -I$(top_builddir)/cpp MAINTAINERCLEANFILES = Makefile.in Modified: openhpi/trunk/hpi_shell/Makefile.am =================================================================== --- openhpi/trunk/hpi_shell/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/hpi_shell/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -8,9 +8,9 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"hpi_shell\" -INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/utils +AM_CPPFLAGS += -I$(top_srcdir)/include -I$(top_srcdir)/utils -INCLUDES += -I$(top_srcdir)/openhpid \ +AM_CPPFLAGS += -I$(top_srcdir)/openhpid \ -I$(top_srcdir)/marshal \ -I$(top_srcdir)/clients \ -DCLIENT Modified: openhpi/trunk/marshal/Makefile.am =================================================================== --- openhpi/trunk/marshal/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/marshal/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -23,7 +23,7 @@ EXTRA_DIST = Makefile.mingw32 version.rc -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ # just to clear LIBS LIBS = Modified: openhpi/trunk/marshal/t/Makefile.am =================================================================== --- openhpi/trunk/marshal/t/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/marshal/t/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -23,7 +23,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = -I $(MARSHAL_SRCDIR) @OPENHPI_INCLUDES@ +AM_CPPFLAGS += -I $(MARSHAL_SRCDIR) @OPENHPI_INCLUDES@ noinst_PROGRAMS = float_format float_format_SOURCES = float_format.c Modified: openhpi/trunk/openhpid/Makefile.am =================================================================== --- openhpi/trunk/openhpid/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/openhpid/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -20,7 +20,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"openhpid\" @CRYPT_FLAG@ AM_CFLAGS = @CRYPT_FLAG@ -INCLUDES = \ +AM_CPPFLAGS += \ @OPENHPI_INCLUDES@ -I$(top_srcdir)/transport -I$(top_srcdir)/marshal @OH_SSL_INCLUDES@ SUBDIRS = t Modified: openhpi/trunk/openhpid/t/ohpi/Makefile.am =================================================================== --- openhpi/trunk/openhpid/t/ohpi/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/openhpid/t/ohpi/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -15,7 +15,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ TDEPLIB = $(top_builddir)/openhpid/libopenhpidaemon.la \ $(top_builddir)/utils/libopenhpiutils.la Modified: openhpi/trunk/plugins/dynamic_simulator/Makefile.am =================================================================== --- openhpi/trunk/plugins/dynamic_simulator/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/dynamic_simulator/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -33,7 +33,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"dynsim\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ pkglib_LTLIBRARIES = libdyn_simulator.la Modified: openhpi/trunk/plugins/ilo2_ribcl/Makefile.am =================================================================== --- openhpi/trunk/plugins/ilo2_ribcl/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/ilo2_ribcl/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -37,7 +37,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"ilo2_ribcl\" -INCLUDES = @OPENHPI_INCLUDES@ @XML2_INCLUDE@ @OH_SSL_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ @XML2_INCLUDE@ @OH_SSL_INCLUDES@ pkglib_LTLIBRARIES = libilo2_ribcl.la Modified: openhpi/trunk/plugins/ipmi/Makefile.am =================================================================== --- openhpi/trunk/plugins/ipmi/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/ipmi/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -37,7 +37,7 @@ SUBDIRS = t -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ AM_CFLAGS = @OPENIPMI_CFLAGS@ Modified: openhpi/trunk/plugins/ipmi/t/Makefile.am =================================================================== --- openhpi/trunk/plugins/ipmi/t/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/ipmi/t/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -34,7 +34,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" noinst_PROGRAMS = ipmi_thres_test -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ #noinst_PROGRAMS = set_thres Modified: openhpi/trunk/plugins/ipmidirect/Makefile.am =================================================================== --- openhpi/trunk/plugins/ipmidirect/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/ipmidirect/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -33,7 +33,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"ipmidirect\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ SUBDIRS = t DIST_SUBDIRS = t Modified: openhpi/trunk/plugins/ipmidirect/t/Makefile.am =================================================================== --- openhpi/trunk/plugins/ipmidirect/t/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/ipmidirect/t/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -41,7 +41,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ -I$(top_srcdir)/plugins/ipmidirect +AM_CPPFLAGS += @OPENHPI_INCLUDES@ -I$(top_srcdir)/plugins/ipmidirect $(CON_REMOTE_SOURCES): Modified: openhpi/trunk/plugins/oa_soap/Makefile.am =================================================================== --- openhpi/trunk/plugins/oa_soap/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/oa_soap/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -31,7 +31,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"oa_soap\" -INCLUDES = @OPENHPI_INCLUDES@ @XML2_INCLUDE@ @OH_SSL_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ @XML2_INCLUDE@ @OH_SSL_INCLUDES@ pkglib_LTLIBRARIES = liboa_soap.la Modified: openhpi/trunk/plugins/rtas/Makefile.am =================================================================== --- openhpi/trunk/plugins/rtas/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/rtas/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -17,7 +17,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"rtas\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ pkglib_LTLIBRARIES = librtas2hpi.la Modified: openhpi/trunk/plugins/simulator/Makefile.am =================================================================== --- openhpi/trunk/plugins/simulator/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/simulator/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -21,7 +21,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"sim\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ pkglib_LTLIBRARIES = libsimulator.la Modified: openhpi/trunk/plugins/simulator/t/Makefile.am =================================================================== --- openhpi/trunk/plugins/simulator/t/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/simulator/t/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -13,7 +13,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ MAINTAINERCLEANFILES = Makefile.in Modified: openhpi/trunk/plugins/slave/Makefile.am =================================================================== --- openhpi/trunk/plugins/slave/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/slave/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -17,7 +17,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"slave\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ EXTRA_DIST = Makefile.mingw32 version.rc Modified: openhpi/trunk/plugins/snmp_bc/Makefile.am =================================================================== --- openhpi/trunk/plugins/snmp_bc/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/snmp_bc/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -25,7 +25,7 @@ SUBDIRS = t -INCLUDES = @OPENHPI_INCLUDES@ -I$(top_srcdir)/snmp -I$(SNMPUTILSDIR) +AM_CPPFLAGS += @OPENHPI_INCLUDES@ -I$(top_srcdir)/snmp -I$(SNMPUTILSDIR) AM_CFLAGS = @SNMPFLAGS@ Modified: openhpi/trunk/plugins/snmp_bc/t/Makefile.am =================================================================== --- openhpi/trunk/plugins/snmp_bc/t/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/snmp_bc/t/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -44,7 +44,7 @@ SNMPUTILSDIR = $(top_srcdir)/$(SNMPDIR) -INCLUDES = \ +AM_CPPFLAGS += \ @OPENHPI_INCLUDES@ \ -I$(top_srcdir)/snmp \ -I$(top_srcdir)/include \ Modified: openhpi/trunk/plugins/sysfs/Makefile.am =================================================================== --- openhpi/trunk/plugins/sysfs/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/sysfs/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -33,7 +33,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"sysfs\" -INCLUDES = @OPENHPI_INCLUDES@ -I/usr/include/sysfs +AM_CPPFLAGS += @OPENHPI_INCLUDES@ -I/usr/include/sysfs pkglib_LTLIBRARIES = libsysfs2hpi.la Modified: openhpi/trunk/plugins/test_agent/Makefile.am =================================================================== --- openhpi/trunk/plugins/test_agent/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/test_agent/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -17,7 +17,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"test_agent\" -D__STDC_FORMAT_MACROS -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ EXTRA_DIST = Makefile.mingw32 version.rc Modified: openhpi/trunk/plugins/watchdog/Makefile.am =================================================================== --- openhpi/trunk/plugins/watchdog/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/plugins/watchdog/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -33,7 +33,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"watchdog\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ pkglib_LTLIBRARIES = libwatchdog.la Modified: openhpi/trunk/snmp/Makefile.am =================================================================== --- openhpi/trunk/snmp/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/snmp/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -12,7 +12,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"snmp\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ AM_CFLAGS = @SNMPFLAGS@ Modified: openhpi/trunk/ssl/Makefile.am =================================================================== --- openhpi/trunk/ssl/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/ssl/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -12,7 +12,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"ssl\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ lib_LTLIBRARIES = libopenhpi_ssl.la Modified: openhpi/trunk/transport/Makefile.am =================================================================== --- openhpi/trunk/transport/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/transport/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -20,7 +20,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"transport\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ # just to clear LIBS LIBS = Modified: openhpi/trunk/utils/Makefile.am =================================================================== --- openhpi/trunk/utils/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/utils/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -55,7 +55,7 @@ # FIXME:: Add when we can auto-generate files for SMP systems # MOSTLYCLEANFILES += $(GENERATED_FILES) -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ SUBDIRS = t DIST_SUBDIRS = t Modified: openhpi/trunk/utils/t/ann/Makefile.am =================================================================== --- openhpi/trunk/utils/t/ann/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/utils/t/ann/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -27,7 +27,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ $(REMOTE_SOURCES): if test ! -f $@ -a ! -L $@; then \ Modified: openhpi/trunk/utils/t/el/Makefile.am =================================================================== --- openhpi/trunk/utils/t/el/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/utils/t/el/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -30,7 +30,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ $(REMOTE_SOURCES): if test ! -f $@ -a ! -L $@; then \ Modified: openhpi/trunk/utils/t/epath/Makefile.am =================================================================== --- openhpi/trunk/utils/t/epath/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/utils/t/epath/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -46,7 +46,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ $(REMOTE_SOURCES): if test ! -f $@ -a ! -L $@; then \ Modified: openhpi/trunk/utils/t/rpt/Makefile.am =================================================================== --- openhpi/trunk/utils/t/rpt/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/utils/t/rpt/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -25,7 +25,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ EXTRA_DIST = rpt_resources.h Modified: openhpi/trunk/utils/t/sahpi/Makefile.am =================================================================== --- openhpi/trunk/utils/t/sahpi/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/utils/t/sahpi/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -24,7 +24,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ AM_CFLAGS = -std=c99 # the -std=c99 comment above is required to have unicode in the tests Modified: openhpi/trunk/utils/t/uid/Makefile.am =================================================================== --- openhpi/trunk/utils/t/uid/Makefile.am 2015-07-14 21:53:32 UTC (rev 7641) +++ openhpi/trunk/utils/t/uid/Makefile.am 2015-07-27 17:05:56 UTC (rev 7642) @@ -26,7 +26,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"t\" -INCLUDES = @OPENHPI_INCLUDES@ +AM_CPPFLAGS += @OPENHPI_INCLUDES@ $(REMOTE_SOURCES): if test ! -f $@ -a ! -L $@; then \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2015-08-03 23:15:34
|
Revision: 7648 http://sourceforge.net/p/openhpi/code/7648 Author: dr_mohan Date: 2015-08-03 23:15:32 +0000 (Mon, 03 Aug 2015) Log Message: ----------- Incrementing version on trunk after creating 3.6.x branch Modified Paths: -------------- openhpi/trunk/Makefile.mingw32.def openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py openhpi/trunk/configure.ac Modified: openhpi/trunk/Makefile.mingw32.def =================================================================== --- openhpi/trunk/Makefile.mingw32.def 2015-08-03 22:56:37 UTC (rev 7647) +++ openhpi/trunk/Makefile.mingw32.def 2015-08-03 23:15:32 UTC (rev 7648) @@ -2,9 +2,9 @@ ARCH := x86 #ARCH := amd64 -VERSION := 3.6.0 +VERSION := 3.7.0 # This is for resource compiler -BINARY_VERSION := 3,6,0,0 +BINARY_VERSION := 3,7,0,0 ############################################################################ TOOLCHAIN_PATH := /home/avpak/usr/cross/mingw32 Modified: openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs =================================================================== --- openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs 2015-08-03 22:56:37 UTC (rev 7647) +++ openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs 2015-08-03 23:15:32 UTC (rev 7648) @@ -24,6 +24,6 @@ [assembly: AssemblyTitle( "OpenHPI Base Library For .NET" )] [assembly: AssemblyDescription( "OpenHPI Base Library For .NET" )] [assembly: AssemblyProduct( "OpenHPI" )] -[assembly: AssemblyVersion( "3.6.0.0" )] +[assembly: AssemblyVersion( "3.7.0.0" )] [assembly: AssemblyCulture( "" )] Modified: openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt =================================================================== --- openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt 2015-08-03 22:56:37 UTC (rev 7647) +++ openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt 2015-08-03 23:15:32 UTC (rev 7648) @@ -3,5 +3,5 @@ Implementation-Title: OpenHPI Base Library For Java Implementation-Vendor: openhpi.org Implementation-URL: http://openhpi.org -Implementation-Version: 3.6.0 +Implementation-Version: 3.7.0 Modified: openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py =================================================================== --- openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py 2015-08-03 22:56:37 UTC (rev 7647) +++ openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py 2015-08-03 23:15:32 UTC (rev 7648) @@ -14,5 +14,5 @@ # Anton Pak <ant...@pi...> # -__version_info__ = ( 3, 6, 0 ) +__version_info__ = ( 3, 7, 0 ) Modified: openhpi/trunk/configure.ac =================================================================== --- openhpi/trunk/configure.ac 2015-08-03 22:56:37 UTC (rev 7647) +++ openhpi/trunk/configure.ac 2015-08-03 23:15:32 UTC (rev 7648) @@ -5,7 +5,7 @@ AC_PREREQ(2.57) -AC_INIT(openhpi, 3.6.0) +AC_INIT(openhpi, 3.7.0) AC_CONFIG_SRCDIR(openhpi.spec.in) AM_INIT_AUTOMAKE([1.8]) @@ -23,7 +23,7 @@ # minor version: 11 = 11 # patch version: 4 = 4 # -HPI_LIB_VERSION=9:0:6 +HPI_LIB_VERSION=10:0:7 HPI_PKG=$PACKAGE_NAME HPI_UTIL_PKG=${PACKAGE_NAME}utils HPI_CLIENT_PKG=${PACKAGE_NAME}client This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2015-09-02 22:23:12
|
Revision: 7658 http://sourceforge.net/p/openhpi/code/7658 Author: dr_mohan Date: 2015-09-02 22:23:10 +0000 (Wed, 02 Sep 2015) Log Message: ----------- Fix for #1898 make fails in libgcrypt-devel systems Modified Paths: -------------- openhpi/trunk/configure.ac openhpi/trunk/docs/man/Makefile.am Modified: openhpi/trunk/configure.ac =================================================================== --- openhpi/trunk/configure.ac 2015-08-27 00:10:03 UTC (rev 7657) +++ openhpi/trunk/configure.ac 2015-09-02 22:23:10 UTC (rev 7658) @@ -433,7 +433,6 @@ if test "x$have_gcrypt" = "xyes"; then if test "x$have_gcrypt_lib" = "xyes"; then AC_SUBST(HPICRYPT,hpicrypt) - AC_SUBST(HPICRYPT_POD,hpicrypt.1.pod) AC_SUBST(HPICRYPT_MAN,hpicrypt.1) CRYPT_FLAG="-DHAVE_ENCRYPT" AC_SUBST(CRYPT_FLAG) @@ -451,7 +450,6 @@ [if test "x$have_gcrypt" = "xyes"; then if test "x$have_gcrypt_lib" = "xyes"; then AC_SUBST(HPICRYPT,hpicrypt) - AC_SUBST(HPICRYPT_POD,hpicrypt.1.pod) AC_SUBST(HPICRYPT_MAN,hpicrypt.1) CRYPT_FLAG="-DHAVE_ENCRYPT" AC_SUBST(CRYPT_FLAG) Modified: openhpi/trunk/docs/man/Makefile.am =================================================================== --- openhpi/trunk/docs/man/Makefile.am 2015-08-27 00:10:03 UTC (rev 7657) +++ openhpi/trunk/docs/man/Makefile.am 2015-09-02 22:23:10 UTC (rev 7658) @@ -38,7 +38,7 @@ hpievents.1.pod hpionIBMblade.1.pod \ hpisensor.1.pod hpitop.1.pod \ hpidomain.1.pod hpigensimdata.1.pod \ - hpixml.1.pod $(HPICRYPT_POD) \ + hpixml.1.pod hpicrypt.1.pod \ ohhandler.1.pod ohparam.1.pod \ ohdomainlist.1.pod \ hpi_shell.1.pod This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2017-04-01 07:09:37
|
Revision: 7676 http://sourceforge.net/p/openhpi/code/7676 Author: dr_mohan Date: 2017-04-01 07:09:33 +0000 (Sat, 01 Apr 2017) Log Message: ----------- Fix for #704 Add support for HPE Synergy Frames Modified Paths: -------------- openhpi/trunk/README openhpi/trunk/configure.ac openhpi/trunk/openhpi.conf.example openhpi/trunk/openhpi.spec.in openhpi/trunk/plugins/Makefile.am openhpi/trunk/utils/sahpi_struct_utils.c Added Paths: ----------- openhpi/trunk/include/SaHpiOvRest.h openhpi/trunk/plugins/ov_rest/ openhpi/trunk/plugins/ov_rest/Makefile.am openhpi/trunk/plugins/ov_rest/OpenHPI_Synergy_DevGuide.pdf openhpi/trunk/plugins/ov_rest/debug/ openhpi/trunk/plugins/ov_rest/debug/curl_login.sh openhpi/trunk/plugins/ov_rest/ov_rest.c openhpi/trunk/plugins/ov_rest/ov_rest.h openhpi/trunk/plugins/ov_rest/ov_rest_annunciator.c openhpi/trunk/plugins/ov_rest/ov_rest_annunciator.h openhpi/trunk/plugins/ov_rest/ov_rest_callsupport.c openhpi/trunk/plugins/ov_rest/ov_rest_callsupport.h openhpi/trunk/plugins/ov_rest/ov_rest_composer_event.c openhpi/trunk/plugins/ov_rest/ov_rest_composer_event.h openhpi/trunk/plugins/ov_rest/ov_rest_control.c openhpi/trunk/plugins/ov_rest/ov_rest_control.h openhpi/trunk/plugins/ov_rest/ov_rest_dimi.c openhpi/trunk/plugins/ov_rest/ov_rest_dimi.h openhpi/trunk/plugins/ov_rest/ov_rest_discover.c openhpi/trunk/plugins/ov_rest/ov_rest_discover.h openhpi/trunk/plugins/ov_rest/ov_rest_event.c openhpi/trunk/plugins/ov_rest/ov_rest_event.h openhpi/trunk/plugins/ov_rest/ov_rest_fan_event.c openhpi/trunk/plugins/ov_rest/ov_rest_fan_event.h openhpi/trunk/plugins/ov_rest/ov_rest_fumi.c openhpi/trunk/plugins/ov_rest/ov_rest_fumi.h openhpi/trunk/plugins/ov_rest/ov_rest_hotswap.c openhpi/trunk/plugins/ov_rest/ov_rest_hotswap.h openhpi/trunk/plugins/ov_rest/ov_rest_interconnect_event.c openhpi/trunk/plugins/ov_rest/ov_rest_interconnect_event.h openhpi/trunk/plugins/ov_rest/ov_rest_inventory.c openhpi/trunk/plugins/ov_rest/ov_rest_inventory.h openhpi/trunk/plugins/ov_rest/ov_rest_load_id.c openhpi/trunk/plugins/ov_rest/ov_rest_load_id.h openhpi/trunk/plugins/ov_rest/ov_rest_parser_calls.c openhpi/trunk/plugins/ov_rest/ov_rest_parser_calls.h openhpi/trunk/plugins/ov_rest/ov_rest_power.c openhpi/trunk/plugins/ov_rest/ov_rest_power.h openhpi/trunk/plugins/ov_rest/ov_rest_ps_event.c openhpi/trunk/plugins/ov_rest/ov_rest_ps_event.h openhpi/trunk/plugins/ov_rest/ov_rest_reset.c openhpi/trunk/plugins/ov_rest/ov_rest_reset.h openhpi/trunk/plugins/ov_rest/ov_rest_resources.c openhpi/trunk/plugins/ov_rest/ov_rest_resources.h openhpi/trunk/plugins/ov_rest/ov_rest_sel.c openhpi/trunk/plugins/ov_rest/ov_rest_sel.h openhpi/trunk/plugins/ov_rest/ov_rest_sensor.c openhpi/trunk/plugins/ov_rest/ov_rest_sensor.h openhpi/trunk/plugins/ov_rest/ov_rest_server_event.c openhpi/trunk/plugins/ov_rest/ov_rest_server_event.h openhpi/trunk/plugins/ov_rest/ov_rest_utils.c openhpi/trunk/plugins/ov_rest/ov_rest_utils.h openhpi/trunk/plugins/ov_rest/ov_rest_watchdog.c openhpi/trunk/plugins/ov_rest/ov_rest_watchdog.h Modified: openhpi/trunk/README =================================================================== --- openhpi/trunk/README 2016-09-30 10:55:04 UTC (rev 7675) +++ openhpi/trunk/README 2017-04-01 07:09:33 UTC (rev 7676) @@ -15,13 +15,11 @@ * SNMP BladeCenter/RSA Plugin * iLO2 RIBCL Plugin * SOAP/XML BladeSystem c-Class Plugin +* Oneview/REST Synergy Plugin * rtas Plugin * sysfs Plugin * watchdog Plugin -NOTE: The ipmi plugin is still provided with this release, but -will not be maintained any longer. Please use ipmidirect instead. - Feedback, as always, is welcome and encouraged: ope...@li... @@ -50,6 +48,11 @@ libssl >= 0.9.7 libxml2 +ov_rest plugin + librabbitmq >= 0.8.0 + json-c-devel + libcurl-devel + ipmi plugin OpenIPMI >= 1.4.20 (http://openipmi.sf.net) @@ -148,6 +151,7 @@ snmp_bc - IBM BladeCenter/RSA plugin (uses snmp) ilo2_ribcl - HP ProLiant Rack Mount Server plug-in oa_soap - HP BladeSystem c-Class plugin +ov_rest - HPE Synergy plugin rtas - Run-Time Abstraction Services (RTAS) plug-in sysfs - Linux sysfs plugin (LM sensors and I2C devices exported in sysfs requires kernel 2.6 or >= 2.5.72) Modified: openhpi/trunk/configure.ac =================================================================== --- openhpi/trunk/configure.ac 2016-09-30 10:55:04 UTC (rev 7675) +++ openhpi/trunk/configure.ac 2017-04-01 07:09:33 UTC (rev 7676) @@ -181,6 +181,18 @@ AC_SUBST(XML2_LIB) AC_SUBST(XML2_INCLUDE) +dnl curl, json-c and rabbitmq-c are used in ov_rest plugin +AC_CHECK_LIB([curl],[curl_global_init],[CURL_LIB=-lcurl],[CURL_LIB=]) +AC_SUBST(CURL_LIB) +AC_CHECK_HEADERS([curl/curl.h],[have_curl=yes],[have_curl=no]) +AC_CHECK_LIB([json-c],[json_tokener_parse],[JSON_C_LIB=-ljson-c],[JSON_C_LIB=]) +AC_CHECK_HEADERS([json-c/json.h],[JSON_C_INCLUDE="-I/usr/include/json-c"],[JSON_C_INCLUDE]) +AC_SUBST(JSON_C_LIB) +AC_SUBST(JSON_C_INCLUDE) +AC_CHECK_LIB([rabbitmq],[amqp_new_connection],[RABBITMQ_LIB=-lrabbitmq],[RABBITMQ_LIB=]) +AC_SUBST(RABBITMQ_LIB) +AC_CHECK_HEADERS([amqp.h],[have_rabbitmq=yes],[have_rabbitmq=no]) + dnl Build daemon statically or dynamically. openhpid_static="no" @@ -426,6 +438,35 @@ fi ]) +# configure argument for the ov_rest plugin +AC_ARG_ENABLE([ov_rest], + [ --enable-ov_rest build ov_rest plugin [[default=no]]], + [if test "x$enableval" = "xyes"; then + if test "x$have_curl" = "xyes"; then + if test "x$have_rabbitmq" = "xyes"; then + if test -n "$JSON_C_INCLUDE"; then + AC_SUBST(OV_REST,ov_rest) + AC_SUBST(WITH_OV_REST,1) + else + OH_CHECK_FAIL(json-c-devel,,,Can not build ov_rest without json-c headers) + fi + else + OH_CHECK_FAIL(librabbitmq-devel,,,Can not build ov_rest without rabbitmq headers) + fi + else + OH_CHECK_FAIL(libcurl-devel,,,Can not build ov_rest without curl headers) + fi +else + AC_SUBST(WITH_OV_REST,0) +fi], + [if test "x$have_curl" = "xyes" && test "x$have_rabbitmq" && test -n "$JSON_C_INCLUDE"; then + AC_SUBST(OV_REST,ov_rest) + AC_SUBST(WITH_OV_REST,1) + else + AC_SUBST(WITH_OV_REST,0) + fi + ]) + # configure argument for enabling file encryption AC_ARG_ENABLE([encryption], [ --enable-encryption Enable File Encryption [[default=yes if libgcrypt and gcrypt.h exist]]], @@ -744,6 +785,7 @@ plugins/rtas/Makefile plugins/ilo2_ribcl/Makefile plugins/oa_soap/Makefile + plugins/ov_rest/Makefile plugins/slave/Makefile plugins/test_agent/Makefile scripts/Makefile Added: openhpi/trunk/include/SaHpiOvRest.h =================================================================== --- openhpi/trunk/include/SaHpiOvRest.h (rev 0) +++ openhpi/trunk/include/SaHpiOvRest.h 2017-04-01 07:09:33 UTC (rev 7676) @@ -0,0 +1,49 @@ +#ifndef __SAHPIOVREST_H +#define __SAHPIOVREST_H + + /* UID control */ + #define OV_REST_UID_CNTRL (SaHpiCtrlNumT) 0x000 + /* Power control */ + #define OV_REST_PWR_CNTRL (SaHpiCtrlNumT) 0x001 + + +#if 0 + +//Nandi: below are part of POWER SUB SYSTEM +// TODO : Need to check requirement, Enable required control as proceed + + /* Power Mode Control */ + #define OV_REST_PWR_MODE_CNTRL (SaHpiCtrlNumT) 0x003 + /* Dynamic Power Control */ + #define OV_REST_DYNAMIC_PWR_CNTRL (SaHpiCtrlNumT) 0x004 + /* Power Limit Mode Control */ + #define OV_REST_PWR_LIMIT_MODE_CNTRL (SaHpiCtrlNumT) 0x005 + /* Static Power Limit Control */ + #define OV_REST_STATIC_PWR_LIMIT_CNTRL (SaHpiCtrlNumT) 0x006 + /* Dynamic Power Cap Control */ + #define OV_REST_DYNAMIC_PWR_CAP_CNTRL (SaHpiCtrlNumT) 0x007 + + /* Derated Circuit Cap Control */ + #define OV_REST_DERATED_CIRCUIT_CAP_CNTRL (SaHpiCtrlNumT) 0x008 + /* Rated Circuit Cap Control */ + #define OV_REST_RATED_CIRCUIT_CAP_CNTRL (SaHpiCtrlNumT) 0x009 + + /* HP c7000 Power Modes */ + #define C7000_PWR_NON_REDUNDANT 1 + #define C7000_PWR_AC_REDUNDANT 2 + #define C7000_PWR_SUPPLY_REDUNDANT 3 + + /* HP c7000 Power Limit Modes */ + #define C7000_PWR_LIMIT_NONE 0 + #define C7000_PWR_LIMIT_STATIC 1 + #define C7000_PWR_LIMIT_DYNAMIC_CAP 2 + +#endif + +/* Operational status sensor */ +#define OV_REST_SEN_OPER_STATUS (SaHpiSensorNumT) 0x000 + +#endif //__SAHPIOVREST_H + + + Modified: openhpi/trunk/openhpi.conf.example =================================================================== --- openhpi/trunk/openhpi.conf.example 2016-09-30 10:55:04 UTC (rev 7675) +++ openhpi/trunk/openhpi.conf.example 2017-04-01 07:09:33 UTC (rev 7676) @@ -193,6 +193,15 @@ # STANDBY_OA = "hostname" # Standby OA hostname or IP address (optional) #} +## Section for ov_rest plugin for HPE Synergy +## using CURL JSON-C over https RESTfull interfaces. +#handler libov_rest { +# entity_root = "{RACK,8}" +# OV_User_Name = "user" # OV/Composer user name with admin privileges (required) +# OV_Password = "passwd" # OV/Composer password for above user (required) +# ACTIVE_OV = "hostname" # Active OV hostname or IP address (required) +#} + ## Section for sysfs plugin #handler libsysfs2hpi { # # Mandatory. Modified: openhpi/trunk/openhpi.spec.in =================================================================== --- openhpi/trunk/openhpi.spec.in 2016-09-30 10:55:04 UTC (rev 7675) +++ openhpi/trunk/openhpi.spec.in 2017-04-01 07:09:33 UTC (rev 7676) @@ -45,6 +45,7 @@ %define with_ilo2_ribcl @WITH_ILO2_RIBCL@ %define with_oa_soap @WITH_OA_SOAP@ +%define with_ov_rest @WITH_OV_REST@ %if "x@SLAVE@" == "xslave" %define with_slave 1 @@ -86,8 +87,12 @@ Requires: openssl %endif %if 0%{?with_gcrypt} +%if 0%{?suse_version} +Requires: libgcrypt20 +%else Requires: libgcrypt %endif +%endif %if %{undefined suse_version} Requires: glib2 libstdc++ %endif @@ -192,6 +197,22 @@ Requires: openhpi = %{version} libxml2 openssl %endif +%if 0%{?with_ov_rest} +%package ov_rest +Summary: OpenHPI plugin for HP One View +Group: System/Monitoring +%if 0%{?suse_version} +BuildRequires: libcurl-devel libjson-c-devel +%else +BuildRequires: libcurl-devel json-c-devel librabbitmq-devel +%endif +%if 0%{?suse_version} +Requires: openhpi = %{version} libjson-c2 libcurl-devel +%else +Requires: openhpi = %{version} json-c libcurl-devel librabbitmq-devel +%endif +%endif + %if 0%{?with_slave} %package slave Summary: OpenHPI plugin for a slave OpenHPI daemon @@ -284,6 +305,12 @@ using an XML-encoded SOAP interface. %endif +%if 0%{?with_ov_rest} +%description ov_rest +OpenHPI plug-in supporting HP One View. This plug-in connects +to OneView using curl and processing the output using json-c +%endif + %if 0%{?with_slave} %description slave OpenHPI plug-in that allows to aggregate resources from different domains @@ -438,6 +465,14 @@ %endif ################################################### +%if 0%{?with_ov_rest} +%files ov_rest +################################################### +%defattr(-,root,root) +%{_libdir}/%{name}/libov_rest.* +%endif + +################################################### %if 0%{?with_slave} %files slave ################################################### Modified: openhpi/trunk/plugins/Makefile.am =================================================================== --- openhpi/trunk/plugins/Makefile.am 2016-09-30 10:55:04 UTC (rev 7675) +++ openhpi/trunk/plugins/Makefile.am 2017-04-01 07:09:33 UTC (rev 7676) @@ -32,7 +32,7 @@ MAINTAINERCLEANFILES = Makefile.in SUBDIRS = @IPMI@ @WATCHDOG@ @SYSFS@ @SNMP_BC@ @IPMIDIRECT@ @DYNAMIC_SIMULATOR@ @SIMULATOR@ \ - @RTAS@ @ILO2_RIBCL@ @OA_SOAP@ @SLAVE@ @TEST_AGENT@ + @RTAS@ @ILO2_RIBCL@ @OA_SOAP@ @OV_REST@ @SLAVE@ @TEST_AGENT@ DIST_SUBDIRS = ipmi \ watchdog \ sysfs \ @@ -43,6 +43,7 @@ rtas \ ilo2_ribcl \ oa_soap \ + ov_rest \ slave \ test_agent Added: openhpi/trunk/plugins/ov_rest/Makefile.am =================================================================== --- openhpi/trunk/plugins/ov_rest/Makefile.am (rev 0) +++ openhpi/trunk/plugins/ov_rest/Makefile.am 2017-04-01 07:09:33 UTC (rev 7676) @@ -0,0 +1,93 @@ +# +# (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or +# without modification, are permitted provided that the following +# conditions are met: +# +# Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the distribution. +# +# Neither the name of the Hewlett Packard Enterprise, nor the names +# of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, +# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +MAINTAINERCLEANFILES = Makefile.in + +AM_CPPFLAGS = -DG_LOG_DOMAIN=\"ov_rest\" + +AM_CPPFLAGS += @OPENHPI_INCLUDES@ + +pkglib_LTLIBRARIES = libov_rest.la + + +libov_rest_la_SOURCES = ov_rest_parser_calls.c \ + ov_rest_parser_calls.h \ + ov_rest_event.c \ + ov_rest_event.h \ + ov_rest_composer_event.c \ + ov_rest_composer_event.h \ + ov_rest_server_event.c \ + ov_rest_server_event.h \ + ov_rest_interconnect_event.c \ + ov_rest_interconnect_event.h \ + ov_rest_ps_event.c \ + ov_rest_ps_event.h \ + ov_rest_fan_event.c \ + ov_rest_fan_event.h \ + ov_rest.c \ + ov_rest.h \ + ov_rest_discover.c \ + ov_rest_discover.h \ + ov_rest_inventory.h \ + ov_rest_inventory.c \ + ov_rest_sensor.c \ + ov_rest_sensor.h \ + ov_rest_callsupport.c \ + ov_rest_callsupport.h \ + ov_rest_utils.c \ + ov_rest_utils.h \ + ov_rest_power.c \ + ov_rest_power.h \ + ov_rest_reset.c \ + ov_rest_reset.h \ + ov_rest_control.c \ + ov_rest_control.h \ + ov_rest_hotswap.c \ + ov_rest_hotswap.h \ + ov_rest_resources.c \ + ov_rest_resources.h \ + ov_rest_annunciator.c \ + ov_rest_annunciator.h \ + ov_rest_watchdog.c \ + ov_rest_watchdog.h \ + ov_rest_dimi.c \ + ov_rest_dimi.h \ + ov_rest_fumi.c \ + ov_rest_fumi.h \ + ov_rest_sel.c \ + ov_rest_sel.h \ + ov_rest_load_id.c \ + ov_rest_load_id.h + + +# TODO: What about -luuid in the ilo2_ribcl? +libov_rest_la_LIBADD = @CURL_LIB@ @JSON_C_LIB@ @RABBITMQ_LIB@ \ + $(top_builddir)/utils/libopenhpiutils.la +libov_rest_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ Added: openhpi/trunk/plugins/ov_rest/OpenHPI_Synergy_DevGuide.pdf =================================================================== (Binary files differ) Index: openhpi/trunk/plugins/ov_rest/OpenHPI_Synergy_DevGuide.pdf =================================================================== --- openhpi/trunk/plugins/ov_rest/OpenHPI_Synergy_DevGuide.pdf 2016-09-30 10:55:04 UTC (rev 7675) +++ openhpi/trunk/plugins/ov_rest/OpenHPI_Synergy_DevGuide.pdf 2017-04-01 07:09:33 UTC (rev 7676) Property changes on: openhpi/trunk/plugins/ov_rest/OpenHPI_Synergy_DevGuide.pdf ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/pdf \ No newline at end of property Added: openhpi/trunk/plugins/ov_rest/debug/curl_login.sh =================================================================== --- openhpi/trunk/plugins/ov_rest/debug/curl_login.sh (rev 0) +++ openhpi/trunk/plugins/ov_rest/debug/curl_login.sh 2017-04-01 07:09:33 UTC (rev 7676) @@ -0,0 +1,148 @@ +# +# (C) Copyright 2016 Hewlett Packard Enterprise Development LP +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or +# without modification, are permitted provided that the following +# conditions are met: +# +# Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the distribution. +# +# Neither the name of the Hewlett Packard Enterprise, nor the names +# of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, +# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +#!/bin/bash +###################################################################################### +# curl_login.sh +# +# This tool just tests whether the login works at all or not. Many default values are +# set which could be over-written with command line options. A quick test if the +# openhpid will work or not +# The following are the options that could be given +# system - IP or name +# user - username +# pass - password +# xapi - xapi version +# +# Return - session ID or login failure +# +###################################################################################### + +# Initialize the default values +SYSTEM="" +XAPI=300 +USER=Administrator +PASS=pass +SID="" +VER=0 +LOG=/tmp/login_output.txt +ENC=/tmp/enclosures.txt + +# Check if the things are good to go +which curl >/dev/null 2>&1 +if [ $? -ne 0 ] +then + echo "curl command is not installed. Exiting". + exit 1 +fi + +usage() +{ + echo "$0 [-u user] [ -p password ] [-x xapi] [-v] -s system" + echo " -s system IP or name" + echo " -u user username (default: Administrator)" + echo " -p pass password (default: pass)" + echo " -x xapi X-Api-Version (default: 300)" + echo " -v Verbose (default: off)" + exit 2 +} + + +# Get the option +# set -- $(getopt s:u:p:x:v "$@") +while getopts ":s:u:p:x:v" opt +do + case $opt in + s) SYSTEM=$OPTARG; + ;; + u) USER=$OPTARG; + ;; + p) PASS=$OPTARG; + ;; + x) XAPI=$OPTARG; + ;; + v) VER=1; + ;; + \?) echo "$0: error - unrecognized option -$OPTARG" >&2 + usage + exit 1 + ;; + :) echo "Option -$OPTARG requires an argument." >&2 + usage + exit 1 + ;; + esac +done + +if [ ${SYSTEM:-none} == "none" ] +then + echo "System IP or name must be provided" + usage +fi + +rm -f $LOG $ENC + +if [ $VER -eq 1 ] +then + echo "curl -i -k -H \"Accept:application/json\" -H \"Content-Type:application/json\" \ + -H \"X-API-Version:$XAPI\" -X POST -d \ + '{\"userName\":\"$USER\",\"password\":\"$PASS\",\"authLoginDomain\":\"\"}' \ + https://${SYSTEM}/rest/login-sessions" +fi + +curl -i -k -H "Accept:application/json" -H "Content-Type:application/json" \ + -H "X-API-Version:$XAPI" -X POST \ + -d '{"userName":"'$USER'","password":"'$PASS'","authLoginDomain":""}' \ + https://${SYSTEM}/rest/login-sessions >$LOG 2>&1 +grep sessionID ${LOG} >/dev/null +if [ $? -eq 0 ] +then + SID=`cat $LOG | grep sessionID | awk -F"sessionID" ' { print $2 }' | awk -F"\"" ' { print $3 }'` + echo "Session ID is $SID" +else + echo "curl call to login failed. Error is" + cat $LOG | grep errorCode | awk -F"errorCode" ' { print $2 }' | awk -F"\"" ' { print $3 }' + exit 3 +fi + +# Check if the SID could be used to get the data +curl -k -H "Accept:application/json" -H "Content-Type:application/json" \ + -H "X-API-Version:$XAPI" -H "auth:$SID" -X GET https://${SYSTEM}/rest/enclosures > $ENC 2>&1 +NO_CHARS=`cat $ENC | wc -c` +if [ $NO_CHARS -gt 5000 ] +then + echo "Looks like the sessionID works well" +else + echo "Looks like sessionID may be wrong. Got only $NO_CHARS charactors" +fi + + + + Property changes on: openhpi/trunk/plugins/ov_rest/debug/curl_login.sh ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: openhpi/trunk/plugins/ov_rest/ov_rest.c =================================================================== --- openhpi/trunk/plugins/ov_rest/ov_rest.c (rev 0) +++ openhpi/trunk/plugins/ov_rest/ov_rest.c 2017-04-01 07:09:33 UTC (rev 7676) @@ -0,0 +1,388 @@ +/* + * (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the distribution. + * + * Neither the name of the Hewlett Packard Enterprise, nor the names + * of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * Author(s) + * Mohan Devarajulu <moh...@hp...> + * Hemantha Beecherla <hem...@hp...> + * Chandrashekhar Nandi <cha...@hp...> + * Shyamala Hirepatt <shy...@hp...> + * + * This file implements the entry point of the ov rest plug-in. This handles + * custom handler for ov rest interface for handling the any request for rest + * interface. This APIs uses rest_open and rest_close APIs from rest interface + * for initiating and closing the communication with REST interface / ov. + * + * build_ov_rest_custom_handler() - Builds the OV REST custom handler + * + * ov_rest_open() - Opens ov rest interface connection + * for initiating communication with OV. + * + * ov_rest_close() - Closes the communication with OV. + * + * ov_rest_set_resource_tag() - Handles setting the tags to resources + * + * ov_rest_set_resource_severity() - Sets the resource's severity. + * + */ + +#include "ov_rest.h" +#include "ov_rest_utils.h" +#include "sahpi_wrappers.h" + +/** + * build_ov_rest_custom_handler: + * @oh_handler: Pointer to OpenHPI handler. + * + * Purpose: + * Builds and initializes the OV REST custom handler. + * + * Detailed Description: + * - If the plugin initialization fails, then this method will be called + * more than once, until the plugin intialization succeeds. + * - In case of the data field in oh_handler is null, we are filling the + * ov_handler information + * + * Return values: + * SA_OK - on sucess. + * SA_ERR_HPI_INVALID_PARAMS - parameter(s) are NULL. + * SA_ERR_HPI_OUT_OF_MEMORY - not enough memory to allocate. + **/ +SaErrorT build_ov_rest_custom_handler(struct oh_handler_state *oh_handler) +{ + SaErrorT rv = SA_OK; + struct ov_rest_handler *ov_handler = NULL; + + if (oh_handler == NULL) { + err("Invalid parmaters"); + return SA_ERR_HPI_INVALID_PARAMS; + } + + ov_handler = (struct ov_rest_handler *) oh_handler->data; + + + /* Check whether ov_rest_handler is initialized or not. + * If the plugin initialization fails, then this method will be + * called more than once. + * + * The below if statement is to avoid multiple initialization + * of the ov_rest_handler. + */ + if (oh_handler->data == NULL) { + /* Initialize the ov_rest_handler */ + ov_handler = (struct ov_rest_handler *) + g_malloc0(sizeof(struct ov_rest_handler)); + if (ov_handler == NULL) { + err("out of memory"); + return SA_ERR_HPI_OUT_OF_MEMORY; + } + ov_handler->mutex = wrap_g_mutex_new_init(); + ov_handler->ov_mutex = wrap_g_mutex_new_init(); + ov_handler->status = PRE_DISCOVERY; + ov_handler->connection = (REST_CON *) + g_malloc0(sizeof(REST_CON)); + ov_handler->thread_handler = NULL; + oh_handler->data = ov_handler; + } + + rv = ov_rest_connection_init(oh_handler); + if(rv !=SA_OK){ + ov_handler->status = PLUGIN_NOT_INITIALIZED; + err("OV_handler connection init failed"); + return rv; + } + + ov_handler->uri_rid = g_hash_table_new(g_str_hash, g_str_equal); + + return rv; +} + +/** + * ov_rest_open: + * @handler_config: Handler data pointer. + * @handler_id: Id for the handler + * @eventq: Pointer to the infrstructure event queue. + * + * Purpose: + * This function opens OV REST plugin handler instance. + * + * Detailed Description: + * - This function will be the entry point for the ov rest plug-in. + * - We will check all configuration parameters. We won't validate the + * content of the variables. We will check whether the parameters are + * assigned or not. User can assign even the empty string into the + * configuration file. + * - Will assign handler_config, handler id and allocate memory for the + * RPT table and cache. + * - "build_ov_rest_custom_handler" will be called for initializing the + * customer handler address into framework. + * + * Return values: + * Plugin handle - on success. + * NULL - on error. + **/ +void *ov_rest_open(GHashTable *handler_config, + unsigned int handler_id, + oh_evt_queue *eventq) +{ + int rv = SA_OK; + struct oh_handler_state *handler = NULL; + + if (handler_config == NULL || handler_id == 0 || eventq == NULL) { + err("Invalid parameters"); + return NULL; + } + + /* Check whether all the parameters are provided or not */ + rv = ov_rest_check_config_parameters(handler_config); + if (rv != SA_OK) { + err("config file has some missing parameters"); + return NULL; + } + + /* Initialize the handler */ + handler = (struct oh_handler_state *) + g_malloc0(sizeof(struct oh_handler_state)); + if (handler == NULL) { + err("Out of memory"); + return NULL; + } + + handler->config = handler_config; + handler->hid = handler_id; + handler->eventq = eventq; + handler->rptcache = (RPTable *) g_malloc0(sizeof(RPTable)); + if (handler->rptcache == NULL) { + wrap_g_free(handler); + err("Out of memory"); + return NULL; + } + + rv = oh_init_rpt(handler->rptcache); + if (rv != SA_OK) { + err("Initializing rptcache failed"); + wrap_g_free(handler->rptcache); + wrap_g_free(handler); + return NULL; + } + handler->data = NULL; + + /* Build the custom handler for OV REST plugin */ + rv = build_ov_rest_custom_handler(handler); + if (rv != SA_OK) { + err("Build ov_REST custom handler failed"); + /* If the failure due to out of memory, return NULL + * Else, try to build the ov_rest_handler during discovery call + * + */ + if (rv == SA_ERR_HPI_OUT_OF_MEMORY) { + wrap_g_free(handler->rptcache); + wrap_g_free(handler); + return NULL; + } + } + return ((void *)handler); +} + +/** + * ov_rest_close: + * @oh_handler: Handler data pointer. + * + * Purpose: + * This function closes OV REST plugin handler instance. + * + * Detailed Description: + * - Releases all the memory allocated by OV REST plugin handler + * + * Return values: + * NONE + **/ +void ov_rest_close(void *oh_handler) +{ + struct oh_handler_state *handler = NULL; + struct ov_rest_handler *ov_handler = NULL; + dbg("Shutting down the ov_rest plugin"); + handler = (struct oh_handler_state *) oh_handler; + ov_handler = (struct ov_rest_handler *) handler->data; + /* Check whether ov_handler is initialized or not */ + if (ov_handler == NULL){ + return; + } + /* Set the event thread shutdown status to TRUE */ + ov_handler->shutdown_event_thread = SAHPI_TRUE; + + if(ov_handler->thread_handler != NULL){ + g_thread_join(ov_handler->thread_handler); + } + ov_rest_clean_rptable(handler); + wrap_g_free(handler->rptcache); +} + +/** + * ov_rest_set_resource_tag: + * @oh_handler: Pointer to openhpi handler. + * @resource_id: Resource Id. + * @tag: Pointer to new tag. + * + * Purpose: + * Sets resource's tag. + * + * Detailed Description: NA + * + * Return values: + * SA_OK - on success. + * SA_ERR_HPI_INVALID_PARAMS - parameter(s) are NULL @tag is invalid. + * SA_ERR_HPI_NOT_PRESENT - resource does not exist. + **/ +SaErrorT ov_rest_set_resource_tag(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiTextBufferT *tag) +{ + SaErrorT rv = SA_OK; + struct oh_handler_state *handler = NULL; + SaHpiRptEntryT *rpt = NULL; + SaHpiBoolT valid_tag = SAHPI_TRUE; + + if (tag == NULL || oh_handler == NULL) { + err("Invalid parameters tag/oh_handler"); + return SA_ERR_HPI_INVALID_PARAMS; + } + + /* Validate the tag */ + valid_tag = oh_valid_textbuffer(tag); + if (valid_tag == SAHPI_FALSE) { + err("The tag = '%s' is not in correct format", (char*)tag); + return SA_ERR_HPI_INVALID_PARAMS; + } + + handler =(struct oh_handler_state *) oh_handler; + rpt = oh_get_resource_by_id(handler->rptcache, resource_id); + if (rpt == NULL) { + err("There is no resource for resource id %d", resource_id); + return SA_ERR_HPI_NOT_PRESENT; + } + + /* Copy the tag to the resource tag */ + rv = oh_copy_textbuffer(&(rpt->ResourceTag), tag); + if (rv != SA_OK) { + err("Copying textbuffer failed"); + return rv; + } + + return SA_OK; +} + +/** + * ov_rest_set_resource_severity: + * @oh_handler: Handler data pointer. + * @id: Resource Id. + * @severity: Resource severity. + * + * Purpose: + * Sets severity of the resource. + * + * Detailed Description: NA + * + * Return values: + * SA_OK - on success. + * SA_ERR_HPI_INVALID_PARAMS - on invalid parameters. + * SA_ERR_HPI_NOT_PRESENT - resource does not exist. + **/ +SaErrorT ov_rest_set_resource_severity(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiSeverityT severity) +{ + struct oh_handler_state *handler = NULL; + SaHpiRptEntryT *rpt = NULL; + + if (oh_handler == NULL) { + err("Invalid parameter oh_handler"); + return SA_ERR_HPI_INVALID_PARAMS; + } + + /* Validate the severity */ + if (oh_lookup_severity(severity) == NULL) { + err("Invalid parameter severity"); + return SA_ERR_HPI_INVALID_PARAMS; + } + + handler = (struct oh_handler_state *) oh_handler; + rpt = oh_get_resource_by_id(handler->rptcache, resource_id); + if (rpt == NULL) { + err("Unable find resource.Invalid resource id %d",resource_id); + return SA_ERR_HPI_NOT_PRESENT; + } + + rpt->ResourceSeverity = severity; + return SA_OK; +} + +/** + * ov_rest_control_parm: + * @oh_handler: Pointer to openhpi handler. + * @resource_id: Resource Id. + * @action: Configuration action. + * + * Purpose: + * Save and restore saved configuration parameters. + * + * Detailed Description: NA + * + * Return values: + * SA_ERR_HPI_UNSUPPORTED_API - current ov_rest implementation does not + * support this API. + **/ +SaErrorT ov_rest_control_parm(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiParmActionT action) +{ + err("ov_rest control parm is not supported"); + return SA_ERR_HPI_UNSUPPORTED_API; +} + +void * oh_open (void *) + __attribute__ ((weak, alias("ov_rest_open"))); +void * oh_close (void *) + __attribute__ ((weak, alias("ov_rest_close"))); + +void * oh_set_resource_tag (void *, + SaHpiResourceIdT, + SaHpiTextBufferT *) + __attribute__ ((weak, alias("ov_rest_set_resource_tag"))); + +void * oh_set_resource_severity (void *, + SaHpiResourceIdT, + SaHpiSeverityT) + __attribute__ ((weak, alias("ov_rest_set_resource_severity"))); + +void * oh_control_parm (void *, + SaHpiResourceIdT, + SaHpiParmActionT) + __attribute__ ((weak, alias("ov_rest_control_parm"))); + Added: openhpi/trunk/plugins/ov_rest/ov_rest.h =================================================================== --- openhpi/trunk/plugins/ov_rest/ov_rest.h (rev 0) +++ openhpi/trunk/plugins/ov_rest/ov_rest.h 2017-04-01 07:09:33 UTC (rev 7676) @@ -0,0 +1,204 @@ +/* + * (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the distribution. + * + * Neither the name of the Hewlett Packard Enterprise, nor the names + * of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * Author(s) + * Mohan Devarajulu <moh...@hp...> + * Hemantha Beecherla <hem...@hp...> + * Chandrashekhar Nandi <cha...@hp...> + * Shyamala Hirepatt <shy...@hp...> + */ + +#ifndef _OV_REST_H +#define _OV_REST_H + +#include <unistd.h> + +#include <SaHpi.h> +#include <oh_handler.h> +#include <oh_error.h> + + +/* Include libraries */ +#include <stdio.h> +#include <oh_error.h> +#include <unistd.h> +#include <stdlib.h> +#include <string.h> + +/* The different enclosure types supported by OV REST + * + * If a new enclosure is added, please update the OV_REST_MAX_FAN. Add + * entries for the new enclosure in ov_rest_fz_map_arr in + * ov_rest_resources.c file. + */ +#define OV_REST_ENC_C7000 0 +#define OV_REST_ENC_C3000 1 +#define OV_REST_ENC_SYNERGY 2 +#define OV_REST_MAX_ENC 20 + + +/* Maximum Fan Zones present in different HPE Synergy enclosures */ +#define OV_REST_C7000_MAX_FZ 4 +#define OV_REST_C3000_MAX_FZ 1 + +/* Wait period for action completion */ +#define OV_MAX_POWER_POLLS 10 +#define OV_POWER_POLL_SLEEP_SECONDS 05 + +/* Enum for storing the status of the plugin */ +enum ov_rest_plugin_status { + PRE_DISCOVERY = 0, + PLUGIN_NOT_INITIALIZED = 1, + DISCOVERY_FAIL = 2, + DISCOVERY_COMPLETED = 3 +}; + +typedef enum resource_presence_status +{ + RES_ABSENT = 0, + RES_PRESENT= 1 +} resource_presence_status_t; + +/* Resource presence matrix per resource type */ +typedef struct resource_status +{ + SaHpiInt32T max_bays; + enum resource_presence_status *presence; + char **serial_number; + SaHpiResourceIdT *resource_id; +} resource_status_t; + +typedef struct composer_status +{ + char serial_number[256]; + SaHpiResourceIdT resource_id; +}resource_composer_t; + +typedef struct enclosure_status +{ + SaHpiResourceIdT enclosure_rid; + SaHpiResourceIdT power_subsystem_rid; + SaHpiResourceIdT thermal_subsystem_rid; + SaHpiResourceIdT lcd_rid; + SaHpiInt32T enc_type; + char *serial_number; + struct resource_status server; + struct resource_status interconnect; + struct resource_status ps_unit; + struct resource_status fan; + struct enclosure_status *next; +}resource_enclosure_t; + +/* Resource presence matrix for all FRUs in HPE Synergy */ +struct ov_rest_resource_status +{ + struct composer_status composer; + struct enclosure_status *enclosure; + struct resource_status RM_server; +}; + +struct ov_rest_handler +{ + struct ov_connection *connection; + enum ov_rest_plugin_status status; + struct ov_rest_resource_status ov_rest_resources; + GThread *thread_handler; + GMutex* mutex; + GMutex* ov_mutex; + struct oh_handler_state *oh_handler; + char *ov_relese_version; + SaHpiBoolT shutdown_event_thread; + SaHpiInt32T current_enclosure_count; + SaHpiInt32T max_current_enclosure_count; + SaHpiInt32T current_rms_count; + SaHpiInt32T max_current_rms_count; + GHashTable *uri_rid; + struct cert { + char fCaRoot[15]; + char fSslKey[15]; + char fSslCert[15]; + } cert_t; +}; + +/* Structure for storing the current hotswap state of the resource */ +struct ov_rest_hotswap_state { + SaHpiHsStateT currentHsState; +}; + + +/* This define is the IANA-assigned private enterprise number for + * Hewlett Packard Enterprise. A complete list of IANA numbers can be found at + * http://www.iana.org/assignments/enterprise-numbers + */ +#define HPE_MANUFACTURING_ID 47196 + +/* This define is IANA-assigned private enterprise number for Cisco Systems. + * The HPE Synergy can have interconnect blades from Cisco Systems + */ +#define CISCO_MANUFACTURING_ID 9 + +/* Checks for the shutdown request in event thread. On shutdown request, + * mutexes locked by event thread are unlocked and exits the thread. It is + * necessary to unlock the mutex, else g_free_mutex crahes on locked mutex + */ +#define OV_REST_CHEK_SHUTDOWN_REQ(ov_handler, hnd_mutex, ov_mutex, timer) \ + { \ + if (ov_handler->shutdown_event_thread == SAHPI_TRUE) { \ + dbg("Shutting down the OV REST event thread"); \ + if (ov_mutex != NULL) \ + g_mutex_unlock(ov_mutex); \ + if (hnd_mutex != NULL) \ + g_mutex_unlock(hnd_mutex); \ + if (timer != NULL) \ + g_timer_destroy(timer); \ + g_thread_exit(NULL); \ + } \ + } + +SaErrorT build_ov_rest_custom_handler(struct oh_handler_state *oh_handler); + +void *ov_rest_open(GHashTable *handler_config, + unsigned int handler_id, + oh_evt_queue *eventq); +void ov_rest_close(void *oh_handler); + +SaErrorT ov_rest_set_resource_tag(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiTextBufferT *tag); + +SaErrorT ov_rest_set_resource_severity(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiSeverityT severity); + +SaErrorT ov_rest_control_parm(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiParmActionT action); + +#endif Added: openhpi/trunk/plugins/ov_rest/ov_rest_annunciator.c =================================================================== --- openhpi/trunk/plugins/ov_rest/ov_rest_annunciator.c (rev 0) +++ openhpi/trunk/plugins/ov_rest/ov_rest_annunciator.c 2017-04-01 07:09:33 UTC (rev 7676) @@ -0,0 +1,285 @@ +/* + * (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the distribution. + * + * Neither the name of the Hewlett Packard Enterprise, nor the names + * of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * Author(s) + * Mohan Devarajulu <moh...@hp...> + * Hemantha Beecherla <hem...@hp...> + * Chandrashekhar Nandi <cha...@hp...> + * Shyamala Hirepatt <shy...@hp...> + */ + +#include "ov_rest_annunciator.h" + +/** + * ov_rest_get_next_announce: + * @oh_handler: Pointer to openhpi handler. + * @resource_id: Resource Id. + * @num: Annuciator number. + * @severity: Annuciator severity + * @unacknowledged_only: True indicates only unacknowledged announcements + * should be returned. False indicates either an + * acknowledged or unacknowledged announcement may + * be returned. + * @announcement: Pointer to hold the returned announcement. + * + * Purpose: + * Retrieve an announcement from the current set of announcements + * held in the Annunciator. + * + * Detailed Description: NA + * + * Return values: + * SA_ERR_HPI_UNSUPPORTED_API - current OV REST plugin implementation + * does not support this API. + **/ +SaErrorT ov_rest_get_next_announce(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiAnnunciatorNumT num, + SaHpiSeverityT severity, + SaHpiBoolT unacknowledged_only, + SaHpiAnnouncementT *announcement) + +{ + err("OV REST get next announce not implemented"); + return SA_ERR_HPI_UNSUPPORTED_API; +} + +/** + * ov_rest_get_announce: + * @oh_handler: Pointer to openhpi handler. + * @resource_id: Resource Id. + * @num: Annuciator number. + * @entry: Identifier of the announcement to retrieve from the + * Annunciator. + * @announcement: Pointer to hold the returned announcement. + * + * Purpose: + * Retrieve of a specific announcement from the current set of + * announcements held in the Annunciator. + * + * Detailed Description: NA + * + * Return values: + * SA_ERR_HPI_UNSUPPORTED_API - current OV REST plugin implementation + * does not support this API. + **/ +SaErrorT ov_rest_get_announce(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiAnnunciatorNumT num, + SaHpiEntryIdT entry, + SaHpiAnnouncementT *announcement) +{ + err("OV REST get announce not implemented "); + return SA_ERR_HPI_UNSUPPORTED_API; +} + +/** + * ov_rest_ack_announce: + * @oh_handler: Pointer to openhpi handler. + * @resource_id: Resource Id. + * @num: Annuciator number. + * @entry: Identifier of the announcement to retrieve from the + * Annunciator. + * @severity: Severity level of announcements to acknowledge. + * + * Purpose: + * acknowledge a single announcement or a group of announcements by + * severity. + * + * Detailed Description: NA + * + * Return values: + * SA_ERR_HPI_UNSUPPORTED_API - current OV REST plugin implementation + * does not support this API. + **/ +SaErrorT ov_rest_ack_announce(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiAnnunciatorNumT num, + SaHpiEntryIdT entry, + SaHpiSeverityT severity) +{ + err("OV REST ack announce not implemented "); + return SA_ERR_HPI_UNSUPPORTED_API; +} + +/** + * ov_rest_get_annunc_mode: + * @oh_handler: Pointer to openhpi handler. + * @resource_id: Resource Id. + * @num: Annuciator number. + * @mode: Pointer to store the current operating mode of the + * Annunciator. + * + * Purpose: + * Retrieve the current operating mode of an Annunciator. + * + * Detailed Description: NA + * + * Return values: + * SA_ERR_HPI_UNSUPPORTED_API - current OV REST plugin implementation + * does not support this API. + **/ +SaErrorT ov_rest_get_annunc_mode(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiAnnunciatorNumT num, + SaHpiAnnunciatorModeT *mode) +{ + err("OV REST get annunc mode not implemented "); + return SA_ERR_HPI_UNSUPPORTED_API; +} + +/** + * ov_rest_set_annunc_mode: + * @oh_handler: Pointer to openhpi handler. + * @resource_id: Resource Id. + * @num: Annuciator number. + * @mode: Mode set for the Annunciator. + * + * Purpose: + * Change the current operating mode of an Annunciator. + * + * Detailed Description: NA + * + * Return values: + * SA_ERR_HPI_UNSUPPORTED_API - current OV REST plugin implementation + * does not support this API. + **/ +SaErrorT ov_rest_set_annunc_mode(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiAnnunciatorNumT num, + SaHpiAnnunciatorModeT mode) +{ + err("OV REST set annunc mode not implemented "); + return SA_ERR_HPI_UNSUPPORTED_API; +} + +/** + * ov_rest_del_announce: + * @oh_handler: Pointer to openhpi handler. + * @resource_id: Resource Id. + * @num: Annuciator number. + * @entry: Entry identifier of the announcement to delete + * @severity: Severity level of announcements to delete. + * + * Purpose: + * Delete a single announcement or a group of announcements from the + * current set of an Annunciator + * + * Detailed Description: NA + * + * Return values: + * SA_ERR_HPI_UNSUPPORTED_API - current OV REST plugin implementation + * does not support this API. + **/ +SaErrorT ov_rest_del_announce(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiAnnunciatorNumT num, + SaHpiEntryIdT entry, + SaHpiSeverityT severity) +{ + err("OV REST del announce not implemented "); + return SA_ERR_HPI_UNSUPPORTED_API; +} + +/** + * ov_rest_add_announce: + * @oh_handler: Pointer to openhpi handler. + * @resource_id: Resource Id. + * @num: Annuciator number. + * @annoucement: Pointer to structure that contains the new announcement + * to add to the set. + * + * Purpose: + * add an announcement to the set of items held by an Annunciator + * management instrument. + * + * Detailed Description: NA + * + * Return values: + * SA_ERR_HPI_UNSUPPORTED_API - current OV REST plugin implementation + * does not support this API. + **/ +SaErrorT ov_rest_add_announce(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiAnnunciatorNumT num, + SaHpiAnnouncementT *announcement) +{ + err("OV REST add announce not implemented "); + return SA_ERR_HPI_UNSUPPORTED_API; +} + + +void * oh_get_next_announce (void *, + SaHpiResourceIdT, + SaHpiAnnunciatorNumT, + SaHpiSeverityT, + SaHpiBoolT, + SaHpiAnnouncementT) + __attribute__ ((weak, alias("ov_rest_get_next_announce"))); + +void * oh_get_announce (void *, + SaHpiResourceIdT, + SaHpiAnnunciatorNumT, + SaHpiEntryIdT, + SaHpiAnnouncementT *) + __attribute__ ((weak, alias("ov_rest_get_announce"))); + +void * oh_ack_announce (void *, + SaHpiResourceIdT, + SaHpiAnnunciatorNumT, + SaHpiEntryIdT, + SaHpiSeverityT) + __attribute__ ((weak, alias("ov_rest_ack_announce"))); + + +void * oh_add_announce (void *, + SaHpiResourceIdT, + SaHpiAnnunciatorNumT, + SaHpiAnnouncementT *) + __attribute__ ((weak, alias("ov_rest_add_announce"))); + +void * oh_del_announce (void *, + SaHpiResourceIdT, + SaHpiAnnunciatorNumT, + SaHpiEntryIdT, + SaHpiSeverityT) + __attribute__ ((weak, alias("ov_rest_del_announce"))); + +void * oh_get_annunc_mode (void *, + SaHpiResourceIdT, + SaHpiAnnunciatorNumT, + SaHpiAnnunciatorModeT *) + __attribute__ ((weak, alias("ov_rest_get_annunc_mode"))); + +void * oh_set_annunc_mode (void *, + SaHpiResourceIdT, + SaHpiAnnunciatorNumT, + SaHpiAnnunciatorModeT) + __attribute__ ((weak, alias("ov_rest_set_annunc_mode"))); Added: openhpi/trunk/plugins/ov_rest/ov_rest_annunciator.h =================================================================== --- openhpi/trunk/plugins/ov_rest/ov_rest_annunciator.h (rev 0) +++ openhpi/trunk/plugins/ov_rest/ov_rest_annunciator.h 2017-04-01 07:09:33 UTC (rev 7676) @@ -0,0 +1,84 @@ +/* + * (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the distribution. + * + * Neither the name of the Hewlett Packard Enterprise, nor the names + * of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * Author(s) + * Mohan Devarajulu <moh...@hp...> + * Hemantha Beecherla <hem...@hp...> + * Chandrashekhar Nandi <cha...@hp...> + * Shyamala Hirepatt <shy...@hp...> + */ + +#ifndef _OV_REST_ANNUNCIATOR_H +#define _OV_REST_ANNUNCIATOR_H + +/* Include files */ +#include <SaHpi.h> +#include <oh_error.h> + +SaErrorT ov_rest_get_next_announce(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiAnnunciatorNumT num, + SaHpiSeverityT severity, + SaHpiBoolT unacknowledged_only, + SaHpiAnnouncementT *announcement); + +SaErrorT ov_rest_get_announce(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiAnnunciatorNumT num, + SaHpiEntryIdT entry, + SaHpiAnnouncementT *announcement); + +SaErrorT ov_rest_ack_announce(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiAnnunciatorNumT num, + SaHpiEntryIdT entry, + SaHpiSeverityT severity); + +SaErrorT ov_rest_get_annunc_mode(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiAnnunciatorNumT num, + SaHpiAnnunciatorModeT *mode); + +SaErrorT ov_rest_set_annunc_mode(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiAnnunciatorNumT num, + SaHpiAnnunciatorModeT mode); + +SaErrorT ov_rest_del_announce(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiAnnunciatorNumT num, + SaHpiEntryIdT entry, + SaHpiSeverityT severity); + +SaErrorT ov_rest_add_announce(void *oh_handler, + SaHpiResourceIdT resource_id, + SaHpiAnnunciatorNumT num, + SaHpiAnnouncementT *announcement); +#endif /* _OV_REST_ANNUNCIATOR_H */ Added: openhpi/trunk/plugins/ov_rest/ov_rest_callsupport.c =================================================================== --- openhpi/trunk/plugins/ov_rest/ov_rest_callsupport.c (rev 0) +++ openhpi/trunk/plugins/ov_rest/ov_rest_callsupport.c 2017-04-01 07:09:33 UTC (rev 7676) @@ -0,0 +1,671 @@ +/* + * (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * Redistributions of source code must retain the above co... [truncated message content] |
From: <hem...@us...> - 2017-05-27 02:01:03
|
Revision: 7706 http://sourceforge.net/p/openhpi/code/7706 Author: hemanthreddy Date: 2017-05-27 02:01:00 +0000 (Sat, 27 May 2017) Log Message: ----------- Incrementing version to 3.6.1 Modified Paths: -------------- openhpi/trunk/Makefile.mingw32.def openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py openhpi/trunk/configure.ac Modified: openhpi/trunk/Makefile.mingw32.def =================================================================== --- openhpi/trunk/Makefile.mingw32.def 2017-05-27 01:00:34 UTC (rev 7705) +++ openhpi/trunk/Makefile.mingw32.def 2017-05-27 02:01:00 UTC (rev 7706) @@ -2,9 +2,9 @@ ARCH := x86 #ARCH := amd64 -VERSION := 3.7.0 +VERSION := 3.8.0 # This is for resource compiler -BINARY_VERSION := 3,7,0,0 +BINARY_VERSION := 3,8,0,0 ############################################################################ TOOLCHAIN_PATH := /home/avpak/usr/cross/mingw32 Modified: openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs =================================================================== --- openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs 2017-05-27 01:00:34 UTC (rev 7705) +++ openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs 2017-05-27 02:01:00 UTC (rev 7706) @@ -24,6 +24,6 @@ [assembly: AssemblyTitle( "OpenHPI Base Library For .NET" )] [assembly: AssemblyDescription( "OpenHPI Base Library For .NET" )] [assembly: AssemblyProduct( "OpenHPI" )] -[assembly: AssemblyVersion( "3.7.0.0" )] +[assembly: AssemblyVersion( "3.8.0.0" )] [assembly: AssemblyCulture( "" )] Modified: openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt =================================================================== --- openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt 2017-05-27 01:00:34 UTC (rev 7705) +++ openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt 2017-05-27 02:01:00 UTC (rev 7706) @@ -3,5 +3,5 @@ Implementation-Title: OpenHPI Base Library For Java Implementation-Vendor: openhpi.org Implementation-URL: http://openhpi.org -Implementation-Version: 3.7.0 +Implementation-Version: 3.8.0 Modified: openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py =================================================================== --- openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py 2017-05-27 01:00:34 UTC (rev 7705) +++ openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py 2017-05-27 02:01:00 UTC (rev 7706) @@ -14,5 +14,5 @@ # Anton Pak <ant...@pi...> # -__version_info__ = ( 3, 7, 0 ) +__version_info__ = ( 3, 8, 0 ) Modified: openhpi/trunk/configure.ac =================================================================== --- openhpi/trunk/configure.ac 2017-05-27 01:00:34 UTC (rev 7705) +++ openhpi/trunk/configure.ac 2017-05-27 02:01:00 UTC (rev 7706) @@ -5,7 +5,7 @@ AC_PREREQ(2.57) -AC_INIT(openhpi, 3.7.0) +AC_INIT(openhpi, 3.8.0) AC_CONFIG_SRCDIR(openhpi.spec.in) AM_INIT_AUTOMAKE([1.8]) @@ -23,7 +23,7 @@ # minor version: 11 = 11 # patch version: 4 = 4 # -HPI_LIB_VERSION=10:0:7 +HPI_LIB_VERSION=11:0:8 HPI_PKG=$PACKAGE_NAME HPI_UTIL_PKG=${PACKAGE_NAME}utils HPI_CLIENT_PKG=${PACKAGE_NAME}client This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2017-05-27 02:17:14
|
Revision: 7707 http://sourceforge.net/p/openhpi/code/7707 Author: dr_mohan Date: 2017-05-27 02:17:12 +0000 (Sat, 27 May 2017) Log Message: ----------- Merging changes from 3.7.x branch Modified Paths: -------------- openhpi/trunk/ChangeLog openhpi/trunk/plugins/ov_rest/Makefile.am Modified: openhpi/trunk/ChangeLog =================================================================== --- openhpi/trunk/ChangeLog 2017-05-27 02:01:00 UTC (rev 7706) +++ openhpi/trunk/ChangeLog 2017-05-27 02:17:12 UTC (rev 7707) @@ -1,3 +1,94 @@ +Changelog for 3.7.0 (05/26/2017) + + New Features + + HPE Synergy plugin + + 704 - Add support for HPE Synergy Frames + + Fixed Bugs + + Blade Center Plugin + + 1902 - disable MD5 in net-snmp will trigger a compile error in openhpi + + HP c-Class Plugin + + 1913 - Replace printf calls + + 1912 - Array bound exceeded by one + + 1903 - Function comment section of oa_soap_close() is misleading + + HPE Synergy plugin + + 1958 - Add Synergy Developer Guide to Makefile + + 1957 - Interconnects in the multiple enclosure ring not discovered properly. + + 1954 - Memory Leaks in few corner cases + + 1952 - Unwanted rediscoveries during AMQP_STATUS_SSL_ERROR from SCMB + + 1944 - Memory leak in ov_rest plugin when running hpitree -a from r7686 onwards + + 1940 - Operational status sensor RDR is missing for Synergy Composer + + 1939 - Rediscovery may have memory leaks + + 1936 - Core dump at array_list_get_idx. + + 1935 - Getting server sensor info fails or takes long time + + 1933 - Daemon takes a long time to terminate after signal + + 1932 - Locked/Active alerts in syslog could be removed + + 1931 - Composer with many enclosures fails + + 1930 - Clean up json objects with json_object_put + + 1929 - Compile warnings in json-c + + 1928 - amqp_empty_table error in suse12 + + 1927 - core dumps getting Cert and process events + + 1926 - Tasks / Alerts not registered + + 1925 - Manufacturer field is not showing up in interconnect + + 1924 - ov_rest plugin build fails on SLES12 + + 1923 - Fix all the issue in below core dumps. + + 1922 - openhpi.conf.ov_rest_wrong_passwd + + 1921 - Initial status needs to be update after discovery + + HPI Shell + + 1900 - hpi_shell fails attempting to unlock not locked mutex + + HPI Utils + + 1915 - wrap_g_free does not set pointer to NULL. + + 1914 - uid_map creation fails if directory is missing + + IPMI Direct plugin + + 1911 - ipmidirect: Check correct variable for resource managed capability + + OpenHPI Daemon + + 1916 - umask(0) makes created files world readable/writeable + + Sysfs plugin + + 1907 - Fix double free in sysfs + + Changelog for 3.6.1 (09/14/2015) New Features Modified: openhpi/trunk/plugins/ov_rest/Makefile.am =================================================================== --- openhpi/trunk/plugins/ov_rest/Makefile.am 2017-05-27 02:01:00 UTC (rev 7706) +++ openhpi/trunk/plugins/ov_rest/Makefile.am 2017-05-27 02:17:12 UTC (rev 7707) @@ -36,6 +36,8 @@ pkglib_LTLIBRARIES = libov_rest.la +EXTRA_DIST = \ + OpenHPI_Synergy_DevGuide.pdf libov_rest_la_SOURCES = ov_rest_parser_calls.c \ ov_rest_parser_calls.h \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <shy...@us...> - 2017-09-15 10:25:45
|
Revision: 7717 http://sourceforge.net/p/openhpi/code/7717 Author: shyamalah Date: 2017-09-15 10:25:42 +0000 (Fri, 15 Sep 2017) Log Message: ----------- Fixed the bug #1960 openhpid process is consuming more than 10G. Modified Paths: -------------- openhpi/trunk/plugins/oa_soap/oa_soap_calls.c openhpi/trunk/plugins/oa_soap/oa_soap_calls.h openhpi/trunk/plugins/oa_soap/oa_soap_discover.c openhpi/trunk/plugins/oa_soap/oa_soap_discover.h openhpi/trunk/plugins/oa_soap/oa_soap_interconnect_event.c openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.c openhpi/trunk/ssl/oh_ssl.c Modified: openhpi/trunk/plugins/oa_soap/oa_soap_calls.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_calls.c 2017-07-25 21:28:59 UTC (rev 7716) +++ openhpi/trunk/plugins/oa_soap/oa_soap_calls.c 2017-09-15 10:25:42 UTC (rev 7717) @@ -2244,7 +2244,7 @@ int soap_getPowerSupplyInfoArray(SOAP_CON *con, const struct getPowerSupplyInfoArray *request, struct getPowerSupplyInfoArrayResponse *response, - xmlDocPtr ps_info_doc) + xmlDocPtr *ps_info_doc) { SOAP_PARM_CHECK char bay_array[(sizeof(BAY) + 1) * request->bayArray.size]; @@ -2255,14 +2255,14 @@ SOAP_ARRAY_REQ if (!(ret = soap_request(con, GET_POWER_SUPPLY_INFO_ARRAY, bay_array))){ - if( ps_info_doc != NULL) { + if( *ps_info_doc != NULL) { dbg("ps_info_doc is NOT NULL, Please check"); - xmlFreeDoc( ps_info_doc); + xmlFreeDoc(*ps_info_doc); } - ps_info_doc = xmlCopyDoc (con->doc,1); - if( ps_info_doc == NULL) + *ps_info_doc = xmlCopyDoc (con->doc,1); + if( *ps_info_doc == NULL) return(-1); - tmp = soap_walk_doc(ps_info_doc, + tmp = soap_walk_doc(*ps_info_doc, "Body:""getPowerSupplyInfoArrayResponse:"); response->powerSupplyInfoArray = soap_walk_tree(tmp, "powerSupplyInfoArray:powerSupplyInfo"); @@ -2273,7 +2273,7 @@ int soap_getPowerSupplyStatusArray(SOAP_CON *con, const struct getPowerSupplyStsArray *request, struct getPowerSupplyStsArrayResponse *response, - xmlDocPtr ps_sts_doc) + xmlDocPtr *ps_sts_doc) { SOAP_PARM_CHECK char bay_array[(sizeof(BAY) + 1) * request->bayArray.size]; @@ -2284,14 +2284,14 @@ SOAP_ARRAY_REQ if (!(ret = soap_request(con, GET_POWER_SUPPLY_STATUS_ARRAY, bay_array))){ - if( ps_sts_doc != NULL) { + if( *ps_sts_doc != NULL) { dbg("ps_sts_doc is NOT NULL, Please check"); - xmlFreeDoc(ps_sts_doc); + xmlFreeDoc(*ps_sts_doc); } - ps_sts_doc = xmlCopyDoc (con->doc,1); - if( ps_sts_doc == NULL) + *ps_sts_doc = xmlCopyDoc (con->doc,1); + if( *ps_sts_doc == NULL) return(-1); - tmp = soap_walk_doc(ps_sts_doc, + tmp = soap_walk_doc(*ps_sts_doc, "Body:""getPowerSupplyStatusArrayResponse:"); response->powerSupplyStsArray = soap_walk_tree(tmp, "powerSupplyStatusArray:powerSupplyStatus"); @@ -2302,7 +2302,7 @@ int soap_getFanInfoArray(SOAP_CON *con, const struct getFanInfoArray *request, struct getFanInfoArrayResponse *response, - xmlDocPtr fan_info_doc) + xmlDocPtr *fan_info_doc) { SOAP_PARM_CHECK char bay_array[(sizeof(BAY) + 1) * request->bayArray.size]; @@ -2313,14 +2313,14 @@ SOAP_ARRAY_REQ if (! (ret = soap_request(con, GET_FAN_INFO_ARRAY, bay_array))) { - if( fan_info_doc != NULL) { + if( *fan_info_doc != NULL) { dbg("fan_info_doc is NOT NULL, Please check"); - xmlFreeDoc(fan_info_doc); + xmlFreeDoc(*fan_info_doc); } - fan_info_doc = xmlCopyDoc (con->doc,1); - if( fan_info_doc == NULL) + *fan_info_doc = xmlCopyDoc (con->doc,1); + if( *fan_info_doc == NULL) return(-1); - tmp = soap_walk_doc(fan_info_doc, + tmp = soap_walk_doc(*fan_info_doc, "Body:""getFanInfoArrayResponse"); response->fanInfoArray = soap_walk_tree(tmp, "fanInfoArray:fanInfo"); @@ -2331,7 +2331,7 @@ int soap_getBladeInfoArray(SOAP_CON *con, const struct getBladeInfoArray *request, struct getBladeInfoArrayResponse *response, - xmlDocPtr bl_info_doc) + xmlDocPtr *bl_info_doc) { SOAP_PARM_CHECK char bay_array[(sizeof(BAY) + 1) * request->bayArray.size]; @@ -2342,14 +2342,14 @@ SOAP_ARRAY_REQ if (! (ret = soap_request(con, GET_BLADE_INFO_ARRAY, bay_array))) { - if( bl_info_doc != NULL) { + if( *bl_info_doc != NULL) { dbg("bl_info_doc is NOT NULL, Please check"); - xmlFreeDoc(bl_info_doc); + xmlFreeDoc(*bl_info_doc); } - bl_info_doc = xmlCopyDoc (con->doc,1); - if( bl_info_doc == NULL) + *bl_info_doc = xmlCopyDoc (con->doc,1); + if( *bl_info_doc == NULL) return(-1); - tmp = soap_walk_doc(bl_info_doc, + tmp = soap_walk_doc(*bl_info_doc, "Body:""getBladeInfoArrayResponse"); response->bladeInfoArray = soap_walk_tree(tmp, "bladeInfoArray:bladeInfo"); @@ -2360,7 +2360,7 @@ int soap_getBladeStatusArray(SOAP_CON *con, const struct getBladeStsArray *request, struct getBladeStsArrayResponse *response, - xmlDocPtr bl_sts_doc) + xmlDocPtr *bl_sts_doc) { SOAP_PARM_CHECK char bay_array[(sizeof(BAY) + 1) * request->bayArray.size]; @@ -2371,14 +2371,14 @@ SOAP_ARRAY_REQ if (! (ret = soap_request(con, GET_BLADE_STATUS_ARRAY, bay_array))) { - if( bl_sts_doc != NULL) { + if( *bl_sts_doc != NULL) { dbg("bl_sts_doc is NOT NULL, Please check"); - xmlFreeDoc(bl_sts_doc); + xmlFreeDoc(*bl_sts_doc); } - bl_sts_doc = xmlCopyDoc(con->doc,1); - if( bl_sts_doc == NULL) + *bl_sts_doc = xmlCopyDoc(con->doc,1); + if( *bl_sts_doc == NULL) return (-1); - tmp = soap_walk_doc(bl_sts_doc, + tmp = soap_walk_doc(*bl_sts_doc, "Body:""getBladeStatusArrayResponse"); response->bladeStsArray = soap_walk_tree(tmp, @@ -2390,7 +2390,7 @@ int soap_getBladePortMapArray(SOAP_CON *con, const struct getBladePortMapArray *request, struct getBladePortMapArrayResponse *response, - xmlDocPtr bl_pm_doc) + xmlDocPtr *bl_pm_doc) { SOAP_PARM_CHECK char bay_array[(sizeof(BAY) + 1) * request->bayArray.size]; @@ -2401,14 +2401,14 @@ SOAP_ARRAY_REQ if (! (ret = soap_request(con, GET_BLADE_PORTMAP_ARRAY, bay_array))) { - if( bl_pm_doc != NULL) { + if( *bl_pm_doc != NULL) { dbg("bl_pm_doc is NOT NULL, Please check"); - xmlFreeDoc(bl_pm_doc); + xmlFreeDoc(*bl_pm_doc); } - bl_pm_doc = xmlCopyDoc(con->doc,1); - if( bl_pm_doc == NULL) + *bl_pm_doc = xmlCopyDoc(con->doc,1); + if( *bl_pm_doc == NULL) return (-1); - tmp = soap_walk_doc(bl_pm_doc, + tmp = soap_walk_doc(*bl_pm_doc, "Body:""getBladePortMapArrayResponse"); response->portMapArray = soap_walk_tree(tmp, @@ -2419,7 +2419,7 @@ int soap_getInterconnectTrayInfoArray(SOAP_CON *con, const struct getInterconnectTrayInfoArray *request, struct interconnectTrayInfoArrayResponse *response, - xmlDocPtr intr_info_doc) + xmlDocPtr *intr_info_doc) { SOAP_PARM_CHECK char bay_array[(sizeof(BAY) + 1) * request->bayArray.size]; @@ -2431,14 +2431,14 @@ if (! (ret = soap_request(con, GET_INTERCONNECT_TRAY_INFO_ARRAY, bay_array))) { - if( intr_info_doc != NULL) { + if( *intr_info_doc != NULL) { dbg("intr_info_doc is NOT NULL, Please check"); - xmlFreeDoc(intr_info_doc); + xmlFreeDoc(*intr_info_doc); } - intr_info_doc = xmlCopyDoc( con->doc,1); - if( intr_info_doc ==NULL) + *intr_info_doc = xmlCopyDoc( con->doc,1); + if( *intr_info_doc ==NULL) return(-1); - tmp = soap_walk_doc(intr_info_doc, + tmp = soap_walk_doc(*intr_info_doc, "Body:" "getInterconnectTrayInfoArrayResponse"); response->interconnectTrayInfoArray = @@ -2451,7 +2451,7 @@ int soap_getInterconnectTrayStatusArray(SOAP_CON *con, const struct interconnectTrayStsArray *request, struct interconnectTrayStsArrayResponse *response, - xmlDocPtr intr_sts_doc) + xmlDocPtr *intr_sts_doc) { SOAP_PARM_CHECK char bay_array[(sizeof(BAY) + 1) * request->bayArray.size]; @@ -2463,14 +2463,14 @@ if (! (ret = soap_request(con,GET_INTERCONNECT_TRAY_STATUS_ARRAY, bay_array))) { - if( intr_sts_doc != NULL) { + if( *intr_sts_doc != NULL) { dbg("intr_sts_doc is NOT NULL, Please check"); - xmlFreeDoc(intr_sts_doc); + xmlFreeDoc(*intr_sts_doc); } - intr_sts_doc = xmlCopyDoc(con->doc,1); - if( intr_sts_doc == NULL) + *intr_sts_doc = xmlCopyDoc(con->doc,1); + if( *intr_sts_doc == NULL) return( -1); - tmp = soap_walk_doc( intr_sts_doc, + tmp = soap_walk_doc( *intr_sts_doc, "Body:" "getInterconnectTrayStatusArrayResponse"); response->interconnectTrayStsArray = soap_walk_tree(tmp, @@ -2482,7 +2482,7 @@ int soap_getInterconnectTrayPortMapArray(SOAP_CON *con, const struct interconnectTrayPmArray *request, struct interconnectTrayPmArrayResponse *response, - xmlDocPtr intr_pm_doc) + xmlDocPtr *intr_pm_doc) { SOAP_PARM_CHECK char bay_array[(sizeof(BAY) + 1) * request->bayArray.size]; @@ -2494,14 +2494,14 @@ if (! (ret = soap_request(con,GET_INTERCONNECT_TRAY_PORTMAP_ARRAY, bay_array))) { - if( intr_pm_doc != NULL) { + if( *intr_pm_doc != NULL) { dbg("intr_pm_doc is NOT NULL, Please check"); - xmlFreeDoc(intr_pm_doc); + xmlFreeDoc(*intr_pm_doc); } - intr_pm_doc = xmlCopyDoc(con->doc,1); - if( intr_pm_doc == NULL) + *intr_pm_doc = xmlCopyDoc(con->doc,1); + if( *intr_pm_doc == NULL) return( -1); - tmp = soap_walk_doc( intr_pm_doc, + tmp = soap_walk_doc( *intr_pm_doc, "Body:" "getInterconnectTrayPortMapArrayResponse"); response->interconnectTrayPmArray = soap_walk_tree(tmp, @@ -2513,7 +2513,7 @@ int soap_getOaInfoArray(SOAP_CON *con, const struct getOaInfoArray *request, struct getOaInfoArrayResponse *response, - xmlDocPtr oa_info_doc) + xmlDocPtr *oa_info_doc) { SOAP_PARM_CHECK char bay_array[(sizeof(BAY) + 1) * request->bayArray.size]; @@ -2524,14 +2524,14 @@ SOAP_ARRAY_REQ if (! (ret = soap_request(con, GET_OA_INFO_ARRAY, bay_array))) { - if( oa_info_doc != NULL) { + if( *oa_info_doc != NULL) { dbg("oa_info_doc is NOT NULL, Please check"); - xmlFreeDoc(oa_info_doc); + xmlFreeDoc(*oa_info_doc); } - oa_info_doc = xmlCopyDoc(con->doc,1); - if( oa_info_doc == NULL) + *oa_info_doc = xmlCopyDoc(con->doc,1); + if( *oa_info_doc == NULL) return (-1); - tmp = soap_walk_doc(oa_info_doc, + tmp = soap_walk_doc(*oa_info_doc, "Body:""getOaInfoArrayResponse"); response->oaInfoArray = soap_walk_tree(tmp, "oaInfoArray:oaInfo"); @@ -2542,7 +2542,7 @@ int soap_getOaStatusArray(SOAP_CON *con, const struct getOaStatusArray *request, struct getOaStatusArrayResponse *response, - xmlDocPtr oa_sts_doc) + xmlDocPtr *oa_sts_doc) { SOAP_PARM_CHECK char bay_array[(sizeof(BAY) + 1) * request->bayArray.size]; @@ -2553,14 +2553,14 @@ SOAP_ARRAY_REQ if (! (ret = soap_request(con, GET_OA_STATUS_ARRAY, bay_array))) { - if( oa_sts_doc != NULL) { + if( *oa_sts_doc != NULL) { dbg("oa_sts_doc is NOT NULL, Please check"); - xmlFreeDoc(oa_sts_doc); + xmlFreeDoc(*oa_sts_doc); } - oa_sts_doc = xmlCopyDoc(con->doc,1); - if( oa_sts_doc == NULL) + *oa_sts_doc = xmlCopyDoc(con->doc,1); + if( *oa_sts_doc == NULL) return (-1); - tmp = soap_walk_doc(oa_sts_doc, + tmp = soap_walk_doc(*oa_sts_doc, "Body:""getOaStatusArrayResponse"); response->oaStatusArray = soap_walk_tree(tmp, Modified: openhpi/trunk/plugins/oa_soap/oa_soap_calls.h =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_calls.h 2017-07-25 21:28:59 UTC (rev 7716) +++ openhpi/trunk/plugins/oa_soap/oa_soap_calls.h 2017-09-15 10:25:42 UTC (rev 7717) @@ -2414,57 +2414,57 @@ int soap_getPowerSupplyInfoArray(SOAP_CON *con, const struct getPowerSupplyInfoArray *request, struct getPowerSupplyInfoArrayResponse *response, - xmlDocPtr ps_info_doc); + xmlDocPtr *ps_info_doc); int soap_getPowerSupplyStatusArray(SOAP_CON *con, const struct getPowerSupplyStsArray *request, struct getPowerSupplyStsArrayResponse *response, - xmlDocPtr ps_sts_doc); + xmlDocPtr *ps_sts_doc); int soap_getFanInfoArray(SOAP_CON *con, const struct getFanInfoArray *request, struct getFanInfoArrayResponse *response, - xmlDocPtr fan_info_doc); + xmlDocPtr *fan_info_doc); int soap_getBladeInfoArray(SOAP_CON *con, const struct getBladeInfoArray *request, struct getBladeInfoArrayResponse *response, - xmlDocPtr bl_info_doc); + xmlDocPtr *bl_info_doc); int soap_getBladeStatusArray(SOAP_CON *con, const struct getBladeStsArray *request, struct getBladeStsArrayResponse *response, - xmlDocPtr bl_sts_doc); + xmlDocPtr *bl_sts_doc); int soap_getBladePortMapArray(SOAP_CON *con, const struct getBladePortMapArray *request, struct getBladePortMapArrayResponse *response, - xmlDocPtr bl_pm_doc); + xmlDocPtr *bl_pm_doc); int soap_getInterconnectTrayInfoArray(SOAP_CON *con, const struct getInterconnectTrayInfoArray *request, struct interconnectTrayInfoArrayResponse *response, - xmlDocPtr intr_info_doc); + xmlDocPtr *intr_info_doc); int soap_getInterconnectTrayStatusArray(SOAP_CON *con, const struct interconnectTrayStsArray *request, struct interconnectTrayStsArrayResponse *response, - xmlDocPtr intr_sts_doc); + xmlDocPtr *intr_sts_doc); int soap_getInterconnectTrayPortMapArray(SOAP_CON *con, const struct interconnectTrayPmArray *request, struct interconnectTrayPmArrayResponse *response, - xmlDocPtr intr_pm_doc); + xmlDocPtr *intr_pm_doc); int soap_getOaInfoArray(SOAP_CON *con, const struct getOaInfoArray *request, struct getOaInfoArrayResponse *response, - xmlDocPtr oa_info_doc); + xmlDocPtr *oa_info_doc); int soap_getOaStatusArray(SOAP_CON *con, const struct getOaStatusArray *request, struct getOaStatusArrayResponse *response, - xmlDocPtr oa_sts_doc); + xmlDocPtr *oa_sts_doc); /* Function prototypes for OA SOAP helper functions */ void soap_getExtraData(xmlNode *extraData, struct extraDataInfo *result); Modified: openhpi/trunk/plugins/oa_soap/oa_soap_discover.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_discover.c 2017-07-25 21:28:59 UTC (rev 7716) +++ openhpi/trunk/plugins/oa_soap/oa_soap_discover.c 2017-09-15 10:25:42 UTC (rev 7717) @@ -384,6 +384,17 @@ * resource information. */ cleanup_plugin_rptable(handler); + + /* Cleanup the connection structure */ + if (oa_handler->oa_1->hpi_con != NULL) + soap_close(oa_handler->oa_1->hpi_con); + if (oa_handler->oa_1->event_con != NULL) + soap_close(oa_handler->oa_1->event_con); + if (oa_handler->oa_2->hpi_con != NULL) + soap_close(oa_handler->oa_2->hpi_con); + if (oa_handler->oa_2->event_con != NULL) + soap_close(oa_handler->oa_2->event_con); + oa_handler->in_discovery_thread = HPOA_FALSE; return rv; } @@ -1427,7 +1438,7 @@ max_bays = oa_handler->oa_soap_resources.oa.max_bays; rv = oa_soap_get_oa_sts_arr(oa_handler->active_con, max_bays, - &status_response, oa_sts_doc); + &status_response, &oa_sts_doc); if (rv != SA_OK) { err("Failed to get OA status array"); xmlFreeDoc( oa_sts_doc); @@ -1434,7 +1445,7 @@ return rv; } rv = oa_soap_get_oa_info_arr(oa_handler->active_con, max_bays, - &info_response, oa_info_doc); + &info_response, &oa_info_doc); if (rv != SA_OK) { err("Failed to get OA info array"); xmlFreeDoc( oa_info_doc); @@ -2089,15 +2100,15 @@ return rv; } - /* Make a soap call to OA requesting for the server thermal status */ - thermal_request.bayNumber = bay_number; + /* Make a soap call to OA requesting for the server thermal status */ + thermal_request.bayNumber = bay_number; - rv = soap_getBladeThermalInfoArray(con, &thermal_request, - &thermal_response); - if (rv != SOAP_OK) { - err("getBladeThermalInfoArray failed for blade"); - return SA_ERR_HPI_INTERNAL_ERROR; - } + rv = soap_getBladeThermalInfoArray(con, &thermal_request, + &thermal_response); + if (rv != SOAP_OK) { + err("getBladeThermalInfoArray failed for blade"); + return SA_ERR_HPI_INTERNAL_ERROR; + } /* Build the thermal sensors based on the blade name*/ rv = oa_soap_build_blade_thermal_rdr(oh_handler, thermal_response, rpt, @@ -2267,7 +2278,7 @@ max_bays = oa_handler->oa_soap_resources.server.max_bays; /* Get blade info array information*/ rv = oa_soap_get_bladeinfo_arr( oa_handler, max_bays, &info_response, - bl_info_doc); + &bl_info_doc); if (rv != SA_OK) { err("Failed to get blade info array"); xmlFreeDoc(bl_info_doc); @@ -2274,7 +2285,7 @@ return rv; } rv = oa_soap_get_bladests_arr( oa_handler ,max_bays ,&sts_response, - bl_sts_doc); + &bl_sts_doc); if (rv != SA_OK) { err("Failed to get blade status array"); xmlFreeDoc(bl_sts_doc); @@ -2282,7 +2293,7 @@ return rv; } rv = oa_soap_get_portmap_arr( oa_handler ,max_bays ,&pm_response, - bl_pm_doc); + &bl_pm_doc); if (rv != SA_OK) { err("Failed to get blade portmap array"); xmlFreeDoc(bl_pm_doc); @@ -2323,6 +2334,8 @@ &info_result, &resource_id, &sts_result); if (rv != SA_OK) { err("Failed to get Server rpt for bay %d.",i); + xmlFreeDoc(bl_pm_doc); + xmlFreeDoc(bl_sts_doc); xmlFreeDoc(bl_info_doc); return SA_ERR_HPI_INTERNAL_ERROR; } @@ -2489,6 +2502,7 @@ if (rv != SA_OK) { err("Unable to get power status for interconnect Bay %d", bay_number); + wrap_g_free(hotswap_state); return rv; } @@ -3118,7 +3132,7 @@ max_bays = oa_handler->oa_soap_resources.interconnect.max_bays; rv = oa_soap_get_interconct_traysts_arr(oa_handler ,max_bays , - &sts_response,intr_sts_doc); + &sts_response, &intr_sts_doc); if (rv != SA_OK) { err("Failed to get interconnect tray status array"); xmlFreeDoc( intr_sts_doc); @@ -3126,7 +3140,7 @@ } rv = oa_soap_get_interconct_trayinfo_arr(oa_handler ,max_bays, - &info_response,intr_info_doc); + &info_response, &intr_info_doc); if (rv != SA_OK) { err("Failed to get interconnect tray info array"); xmlFreeDoc( intr_info_doc); @@ -3135,7 +3149,7 @@ } rv = oa_soap_get_interconct_traypm_arr(oa_handler ,max_bays, - &pm_response,intr_pm_doc); + &pm_response, &intr_pm_doc); if (rv != SA_OK) { err("Failed to get interconnect tray portmap array"); xmlFreeDoc( intr_pm_doc); @@ -3835,7 +3849,7 @@ } rv = oa_soap_get_ps_info_arr ( oa_handler ,max_bays ,&info_response, - ps_info_doc); + &ps_info_doc); if( rv != SA_OK) { err("Failed to get power supply info array"); wrap_g_free(result); @@ -3843,7 +3857,7 @@ return rv; } rv = oa_soap_get_ps_sts_arr ( oa_handler ,max_bays , &sts_response, - ps_sts_doc); + &ps_sts_doc); if( rv != SA_OK) { err("Failed to get power supply status array"); wrap_g_free(result); @@ -4577,7 +4591,8 @@ oa_handler = (struct oa_soap_handler *) oh_handler->data; max_bays = oa_handler->oa_soap_resources.fan.max_bays; - rv = oa_soap_get_fan_info_arr ( oa_handler ,max_bays ,&response,fan_info_doc); + rv = oa_soap_get_fan_info_arr ( oa_handler ,max_bays ,&response, + &fan_info_doc); if (rv != SA_OK) { err("Failed to get blade info array"); xmlFreeDoc(fan_info_doc); @@ -5361,7 +5376,7 @@ SaErrorT oa_soap_get_ps_info_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct getPowerSupplyInfoArrayResponse *response, - xmlDocPtr ps_info_doc) + xmlDocPtr *ps_info_doc) { SaErrorT rv = SA_OK; struct getPowerSupplyInfoArray request; @@ -5369,7 +5384,7 @@ SaHpiInt32T i = 0; byte array[max_bays]; - if (oa_handler == NULL || response == NULL || ps_info_doc != NULL) { + if (oa_handler == NULL || response == NULL || *ps_info_doc != NULL) { err("Invalid parameter"); return SA_ERR_HPI_INVALID_PARAMS; } @@ -5415,7 +5430,7 @@ SaErrorT oa_soap_get_ps_sts_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct getPowerSupplyStsArrayResponse *response, - xmlDocPtr ps_sts_doc) + xmlDocPtr *ps_sts_doc) { SaErrorT rv = SA_OK; struct getPowerSupplyStsArray request; @@ -5423,7 +5438,7 @@ SaHpiInt32T i = 0; byte array[max_bays]; - if (oa_handler == NULL || response == NULL || ps_sts_doc != NULL) { + if (oa_handler == NULL || response == NULL || *ps_sts_doc != NULL) { err("Invalid parameter"); return SA_ERR_HPI_INVALID_PARAMS; } @@ -5469,7 +5484,7 @@ SaErrorT oa_soap_get_fan_info_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct getFanInfoArrayResponse *response, - xmlDocPtr fan_info_doc) + xmlDocPtr *fan_info_doc) { SaErrorT rv = SA_OK; struct getFanInfoArray request; @@ -5477,7 +5492,7 @@ SaHpiInt32T i = 0; byte array[max_bays]; - if (oa_handler == NULL || response == NULL || fan_info_doc != NULL) { + if (oa_handler == NULL || response == NULL || *fan_info_doc != NULL) { err("Invalid parameter"); return SA_ERR_HPI_INVALID_PARAMS; } @@ -5522,7 +5537,7 @@ SaErrorT oa_soap_get_bladeinfo_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct getBladeInfoArrayResponse *response, - xmlDocPtr bl_info_doc) + xmlDocPtr *bl_info_doc) { SaErrorT rv = SA_OK; struct getBladeInfoArray request; @@ -5530,7 +5545,7 @@ SaHpiInt32T i = 0; byte array[max_bays]; - if (oa_handler == NULL || response == NULL || bl_info_doc != NULL ) { + if (oa_handler == NULL || response == NULL || *bl_info_doc != NULL ) { err("Invalid parameter"); return SA_ERR_HPI_INVALID_PARAMS; } @@ -5544,7 +5559,7 @@ bay_zones.size = max_bays; request.bayArray = bay_zones; rv = soap_getBladeInfoArray(oa_handler->active_con, &request, - response,bl_info_doc); + response, bl_info_doc); if (rv != SOAP_OK) { err("Get blade info array SOAP call failed"); return SA_ERR_HPI_INTERNAL_ERROR; @@ -5575,7 +5590,7 @@ SaErrorT oa_soap_get_interconct_trayinfo_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct interconnectTrayInfoArrayResponse *response, - xmlDocPtr intr_info_doc) + xmlDocPtr *intr_info_doc) { SaErrorT rv = SA_OK; struct getInterconnectTrayInfoArray request; @@ -5583,7 +5598,7 @@ SaHpiInt32T i = 0; byte array[max_bays]; - if (oa_handler == NULL || response == NULL || intr_info_doc != NULL) { + if (oa_handler == NULL || response == NULL || *intr_info_doc != NULL) { err("Invalid parameter"); return SA_ERR_HPI_INVALID_PARAMS; } @@ -5628,7 +5643,7 @@ SaErrorT oa_soap_get_interconct_traysts_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct interconnectTrayStsArrayResponse *response, - xmlDocPtr intr_sts_doc) + xmlDocPtr *intr_sts_doc) { SaErrorT rv = SA_OK; struct interconnectTrayStsArray request; @@ -5636,7 +5651,7 @@ SaHpiInt32T i = 0; byte array[max_bays]; - if (oa_handler == NULL || response == NULL || intr_sts_doc != NULL) { + if (oa_handler == NULL || response == NULL || *intr_sts_doc != NULL) { err("Invalid parameter"); return SA_ERR_HPI_INVALID_PARAMS; } @@ -5681,7 +5696,7 @@ SaErrorT oa_soap_get_interconct_traypm_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct interconnectTrayPmArrayResponse *response, - xmlDocPtr intr_pm_doc) + xmlDocPtr *intr_pm_doc) { SaErrorT rv = SA_OK; struct interconnectTrayPmArray request; @@ -5689,7 +5704,7 @@ SaHpiInt32T i = 0; byte array[max_bays]; - if (oa_handler == NULL || response == NULL || intr_pm_doc != NULL) { + if (oa_handler == NULL || response == NULL || *intr_pm_doc != NULL) { err("Invalid parameter"); return SA_ERR_HPI_INVALID_PARAMS; } @@ -5734,7 +5749,7 @@ SaErrorT oa_soap_get_oa_info_arr(SOAP_CON *con, SaHpiInt32T max_bays, struct getOaInfoArrayResponse *response, - xmlDocPtr oa_info_doc) + xmlDocPtr *oa_info_doc) { SaErrorT rv = SA_OK; struct getOaInfoArray request; @@ -5742,7 +5757,7 @@ SaHpiInt32T i = 0; byte array[max_bays]; - if (con == NULL || response == NULL || oa_info_doc != NULL) { + if (con == NULL || response == NULL || *oa_info_doc != NULL) { err("Invalid parameter"); return SA_ERR_HPI_INVALID_PARAMS; } @@ -5787,7 +5802,7 @@ SaErrorT oa_soap_get_oa_sts_arr(SOAP_CON *con, SaHpiInt32T max_bays, struct getOaStatusArrayResponse *response, - xmlDocPtr oa_sts_doc) + xmlDocPtr *oa_sts_doc) { SaErrorT rv = SA_OK; struct getOaStatusArray request; @@ -5795,7 +5810,7 @@ SaHpiInt32T i = 0; byte array[max_bays]; - if (con == NULL || response == NULL || oa_sts_doc != NULL) { + if (con == NULL || response == NULL || *oa_sts_doc != NULL) { err("Invalid parameter"); return SA_ERR_HPI_INVALID_PARAMS; } @@ -5840,7 +5855,7 @@ SaErrorT oa_soap_get_bladests_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct getBladeStsArrayResponse *response, - xmlDocPtr bl_sts_doc) + xmlDocPtr *bl_sts_doc) { SaErrorT rv = SA_OK; struct getBladeStsArray request; @@ -5848,7 +5863,7 @@ SaHpiInt32T i = 0; byte array[max_bays]; - if ( oa_handler == NULL || response == NULL || bl_sts_doc != NULL ) { + if ( oa_handler == NULL || response == NULL || *bl_sts_doc != NULL ) { err("Invalid parameter"); return SA_ERR_HPI_INVALID_PARAMS; } @@ -5862,7 +5877,7 @@ bay_zones.size = max_bays; request.bayArray = bay_zones; rv = soap_getBladeStatusArray(oa_handler->active_con, &request, - response,bl_sts_doc); + response, bl_sts_doc); if (rv != SOAP_OK) { err("Get blade status array SOAP call failed"); return SA_ERR_HPI_INTERNAL_ERROR; @@ -5893,7 +5908,7 @@ SaErrorT oa_soap_get_portmap_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct getBladePortMapArrayResponse *response, - xmlDocPtr bl_pm_doc) + xmlDocPtr *bl_pm_doc) { SaErrorT rv = SA_OK; struct getBladePortMapArray request; @@ -5901,7 +5916,7 @@ SaHpiInt32T i = 0; byte array[max_bays]; - if ( oa_handler == NULL || response == NULL || bl_pm_doc != NULL ) { + if ( oa_handler == NULL || response == NULL || *bl_pm_doc != NULL ) { err("Invalid parameter"); return SA_ERR_HPI_INVALID_PARAMS; } @@ -5915,7 +5930,7 @@ bay_zones.size = max_bays; request.bayArray = bay_zones; rv = soap_getBladePortMapArray(oa_handler->active_con, &request, - response,bl_pm_doc); + response, bl_pm_doc); if (rv != SOAP_OK) { err("Get blade portmap array SOAP call failed"); return SA_ERR_HPI_INTERNAL_ERROR; Modified: openhpi/trunk/plugins/oa_soap/oa_soap_discover.h =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_discover.h 2017-07-25 21:28:59 UTC (rev 7716) +++ openhpi/trunk/plugins/oa_soap/oa_soap_discover.h 2017-09-15 10:25:42 UTC (rev 7717) @@ -320,57 +320,57 @@ SaErrorT oa_soap_get_ps_info_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct getPowerSupplyInfoArrayResponse *response, - xmlDocPtr); + xmlDocPtr *); SaErrorT oa_soap_get_ps_sts_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct getPowerSupplyStsArrayResponse *response, - xmlDocPtr); + xmlDocPtr *); SaErrorT oa_soap_get_fan_info_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct getFanInfoArrayResponse *response, - xmlDocPtr); + xmlDocPtr *); SaErrorT oa_soap_get_bladeinfo_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct getBladeInfoArrayResponse *response, - xmlDocPtr); + xmlDocPtr *); SaErrorT oa_soap_get_interconct_trayinfo_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct interconnectTrayInfoArrayResponse *response, - xmlDocPtr); + xmlDocPtr *); SaErrorT oa_soap_get_interconct_traysts_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct interconnectTrayStsArrayResponse *response, - xmlDocPtr); + xmlDocPtr *); SaErrorT oa_soap_get_interconct_traypm_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct interconnectTrayPmArrayResponse *response, - xmlDocPtr); + xmlDocPtr *); SaErrorT oa_soap_get_oa_info_arr(SOAP_CON *con, SaHpiInt32T max_bays, struct getOaInfoArrayResponse *response, - xmlDocPtr); + xmlDocPtr *); SaErrorT oa_soap_get_oa_sts_arr(SOAP_CON *con, SaHpiInt32T max_bays, struct getOaStatusArrayResponse *response, - xmlDocPtr); + xmlDocPtr *); SaErrorT oa_soap_get_bladests_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct getBladeStsArrayResponse *response, - xmlDocPtr); + xmlDocPtr *); SaErrorT oa_soap_get_portmap_arr(struct oa_soap_handler *oa_handler, SaHpiInt32T max_bays, struct getBladePortMapArrayResponse *response, - xmlDocPtr); + xmlDocPtr *); #endif Modified: openhpi/trunk/plugins/oa_soap/oa_soap_interconnect_event.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_interconnect_event.c 2017-07-25 21:28:59 UTC (rev 7716) +++ openhpi/trunk/plugins/oa_soap/oa_soap_interconnect_event.c 2017-09-15 10:25:42 UTC (rev 7717) @@ -565,6 +565,11 @@ */ rv = build_inserted_interconnect_rdr(oh_handler, con, bay_number, resource_id, FALSE); + if (rv != SA_OK) { + err("Failed to build the interconnect RDR"); + wrap_g_free(serial_number); + return rv; + } wrap_g_free(serial_number); return SA_OK; Modified: openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.c 2017-07-25 21:28:59 UTC (rev 7716) +++ openhpi/trunk/plugins/oa_soap/oa_soap_re_discover.c 2017-09-15 10:25:42 UTC (rev 7717) @@ -293,7 +293,7 @@ max_bays = oa_handler->oa_soap_resources.oa.max_bays; rv = oa_soap_get_oa_sts_arr(oa_handler->active_con ,max_bays , - &status_response,oa_sts_doc); + &status_response, &oa_sts_doc); if (rv != SA_OK) { err("Failed to get OA status array"); xmlFreeDoc( oa_sts_doc); @@ -300,7 +300,7 @@ return rv; } rv = oa_soap_get_oa_info_arr(oa_handler->active_con ,max_bays , - &info_response,oa_info_doc); + &info_response, &oa_info_doc); if (rv != SA_OK) { err("Failed to get OA info array"); xmlFreeDoc( oa_info_doc); @@ -732,7 +732,7 @@ max_bays = oa_handler->oa_soap_resources.server.max_bays; /* Get blade info array information*/ rv = oa_soap_get_bladeinfo_arr( oa_handler ,max_bays ,&info_response, - bl_info_doc); + &bl_info_doc); if (rv != SA_OK) { err("Failed to get blade info array"); xmlFreeDoc( bl_info_doc); @@ -739,7 +739,7 @@ return rv; } rv = oa_soap_get_bladests_arr( oa_handler ,max_bays ,&sts_response, - bl_sts_doc); + &bl_sts_doc); if (rv != SA_OK) { err("Failed to get blade status array"); xmlFreeDoc(bl_sts_doc); @@ -747,7 +747,7 @@ return rv; } rv = oa_soap_get_portmap_arr( oa_handler ,max_bays ,&pm_response, - bl_pm_doc); + &bl_pm_doc); if (rv != SA_OK) { err("Failed to get blade portmap array"); xmlFreeDoc(bl_pm_doc); @@ -1381,7 +1381,7 @@ max_bays = oa_handler->oa_soap_resources.interconnect.max_bays; rv = oa_soap_get_interconct_traysts_arr(oa_handler, max_bays, - &sts_res, intr_sts_doc); + &sts_res, &intr_sts_doc); if (rv != SA_OK) { err("Failed to get interconnect tray status array"); xmlFreeDoc( intr_sts_doc); @@ -1388,7 +1388,7 @@ return rv; } rv = oa_soap_get_interconct_trayinfo_arr(oa_handler ,max_bays , - &info_res,intr_info_doc); + &info_res, &intr_info_doc); if (rv != SA_OK) { err("Failed to get interconnect tray info array"); xmlFreeDoc( intr_info_doc); @@ -1396,7 +1396,7 @@ return rv; } rv = oa_soap_get_interconct_traypm_arr(oa_handler ,max_bays, - &pm_res, intr_pm_doc); + &pm_res, &intr_pm_doc); if (rv != SA_OK) { err("Failed to get interconnect tray portmap array"); xmlFreeDoc( intr_pm_doc); @@ -1519,6 +1519,9 @@ &status_result, &portmap); if (rv != SA_OK) { err("Interconnect blade %d add failed", i); + xmlFreeDoc( intr_pm_doc); + xmlFreeDoc( intr_info_doc); + xmlFreeDoc( intr_sts_doc); return rv; } else err("Interconnect blade %d added", i); @@ -1993,7 +1996,8 @@ oa_handler = (struct oa_soap_handler *) oh_handler->data; max_bays = oa_handler->oa_soap_resources.fan.max_bays; - rv = oa_soap_get_fan_info_arr ( oa_handler ,max_bays ,&response,fan_info_doc); + rv = oa_soap_get_fan_info_arr ( oa_handler ,max_bays ,&response, + &fan_info_doc); if (rv != SA_OK) { err("Failed to get fan info array"); xmlFreeDoc( fan_info_doc); @@ -2273,7 +2277,7 @@ max_bays = oa_handler->oa_soap_resources.ps_unit.max_bays; rv = oa_soap_get_ps_info_arr( oa_handler ,max_bays ,&info_response, - ps_info_doc); + &ps_info_doc); if (rv != SA_OK) { err("Failed to get power supply info array"); xmlFreeDoc( ps_info_doc); @@ -2281,7 +2285,7 @@ return rv; } rv = oa_soap_get_ps_sts_arr( oa_handler ,max_bays ,&sts_res, - ps_sts_doc); + &ps_sts_doc); if (rv != SA_OK) { err("Failed to get power supply status array"); xmlFreeDoc( ps_info_doc); Modified: openhpi/trunk/ssl/oh_ssl.c =================================================================== --- openhpi/trunk/ssl/oh_ssl.c 2017-07-25 21:28:59 UTC (rev 7716) +++ openhpi/trunk/ssl/oh_ssl.c 2017-09-15 10:25:42 UTC (rev 7717) @@ -550,6 +550,7 @@ g_free(Server); g_free(Port); freeaddrinfo(AddrInfo); + SSL_free(ssl); close(socket_desc); return (NULL); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <shy...@us...> - 2017-10-25 06:07:29
|
Revision: 7722 http://sourceforge.net/p/openhpi/code/7722 Author: shyamalah Date: 2017-10-25 06:07:26 +0000 (Wed, 25 Oct 2017) Log Message: ----------- Fixed the bug "#1968 Bring in build changes from debian build". Modified Paths: -------------- openhpi/trunk/Makefile.am openhpi/trunk/baselib/Makefile.am openhpi/trunk/baselibs/Makefile.am openhpi/trunk/clients/hpixml/Makefile.am openhpi/trunk/configure.ac openhpi/trunk/cpp/Makefile.am openhpi/trunk/hpi_shell/Makefile.am openhpi/trunk/openhpid/Makefile.am openhpi/trunk/plugins/dynamic_simulator/Makefile.am openhpi/trunk/plugins/ilo2_ribcl/Makefile.am openhpi/trunk/plugins/ipmi/Makefile.am openhpi/trunk/plugins/ipmidirect/Makefile.am openhpi/trunk/plugins/oa_soap/Makefile.am openhpi/trunk/plugins/slave/Makefile.am openhpi/trunk/plugins/snmp_bc/Makefile.am openhpi/trunk/plugins/snmp_bc/t/Makefile.am openhpi/trunk/plugins/test_agent/Makefile.am openhpi/trunk/plugins/watchdog/Makefile.am openhpi/trunk/scripts/test/Makefile.am openhpi/trunk/ssl/Makefile.am openhpi/trunk/transport/Makefile.am openhpi/trunk/utils/Makefile.am openhpi/trunk/utils/t/ann/Makefile.am openhpi/trunk/utils/t/el/Makefile.am openhpi/trunk/utils/t/uid/Makefile.am Modified: openhpi/trunk/Makefile.am =================================================================== --- openhpi/trunk/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -30,6 +30,8 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # +ACLOCAL_AMFLAGS = -I m4 + #AUTOMAKE_OPTIONS = 1.8 TARFILE = $(PACKAGE_NAME)-$(VERSION).tar.gz Modified: openhpi/trunk/baselib/Makefile.am =================================================================== --- openhpi/trunk/baselib/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/baselib/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -40,7 +40,8 @@ libopenhpi_la_LDFLAGS = -version-info @HPI_LIB_VERSION@ libopenhpi_la_LIBADD = $(top_builddir)/transport/libopenhpitransport.la -lstdc++ \ $(top_builddir)/marshal/libopenhpimarshal.la \ - $(top_builddir)/utils/libopenhpiutils.la + $(top_builddir)/utils/libopenhpiutils.la \ + @SSL_LIB@ -lm -lpthread clean-local: rm -f *~ core core.* Modified: openhpi/trunk/baselibs/Makefile.am =================================================================== --- openhpi/trunk/baselibs/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/baselibs/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -28,6 +28,7 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # +AUTOMAKE_OPTIONS = -Wno-portability EXTRA_DIST = $(srcdir)/README \ $(srcdir)/csharp/Makefile \ Modified: openhpi/trunk/clients/hpixml/Makefile.am =================================================================== --- openhpi/trunk/clients/hpixml/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/clients/hpixml/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -1,6 +1,8 @@ MAINTAINERCLEANFILES = Makefile.in MOSTLYCLEANFILES = @TEST_CLEAN@ +AUTOMAKE_OPTIONS = -Wno-portability subdir-objects + AM_CPPFLAGS = -DG_LOG_DOMAIN=\"hpixml\" AM_CCASFLAGS = -DSCHEMA=\"$(srcdir)/schema.xsd\" Modified: openhpi/trunk/configure.ac =================================================================== --- openhpi/trunk/configure.ac 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/configure.ac 2017-10-25 06:07:26 UTC (rev 7722) @@ -8,6 +8,7 @@ AC_INIT(openhpi, 3.8.0) AC_CONFIG_SRCDIR(openhpi.spec.in) AM_INIT_AUTOMAKE([1.8]) +AC_CONFIG_MACRO_DIR([m4]) AM_CONFIG_HEADER(config.h) AH_TOP([#ifndef __OPENHPI_CONFIG_H @@ -113,13 +114,16 @@ fi exact_version=`pkg-config --modversion $GLIB`; -GLIB_CFLAGS=`pkg-config --cflags $GLIB $GTHREAD` -GLIB_LIBS=`pkg-config --libs $GLIB $GTHREAD` +GLIB_CFLAGS=`pkg-config --cflags $GLIB` +GLIB_LIBS=`pkg-config --libs $GLIB` GLIB_ONLY_CFLAGS=`pkg-config --cflags $GLIB` GLIB_ONLY_LIBS=`pkg-config --libs $GLIB` GMODULE_ONLY_CFLAGS=`pkg-config --cflags $GMODULE` GMODULE_ONLY_LIBS=`pkg-config --libs $GMODULE` +GTHREAD_CFLAGS=`pkg-config --cflags $GTHREAD` +GTHREAD_LIBS=`pkg-config --libs $GTHREAD` + # On some versions of Solaris the pkg-config file for gthread-2.0 contains a # compiler option, '-mt', that is incompatible with gcc case $host_os in @@ -152,6 +156,8 @@ AC_SUBST(GLIB_ONLY_LIBS) AC_SUBST(GMODULE_ONLY_CFLAGS) AC_SUBST(GMODULE_ONLY_LIBS) +AC_SUBST(GTHREAD_CFLAGS) +AC_SUBST(GTHREAD_LIBS) AC_CHECK_LIB([sysfs], [sysfs_get_mnt_path], [have_sysfs=yes]) @@ -743,7 +749,8 @@ AC_SUBST(OPENHPI_INCLUDES) dnl Set up libs that will be linked to -LIBS="$LIBS $SSL_LIB $GLIB_LIBS -lm -lpthread" +dnl old LIBS="$LIBS $SSL_LIB $GLIB_LIBS -lm -lpthread" GTHREAD_LIBS +LIBS="$LIBS $GLIB_LIBS $GTHREAD_LIBS" AC_CHECK_PROG([found_pod2man], [pod2man], [yes]) AC_ARG_ENABLE([man], Modified: openhpi/trunk/cpp/Makefile.am =================================================================== --- openhpi/trunk/cpp/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/cpp/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -77,7 +77,7 @@ pkglib_LTLIBRARIES = libosahpi.la -libosahpi_la_LIBADD = -luuid +#libosahpi_la_LIBADD = -luuid libosahpi_la_SOURCES = oSaHpiAlarm.cpp oSaHpiAlarm.hpp \ oSaHpiAnnouncement.cpp oSaHpiAnnouncement.hpp \ oSaHpiAnnunciatorRec.cpp oSaHpiAnnunciatorRec.hpp \ Modified: openhpi/trunk/hpi_shell/Makefile.am =================================================================== --- openhpi/trunk/hpi_shell/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/hpi_shell/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -1,6 +1,8 @@ .NOTPARALLEL: +AUTOMAKE_OPTIONS = -Wno-portability subdir-objects + MAINTAINERCLEANFILES = Makefile.in MOSTLYCLEANFILES = @TEST_CLEAN@ @@ -14,8 +16,7 @@ -I$(top_srcdir)/marshal \ -I$(top_srcdir)/clients \ -DCLIENT -COMMONLIBS = $(top_builddir)/transport/libopenhpitransport.la \ - $(top_builddir)/utils/libopenhpiutils.la \ +COMMONLIBS = $(top_builddir)/utils/libopenhpiutils.la \ $(top_builddir)/baselib/libopenhpi.la bin_PROGRAMS = hpi_shell Modified: openhpi/trunk/openhpid/Makefile.am =================================================================== --- openhpi/trunk/openhpid/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/openhpid/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -56,7 +56,7 @@ threaded.h libopenhpidaemon_la_LIBADD = $(top_builddir)/utils/libopenhpiutils.la \ - @GMODULE_ONLY_LIBS@ + @GMODULE_ONLY_LIBS@ -lm -lpthread if HAVE_OPENSSL libopenhpidaemon_la_LIBADD += $(top_builddir)/$(SSLDIR)/libopenhpi_ssl.la Modified: openhpi/trunk/plugins/dynamic_simulator/Makefile.am =================================================================== --- openhpi/trunk/plugins/dynamic_simulator/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/plugins/dynamic_simulator/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -127,7 +127,7 @@ thread.h \ thread.cpp -libdyn_simulator_la_LIBADD = -lm -lstdc++ $(top_builddir)/utils/libopenhpiutils.la +libdyn_simulator_la_LIBADD = -lm -lpthread -lstdc++ $(top_builddir)/utils/libopenhpiutils.la libdyn_simulator_la_LDFLAGS= -module -version-info @HPI_LIB_VERSION@ clean-local: Modified: openhpi/trunk/plugins/ilo2_ribcl/Makefile.am =================================================================== --- openhpi/trunk/plugins/ilo2_ribcl/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/plugins/ilo2_ribcl/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -66,6 +66,7 @@ ilo2_ribcl_hotswap.c \ ilo2_ribcl_hotswap.h -libilo2_ribcl_la_LIBADD = @SSL_LIB@ @XML2_LIB@ $(top_builddir)/utils/libopenhpiutils.la +libilo2_ribcl_la_LIBADD = @XML2_LIB@ $(top_builddir)/utils/libopenhpiutils.la \ + $(top_builddir)/ssl/libopenhpi_ssl.la libilo2_ribcl_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ Modified: openhpi/trunk/plugins/ipmi/Makefile.am =================================================================== --- openhpi/trunk/plugins/ipmi/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/plugins/ipmi/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -69,6 +69,6 @@ atca_shelf_fru.c \ ipmi.h -libipmi_la_LIBADD = $(top_builddir)/utils/libopenhpiutils.la -lncurses -lOpenIPMI -lOpenIPMIposix @OPENIPMI_LIBS@ +libipmi_la_LIBADD = $(top_builddir)/utils/libopenhpiutils.la -lOpenIPMI -lOpenIPMIposix #libipmi_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ -export-symbols $(srcdir)/ipmi.sym libipmi_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ -export-dymanic $(srcdir)/ipmi.sym Modified: openhpi/trunk/plugins/ipmidirect/Makefile.am =================================================================== --- openhpi/trunk/plugins/ipmidirect/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/plugins/ipmidirect/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -122,7 +122,7 @@ thread.h \ thread.cpp -libipmidirect_la_LIBADD = @CRYPTO_LIB@ -lm -lstdc++ $(top_builddir)/utils/libopenhpiutils.la +libipmidirect_la_LIBADD = @CRYPTO_LIB@ -lm -lpthread -lstdc++ $(top_builddir)/utils/libopenhpiutils.la libipmidirect_la_LDFLAGS= -module -version-info @HPI_LIB_VERSION@ clean-local: Modified: openhpi/trunk/plugins/oa_soap/Makefile.am =================================================================== --- openhpi/trunk/plugins/oa_soap/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/plugins/oa_soap/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -96,6 +96,7 @@ oa_soap_callsupport.c # TODO: What about -luuid in the ilo2_ribcl? -liboa_soap_la_LIBADD = @SSL_LIB@ @XML2_LIB@ \ - $(top_builddir)/utils/libopenhpiutils.la +liboa_soap_la_LIBADD = @XML2_LIB@ -lm -lpthread \ + $(top_builddir)/utils/libopenhpiutils.la \ + $(top_builddir)/ssl/libopenhpi_ssl.la liboa_soap_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ Modified: openhpi/trunk/plugins/slave/Makefile.am =================================================================== --- openhpi/trunk/plugins/slave/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/plugins/slave/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -36,5 +36,6 @@ util.h libslave_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ -libslave_la_LIBADD = @GMODULE_ONLY_LIBS@ +libslave_la_LIBADD = @GMODULE_ONLY_LIBS@ -lm \ + $(top_builddir)/utils/libopenhpiutils.la Modified: openhpi/trunk/plugins/snmp_bc/Makefile.am =================================================================== --- openhpi/trunk/plugins/snmp_bc/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/plugins/snmp_bc/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -83,7 +83,7 @@ snmp_bc_xml2event.c nodist_libsnmp_bc_la_SOURCES = $(GENERATED_EVENT_CODE) -libsnmp_bc_la_LIBADD = -luuid @SNMPLIBS@ $(SNMPUTILBDIR)/libopenhpi_snmp.la $(top_builddir)/utils/libopenhpiutils.la +libsnmp_bc_la_LIBADD = -luuid -lnetsnmp $(SNMPUTILBDIR)/libopenhpi_snmp.la $(top_builddir)/utils/libopenhpiutils.la libsnmp_bc_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ #libsnmp_bc_la_LDFLAGS = -module -avoid-version Modified: openhpi/trunk/plugins/snmp_bc/t/Makefile.am =================================================================== --- openhpi/trunk/plugins/snmp_bc/t/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/plugins/snmp_bc/t/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -13,6 +13,8 @@ GENERATED_EVENT_CODE = el2event.c GENERATED_CODE = $(GENERATED_EVENT_XML_MAP) $(GENERATED_EVENT_CODE) +AUTOMAKE_OPTIONS = -Wno-portability + REMOTE_SIM_SOURCES = \ snmp_bc.c \ snmp_bc_annunciator.c \ Modified: openhpi/trunk/plugins/test_agent/Makefile.am =================================================================== --- openhpi/trunk/plugins/test_agent/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/plugins/test_agent/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -77,5 +77,5 @@ watchdog.h libtest_agent_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ -libtest_agent_la_LIBADD = @GMODULE_ONLY_LIBS@ +libtest_agent_la_LIBADD = -lm -lpthread $(top_builddir)/utils/libopenhpiutils.la Modified: openhpi/trunk/plugins/watchdog/Makefile.am =================================================================== --- openhpi/trunk/plugins/watchdog/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/plugins/watchdog/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -38,5 +38,5 @@ pkglib_LTLIBRARIES = libwatchdog.la libwatchdog_la_SOURCES = watchdog.c -libwatchdog_la_LIBADD = $(top_builddir)/utils/libopenhpiutils.la +libwatchdog_la_LIBADD = $(top_builddir)/utils/libopenhpiutils.la -lpthread libwatchdog_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ Modified: openhpi/trunk/scripts/test/Makefile.am =================================================================== --- openhpi/trunk/scripts/test/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/scripts/test/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -29,6 +29,8 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # +AUTOMAKE_OPTIONS = -Wno-portability + REPORTDIR = report_html CONFORMDIR = conform_html SERVER = shell1.sf.net Modified: openhpi/trunk/ssl/Makefile.am =================================================================== --- openhpi/trunk/ssl/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/ssl/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -19,5 +19,6 @@ libopenhpi_ssl_la_SOURCES = oh_ssl.c oh_ssl.h libopenhpi_ssl_la_LDFLAGS = -version-info @HPI_LIB_VERSION@ -libopenhpi_ssl_la_LIBADD = @CRYPTO_LIB@ +libopenhpi_ssl_la_LIBADD = @CRYPTO_LIB@ $(top_builddir)/utils/libopenhpiutils.la \ + -lssl -lpthread -lm Modified: openhpi/trunk/transport/Makefile.am =================================================================== --- openhpi/trunk/transport/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/transport/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -22,7 +22,7 @@ AM_CPPFLAGS += @OPENHPI_INCLUDES@ # just to clear LIBS -LIBS = +# LIBS = # marshal and connection used by the daemon and client library lib_LTLIBRARIES = libopenhpitransport.la @@ -32,6 +32,7 @@ strmsock.h libopenhpitransport_la_LDFLAGS= -version-info @HPI_LIB_VERSION@ +# libopenhpitransport_la_LIBADD= @GTHREAD_LIBS@ clean-local: rm -f *~ core core.* Modified: openhpi/trunk/utils/Makefile.am =================================================================== --- openhpi/trunk/utils/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/utils/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -94,7 +94,7 @@ uid_utils.h libopenhpiutils_la_LDFLAGS = -version-info @HPI_LIB_VERSION@ -libopenhpiutils_la_LIBADD = @GCRYPT_LIB@ +libopenhpiutils_la_LIBADD = @GCRYPT_LIB@ @SSL_LIB@ -lm -lpthread # FIXME:: Add when we can auto-generate files for SMP systems #$(GENERATED_FILES): $(top_srcdir)/include/SaHpi.h $(top_srcdir)/scripts/SaHpi2code.pl Modified: openhpi/trunk/utils/t/ann/Makefile.am =================================================================== --- openhpi/trunk/utils/t/ann/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/utils/t/ann/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -8,6 +8,8 @@ # the Copying file included with the OpenHPI distribution for # full licensing terms. +AUTOMAKE_OPTIONS = -Wno-portability + MAINTAINERCLEANFILES = Makefile.in REMOTE_SOURCES = announcement_utils.c \ Modified: openhpi/trunk/utils/t/el/Makefile.am =================================================================== --- openhpi/trunk/utils/t/el/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/utils/t/el/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -10,6 +10,8 @@ MAINTAINERCLEANFILES = Makefile.in +AUTOMAKE_OPTIONS = -Wno-portability + REMOTE_SOURCES = announcement_utils.c \ el_utils.c \ epath_utils.c \ Modified: openhpi/trunk/utils/t/uid/Makefile.am =================================================================== --- openhpi/trunk/utils/t/uid/Makefile.am 2017-10-25 02:53:46 UTC (rev 7721) +++ openhpi/trunk/utils/t/uid/Makefile.am 2017-10-25 06:07:26 UTC (rev 7722) @@ -10,6 +10,8 @@ MAINTAINERCLEANFILES = Makefile.in +AUTOMAKE_OPTIONS = -Wno-portability + REMOTE_SOURCES = uid_utils.c \ epath_utils.c \ sahpi_enum_utils.c \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2018-02-12 19:37:59
|
Revision: 7744 http://sourceforge.net/p/openhpi/code/7744 Author: dr_mohan Date: 2018-02-12 19:37:56 +0000 (Mon, 12 Feb 2018) Log Message: ----------- Incrementing version on trunk after creating 3.8.x branch Modified Paths: -------------- openhpi/trunk/Makefile.mingw32.def openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py openhpi/trunk/configure.ac Modified: openhpi/trunk/Makefile.mingw32.def =================================================================== --- openhpi/trunk/Makefile.mingw32.def 2018-02-12 19:07:37 UTC (rev 7743) +++ openhpi/trunk/Makefile.mingw32.def 2018-02-12 19:37:56 UTC (rev 7744) @@ -2,9 +2,9 @@ ARCH := x86 #ARCH := amd64 -VERSION := 3.8.0 +VERSION := 4.0.0 # This is for resource compiler -BINARY_VERSION := 3,8,0,0 +BINARY_VERSION := 4,0,0,0 ############################################################################ TOOLCHAIN_PATH := /home/avpak/usr/cross/mingw32 Modified: openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs =================================================================== --- openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs 2018-02-12 19:07:37 UTC (rev 7743) +++ openhpi/trunk/baselibs/csharp/openhpi_baselib/AssemblyInfo.cs 2018-02-12 19:37:56 UTC (rev 7744) @@ -24,6 +24,6 @@ [assembly: AssemblyTitle( "OpenHPI Base Library For .NET" )] [assembly: AssemblyDescription( "OpenHPI Base Library For .NET" )] [assembly: AssemblyProduct( "OpenHPI" )] -[assembly: AssemblyVersion( "3.8.0.0" )] +[assembly: AssemblyVersion( "4.0.0.0" )] [assembly: AssemblyCulture( "" )] Modified: openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt =================================================================== --- openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt 2018-02-12 19:07:37 UTC (rev 7743) +++ openhpi/trunk/baselibs/java/openhpi_baselib/manifest.txt 2018-02-12 19:37:56 UTC (rev 7744) @@ -3,5 +3,5 @@ Implementation-Title: OpenHPI Base Library For Java Implementation-Vendor: openhpi.org Implementation-URL: http://openhpi.org -Implementation-Version: 3.8.0 +Implementation-Version: 4.0.0 Modified: openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py =================================================================== --- openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py 2018-02-12 19:07:37 UTC (rev 7743) +++ openhpi/trunk/baselibs/python/openhpi_baselib/OhpiVersion.py 2018-02-12 19:37:56 UTC (rev 7744) @@ -14,5 +14,5 @@ # Anton Pak <ant...@pi...> # -__version_info__ = ( 3, 8, 0 ) +__version_info__ = ( 4, 0, 0 ) Modified: openhpi/trunk/configure.ac =================================================================== --- openhpi/trunk/configure.ac 2018-02-12 19:07:37 UTC (rev 7743) +++ openhpi/trunk/configure.ac 2018-02-12 19:37:56 UTC (rev 7744) @@ -5,7 +5,7 @@ AC_PREREQ(2.57) -AC_INIT(openhpi, 3.8.0) +AC_INIT(openhpi, 4.0.0) AC_CONFIG_SRCDIR(openhpi.spec.in) AM_INIT_AUTOMAKE([1.8]) AC_CONFIG_MACRO_DIR([m4]) @@ -24,7 +24,7 @@ # minor version: 11 = 11 # patch version: 4 = 4 # -HPI_LIB_VERSION=11:0:8 +HPI_LIB_VERSION=4:0:0 HPI_PKG=$PACKAGE_NAME HPI_UTIL_PKG=${PACKAGE_NAME}utils HPI_CLIENT_PKG=${PACKAGE_NAME}client This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2018-02-27 23:41:41
|
Revision: 7748 http://sourceforge.net/p/openhpi/code/7748 Author: dr_mohan Date: 2018-02-27 23:41:37 +0000 (Tue, 27 Feb 2018) Log Message: ----------- Merge 3.8.x branch changes to trunk Modified Paths: -------------- openhpi/trunk/Makefile.am openhpi/trunk/baselib/Makefile.am openhpi/trunk/baselibs/Makefile.am openhpi/trunk/clients/hpipower.c openhpi/trunk/clients/hpixml/Makefile.am openhpi/trunk/configure.ac openhpi/trunk/cpp/Makefile.am openhpi/trunk/hpi_shell/Makefile.am openhpi/trunk/openhpid/Makefile.am openhpi/trunk/plugins/dynamic_simulator/Makefile.am openhpi/trunk/plugins/ilo2_ribcl/Makefile.am openhpi/trunk/plugins/ipmi/Makefile.am openhpi/trunk/plugins/ipmidirect/Makefile.am openhpi/trunk/plugins/oa_soap/Makefile.am openhpi/trunk/plugins/oa_soap/oa_soap_inventory.c openhpi/trunk/plugins/oa_soap/oa_soap_utils.c openhpi/trunk/plugins/slave/Makefile.am openhpi/trunk/plugins/snmp_bc/Makefile.am openhpi/trunk/plugins/snmp_bc/t/Makefile.am openhpi/trunk/plugins/test_agent/Makefile.am openhpi/trunk/plugins/watchdog/Makefile.am openhpi/trunk/scripts/test/Makefile.am openhpi/trunk/ssl/Makefile.am openhpi/trunk/transport/Makefile.am openhpi/trunk/utils/Makefile.am openhpi/trunk/utils/t/ann/Makefile.am openhpi/trunk/utils/t/el/Makefile.am openhpi/trunk/utils/t/uid/Makefile.am Property Changed: ---------------- openhpi/trunk/ Index: openhpi/trunk =================================================================== --- openhpi/trunk 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk 2018-02-27 23:41:37 UTC (rev 7748) Property changes on: openhpi/trunk ___________________________________________________________________ Added: svn:mergeinfo ## -0,0 +1 ## +/openhpi/branches/3.8.x:7743-7747 \ No newline at end of property Modified: openhpi/trunk/Makefile.am =================================================================== --- openhpi/trunk/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -30,8 +30,6 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -ACLOCAL_AMFLAGS = -I m4 - #AUTOMAKE_OPTIONS = 1.8 TARFILE = $(PACKAGE_NAME)-$(VERSION).tar.gz Modified: openhpi/trunk/baselib/Makefile.am =================================================================== --- openhpi/trunk/baselib/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/baselib/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -40,8 +40,7 @@ libopenhpi_la_LDFLAGS = -version-info @HPI_LIB_VERSION@ libopenhpi_la_LIBADD = $(top_builddir)/transport/libopenhpitransport.la -lstdc++ \ $(top_builddir)/marshal/libopenhpimarshal.la \ - $(top_builddir)/utils/libopenhpiutils.la \ - @SSL_LIB@ -lm -lpthread + $(top_builddir)/utils/libopenhpiutils.la clean-local: rm -f *~ core core.* Modified: openhpi/trunk/baselibs/Makefile.am =================================================================== --- openhpi/trunk/baselibs/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/baselibs/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -28,7 +28,6 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -AUTOMAKE_OPTIONS = -Wno-portability EXTRA_DIST = $(srcdir)/README \ $(srcdir)/csharp/Makefile \ Modified: openhpi/trunk/clients/hpipower.c =================================================================== --- openhpi/trunk/clients/hpipower.c 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/clients/hpipower.c 2018-02-27 23:41:37 UTC (rev 7748) @@ -234,11 +234,15 @@ Status = saHpiResourcePowerStateGet(SessionId, ComputerPtr->ResID, &PowerState); - if (Status != SA_OK) - { - printf("%s does not support PowerStateGet", - ComputerPtr->NameStr); - } + if (Status == SA_ERR_HPI_CAPABILITY ) { + printf("%s does not support PowerStateGet", + ComputerPtr->NameStr); + } else if (Status == SA_ERR_HPI_INVALID_PARAMS ) { + printf("Invalid params in PowerStateGet" ); + } else if (Status != SA_OK) { + printf("%s error. Not in ON or OFF state?", + ComputerPtr->NameStr); + } /* Print out all of the systems */ printf("%2d) %20s - %s \n\r", (Index + 1), @@ -303,10 +307,16 @@ Status = saHpiResourcePowerStateGet(SessionId, ComputerPtr->ResID, &PowerState); - if (Status != SA_OK) - { - printf("%s does not support PowerStateGet",ComputerPtr->NameStr); - } + if (Status == SA_ERR_HPI_CAPABILITY ) { + printf("%s does not support PowerStateGet", + ComputerPtr->NameStr); + } else if (Status == SA_ERR_HPI_INVALID_PARAMS ) { + printf("Invalid params in PowerStateGet" ); + } else if (Status != SA_OK) { + printf("%s error. Not in ON or OFF state?", + ComputerPtr->NameStr); + } + if (Action == PowerState) { printf("\n%s -- %20s is already powered %s\n",argv[0], @@ -339,11 +349,15 @@ Status = saHpiResourcePowerStateGet(SessionId, ComputerPtr->ResID, &PowerState); - if (Status != SA_OK) - { - printf("%s does not support PowerStateGet", - ComputerPtr->NameStr); - } + if (Status == SA_ERR_HPI_CAPABILITY ) { + printf("%s does not support PowerStateGet", + ComputerPtr->NameStr); + } else if (Status == SA_ERR_HPI_INVALID_PARAMS ) { + printf("Invalid params in PowerStateGet" ); + } else if (Status != SA_OK) { + printf("%s error. Not in ON or OFF state?", + ComputerPtr->NameStr); + } /* Print out Status for this system */ printf("%2d) %20s - %s \n\r", (ComputerPtr->number + 1), Modified: openhpi/trunk/clients/hpixml/Makefile.am =================================================================== --- openhpi/trunk/clients/hpixml/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/clients/hpixml/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -1,8 +1,6 @@ MAINTAINERCLEANFILES = Makefile.in MOSTLYCLEANFILES = @TEST_CLEAN@ -AUTOMAKE_OPTIONS = -Wno-portability subdir-objects - AM_CPPFLAGS = -DG_LOG_DOMAIN=\"hpixml\" AM_CCASFLAGS = -DSCHEMA=\"$(srcdir)/schema.xsd\" Modified: openhpi/trunk/configure.ac =================================================================== --- openhpi/trunk/configure.ac 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/configure.ac 2018-02-27 23:41:37 UTC (rev 7748) @@ -8,7 +8,6 @@ AC_INIT(openhpi, 4.0.0) AC_CONFIG_SRCDIR(openhpi.spec.in) AM_INIT_AUTOMAKE([1.8]) -AC_CONFIG_MACRO_DIR([m4]) AM_CONFIG_HEADER(config.h) AH_TOP([#ifndef __OPENHPI_CONFIG_H @@ -114,16 +113,13 @@ fi exact_version=`pkg-config --modversion $GLIB`; -GLIB_CFLAGS=`pkg-config --cflags $GLIB` -GLIB_LIBS=`pkg-config --libs $GLIB` +GLIB_CFLAGS=`pkg-config --cflags $GLIB $GTHREAD` +GLIB_LIBS=`pkg-config --libs $GLIB $GTHREAD` GLIB_ONLY_CFLAGS=`pkg-config --cflags $GLIB` GLIB_ONLY_LIBS=`pkg-config --libs $GLIB` GMODULE_ONLY_CFLAGS=`pkg-config --cflags $GMODULE` GMODULE_ONLY_LIBS=`pkg-config --libs $GMODULE` -GTHREAD_CFLAGS=`pkg-config --cflags $GTHREAD` -GTHREAD_LIBS=`pkg-config --libs $GTHREAD` - # On some versions of Solaris the pkg-config file for gthread-2.0 contains a # compiler option, '-mt', that is incompatible with gcc case $host_os in @@ -156,8 +152,6 @@ AC_SUBST(GLIB_ONLY_LIBS) AC_SUBST(GMODULE_ONLY_CFLAGS) AC_SUBST(GMODULE_ONLY_LIBS) -AC_SUBST(GTHREAD_CFLAGS) -AC_SUBST(GTHREAD_LIBS) AC_CHECK_LIB([sysfs], [sysfs_get_mnt_path], [have_sysfs=yes]) @@ -749,8 +743,7 @@ AC_SUBST(OPENHPI_INCLUDES) dnl Set up libs that will be linked to -dnl old LIBS="$LIBS $SSL_LIB $GLIB_LIBS -lm -lpthread" GTHREAD_LIBS -LIBS="$LIBS $GLIB_LIBS $GTHREAD_LIBS" +LIBS="$LIBS $SSL_LIB $GLIB_LIBS -lm -lpthread" AC_CHECK_PROG([found_pod2man], [pod2man], [yes]) AC_ARG_ENABLE([man], Modified: openhpi/trunk/cpp/Makefile.am =================================================================== --- openhpi/trunk/cpp/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/cpp/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -77,7 +77,7 @@ pkglib_LTLIBRARIES = libosahpi.la -#libosahpi_la_LIBADD = -luuid +libosahpi_la_LIBADD = -luuid libosahpi_la_SOURCES = oSaHpiAlarm.cpp oSaHpiAlarm.hpp \ oSaHpiAnnouncement.cpp oSaHpiAnnouncement.hpp \ oSaHpiAnnunciatorRec.cpp oSaHpiAnnunciatorRec.hpp \ Modified: openhpi/trunk/hpi_shell/Makefile.am =================================================================== --- openhpi/trunk/hpi_shell/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/hpi_shell/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -1,8 +1,6 @@ .NOTPARALLEL: -AUTOMAKE_OPTIONS = -Wno-portability subdir-objects - MAINTAINERCLEANFILES = Makefile.in MOSTLYCLEANFILES = @TEST_CLEAN@ @@ -16,7 +14,8 @@ -I$(top_srcdir)/marshal \ -I$(top_srcdir)/clients \ -DCLIENT -COMMONLIBS = $(top_builddir)/utils/libopenhpiutils.la \ +COMMONLIBS = $(top_builddir)/transport/libopenhpitransport.la \ + $(top_builddir)/utils/libopenhpiutils.la \ $(top_builddir)/baselib/libopenhpi.la bin_PROGRAMS = hpi_shell Modified: openhpi/trunk/openhpid/Makefile.am =================================================================== --- openhpi/trunk/openhpid/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/openhpid/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -56,7 +56,7 @@ threaded.h libopenhpidaemon_la_LIBADD = $(top_builddir)/utils/libopenhpiutils.la \ - @GMODULE_ONLY_LIBS@ -lm -lpthread + @GMODULE_ONLY_LIBS@ if HAVE_OPENSSL libopenhpidaemon_la_LIBADD += $(top_builddir)/$(SSLDIR)/libopenhpi_ssl.la Modified: openhpi/trunk/plugins/dynamic_simulator/Makefile.am =================================================================== --- openhpi/trunk/plugins/dynamic_simulator/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/plugins/dynamic_simulator/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -127,7 +127,7 @@ thread.h \ thread.cpp -libdyn_simulator_la_LIBADD = -lm -lpthread -lstdc++ $(top_builddir)/utils/libopenhpiutils.la +libdyn_simulator_la_LIBADD = -lm -lstdc++ $(top_builddir)/utils/libopenhpiutils.la libdyn_simulator_la_LDFLAGS= -module -version-info @HPI_LIB_VERSION@ clean-local: Modified: openhpi/trunk/plugins/ilo2_ribcl/Makefile.am =================================================================== --- openhpi/trunk/plugins/ilo2_ribcl/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/plugins/ilo2_ribcl/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -66,7 +66,6 @@ ilo2_ribcl_hotswap.c \ ilo2_ribcl_hotswap.h -libilo2_ribcl_la_LIBADD = @XML2_LIB@ $(top_builddir)/utils/libopenhpiutils.la \ - $(top_builddir)/ssl/libopenhpi_ssl.la +libilo2_ribcl_la_LIBADD = @SSL_LIB@ @XML2_LIB@ $(top_builddir)/utils/libopenhpiutils.la libilo2_ribcl_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ Modified: openhpi/trunk/plugins/ipmi/Makefile.am =================================================================== --- openhpi/trunk/plugins/ipmi/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/plugins/ipmi/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -69,6 +69,6 @@ atca_shelf_fru.c \ ipmi.h -libipmi_la_LIBADD = $(top_builddir)/utils/libopenhpiutils.la -lOpenIPMI -lOpenIPMIposix +libipmi_la_LIBADD = $(top_builddir)/utils/libopenhpiutils.la -lncurses -lOpenIPMI -lOpenIPMIposix @OPENIPMI_LIBS@ #libipmi_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ -export-symbols $(srcdir)/ipmi.sym libipmi_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ -export-dymanic $(srcdir)/ipmi.sym Modified: openhpi/trunk/plugins/ipmidirect/Makefile.am =================================================================== --- openhpi/trunk/plugins/ipmidirect/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/plugins/ipmidirect/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -122,7 +122,7 @@ thread.h \ thread.cpp -libipmidirect_la_LIBADD = @CRYPTO_LIB@ -lm -lpthread -lstdc++ $(top_builddir)/utils/libopenhpiutils.la +libipmidirect_la_LIBADD = @CRYPTO_LIB@ -lm -lstdc++ $(top_builddir)/utils/libopenhpiutils.la libipmidirect_la_LDFLAGS= -module -version-info @HPI_LIB_VERSION@ clean-local: Modified: openhpi/trunk/plugins/oa_soap/Makefile.am =================================================================== --- openhpi/trunk/plugins/oa_soap/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/plugins/oa_soap/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -96,7 +96,6 @@ oa_soap_callsupport.c # TODO: What about -luuid in the ilo2_ribcl? -liboa_soap_la_LIBADD = @XML2_LIB@ -lm -lpthread \ - $(top_builddir)/utils/libopenhpiutils.la \ - $(top_builddir)/ssl/libopenhpi_ssl.la +liboa_soap_la_LIBADD = @SSL_LIB@ @XML2_LIB@ \ + $(top_builddir)/utils/libopenhpiutils.la liboa_soap_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ Modified: openhpi/trunk/plugins/oa_soap/oa_soap_inventory.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_inventory.c 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/plugins/oa_soap/oa_soap_inventory.c 2018-02-27 23:41:37 UTC (rev 7748) @@ -6143,7 +6143,6 @@ } wrap_g_free(inventory->comment); - wrap_g_free(inventory); return SA_OK; } Modified: openhpi/trunk/plugins/oa_soap/oa_soap_utils.c =================================================================== --- openhpi/trunk/plugins/oa_soap/oa_soap_utils.c 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/plugins/oa_soap/oa_soap_utils.c 2018-02-27 23:41:37 UTC (rev 7748) @@ -703,7 +703,7 @@ wrap_g_mutex_lock(oa->mutex); rv = soap_getOaStatus(con, &status, &status_response); if (rv != SOAP_OK) { - err("Get OA status call failed"); + err("Get OA status call failed for OA IP %s ", oa->server); wrap_g_mutex_unlock(oa->mutex); return SA_ERR_HPI_INTERNAL_ERROR; } @@ -718,7 +718,7 @@ oa_soap_sleep_in_loop(oa_handler, OA_STABILIZE_MAX_TIME); rv = soap_getOaStatus(con, &status, &status_response); if (rv != SOAP_OK) { - err("Get OA status call failed"); + err("Get OA status call failed for OA IP %s ", oa->server); wrap_g_mutex_unlock(oa->mutex); return SA_ERR_HPI_INTERNAL_ERROR; } Modified: openhpi/trunk/plugins/slave/Makefile.am =================================================================== --- openhpi/trunk/plugins/slave/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/plugins/slave/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -36,6 +36,5 @@ util.h libslave_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ -libslave_la_LIBADD = @GMODULE_ONLY_LIBS@ -lm \ - $(top_builddir)/utils/libopenhpiutils.la +libslave_la_LIBADD = @GMODULE_ONLY_LIBS@ Modified: openhpi/trunk/plugins/snmp_bc/Makefile.am =================================================================== --- openhpi/trunk/plugins/snmp_bc/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/plugins/snmp_bc/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -83,7 +83,7 @@ snmp_bc_xml2event.c nodist_libsnmp_bc_la_SOURCES = $(GENERATED_EVENT_CODE) -libsnmp_bc_la_LIBADD = -luuid -lnetsnmp $(SNMPUTILBDIR)/libopenhpi_snmp.la $(top_builddir)/utils/libopenhpiutils.la +libsnmp_bc_la_LIBADD = -luuid @SNMPLIBS@ $(SNMPUTILBDIR)/libopenhpi_snmp.la $(top_builddir)/utils/libopenhpiutils.la libsnmp_bc_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ #libsnmp_bc_la_LDFLAGS = -module -avoid-version Modified: openhpi/trunk/plugins/snmp_bc/t/Makefile.am =================================================================== --- openhpi/trunk/plugins/snmp_bc/t/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/plugins/snmp_bc/t/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -13,8 +13,6 @@ GENERATED_EVENT_CODE = el2event.c GENERATED_CODE = $(GENERATED_EVENT_XML_MAP) $(GENERATED_EVENT_CODE) -AUTOMAKE_OPTIONS = -Wno-portability - REMOTE_SIM_SOURCES = \ snmp_bc.c \ snmp_bc_annunciator.c \ Modified: openhpi/trunk/plugins/test_agent/Makefile.am =================================================================== --- openhpi/trunk/plugins/test_agent/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/plugins/test_agent/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -77,5 +77,5 @@ watchdog.h libtest_agent_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ -libtest_agent_la_LIBADD = -lm -lpthread $(top_builddir)/utils/libopenhpiutils.la +libtest_agent_la_LIBADD = @GMODULE_ONLY_LIBS@ Modified: openhpi/trunk/plugins/watchdog/Makefile.am =================================================================== --- openhpi/trunk/plugins/watchdog/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/plugins/watchdog/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -38,5 +38,5 @@ pkglib_LTLIBRARIES = libwatchdog.la libwatchdog_la_SOURCES = watchdog.c -libwatchdog_la_LIBADD = $(top_builddir)/utils/libopenhpiutils.la -lpthread +libwatchdog_la_LIBADD = $(top_builddir)/utils/libopenhpiutils.la libwatchdog_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@ Modified: openhpi/trunk/scripts/test/Makefile.am =================================================================== --- openhpi/trunk/scripts/test/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/scripts/test/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -29,8 +29,6 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -AUTOMAKE_OPTIONS = -Wno-portability - REPORTDIR = report_html CONFORMDIR = conform_html SERVER = shell1.sf.net Modified: openhpi/trunk/ssl/Makefile.am =================================================================== --- openhpi/trunk/ssl/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/ssl/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -19,6 +19,5 @@ libopenhpi_ssl_la_SOURCES = oh_ssl.c oh_ssl.h libopenhpi_ssl_la_LDFLAGS = -version-info @HPI_LIB_VERSION@ -libopenhpi_ssl_la_LIBADD = @CRYPTO_LIB@ $(top_builddir)/utils/libopenhpiutils.la \ - -lssl -lpthread -lm +libopenhpi_ssl_la_LIBADD = @CRYPTO_LIB@ Modified: openhpi/trunk/transport/Makefile.am =================================================================== --- openhpi/trunk/transport/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/transport/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -22,7 +22,7 @@ AM_CPPFLAGS += @OPENHPI_INCLUDES@ # just to clear LIBS -# LIBS = +LIBS = # marshal and connection used by the daemon and client library lib_LTLIBRARIES = libopenhpitransport.la @@ -32,7 +32,6 @@ strmsock.h libopenhpitransport_la_LDFLAGS= -version-info @HPI_LIB_VERSION@ -# libopenhpitransport_la_LIBADD= @GTHREAD_LIBS@ clean-local: rm -f *~ core core.* Modified: openhpi/trunk/utils/Makefile.am =================================================================== --- openhpi/trunk/utils/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/utils/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -94,7 +94,7 @@ uid_utils.h libopenhpiutils_la_LDFLAGS = -version-info @HPI_LIB_VERSION@ -libopenhpiutils_la_LIBADD = @GCRYPT_LIB@ @SSL_LIB@ -lm -lpthread +libopenhpiutils_la_LIBADD = @GCRYPT_LIB@ # FIXME:: Add when we can auto-generate files for SMP systems #$(GENERATED_FILES): $(top_srcdir)/include/SaHpi.h $(top_srcdir)/scripts/SaHpi2code.pl Modified: openhpi/trunk/utils/t/ann/Makefile.am =================================================================== --- openhpi/trunk/utils/t/ann/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/utils/t/ann/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -8,8 +8,6 @@ # the Copying file included with the OpenHPI distribution for # full licensing terms. -AUTOMAKE_OPTIONS = -Wno-portability - MAINTAINERCLEANFILES = Makefile.in REMOTE_SOURCES = announcement_utils.c \ Modified: openhpi/trunk/utils/t/el/Makefile.am =================================================================== --- openhpi/trunk/utils/t/el/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/utils/t/el/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -10,8 +10,6 @@ MAINTAINERCLEANFILES = Makefile.in -AUTOMAKE_OPTIONS = -Wno-portability - REMOTE_SOURCES = announcement_utils.c \ el_utils.c \ epath_utils.c \ Modified: openhpi/trunk/utils/t/uid/Makefile.am =================================================================== --- openhpi/trunk/utils/t/uid/Makefile.am 2018-02-16 23:26:49 UTC (rev 7747) +++ openhpi/trunk/utils/t/uid/Makefile.am 2018-02-27 23:41:37 UTC (rev 7748) @@ -10,8 +10,6 @@ MAINTAINERCLEANFILES = Makefile.in -AUTOMAKE_OPTIONS = -Wno-portability - REMOTE_SOURCES = uid_utils.c \ epath_utils.c \ sahpi_enum_utils.c \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dr_...@us...> - 2018-03-09 01:43:45
|
Revision: 7758 http://sourceforge.net/p/openhpi/code/7758 Author: dr_mohan Date: 2018-03-09 01:43:41 +0000 (Fri, 09 Mar 2018) Log Message: ----------- Merge 3.8.x branch changes to trunk Modified Paths: -------------- openhpi/trunk/ChangeLog openhpi/trunk/plugins/ov_rest/ov_rest.h openhpi/trunk/plugins/ov_rest/ov_rest_callsupport.c openhpi/trunk/plugins/ov_rest/ov_rest_discover.c Property Changed: ---------------- openhpi/trunk/ Index: openhpi/trunk =================================================================== --- openhpi/trunk 2018-03-08 19:24:57 UTC (rev 7757) +++ openhpi/trunk 2018-03-09 01:43:41 UTC (rev 7758) Property changes on: openhpi/trunk ___________________________________________________________________ Modified: svn:mergeinfo ## -1 +1 ## -/openhpi/branches/3.8.x:7743-7747 \ No newline at end of property +/openhpi/branches/3.8.x:7743-7747,7750-7757 \ No newline at end of property Modified: openhpi/trunk/ChangeLog =================================================================== --- openhpi/trunk/ChangeLog 2018-03-08 19:24:57 UTC (rev 7757) +++ openhpi/trunk/ChangeLog 2018-03-09 01:43:41 UTC (rev 7758) @@ -1,3 +1,112 @@ +Changelog for 3.8.0 (03/01/2018) + + New Features + + Fixed Bugs + + Build System + + 1995 - make distcheck fails + + 1978 - Compile fails on glib<2.32 version + + 1976 - Configure error when json-c-devel not included + + 1974 - Remove the warnings from build + + 1968 - Bring in build changes from debian build + + 1967 - SNMP build fails on debian + + HP ProLiant plugin + + 1962 - ilo2_ribcl plugin fails to run against Gen10 + + HP c-Class Plugin + + 1996 - Segmentation fault in oa_soap plugin during resource inventory cleaning + + 1991 - Fix the infinite loop in soap_enum when the string length is 0 + + 1960 - openhpid process is consuming more than 10G + + HPE Synergy plugin + + 1999 - Handle the error code from Synergy composer + + 1990 - ov_rest cert path is not getting created + + 1987 - Alert fields reorder leads to segfault + + 1986 - Increase the X-Api-Version to 600 + + 1985 - Fix compile error in ov_rest_discover.c + + 1984 - handle case DISCOVERY_FAILED in ov_rest_discover_resources + + 1983 - Appliance and Composer resources have few wrong Capabilities + + 1982 - Session id expires if no activity in a day + + 1979 - Do not add Rack Mount Server to Synergy Enclosure + + 1975 - Synergy blade added as rack mount server + + 1964 - Handle important composer events + + 1961 - CRIT messages seen on running openhpid. + + 1959 - Create one RPT per composer + + 1956 - SuSE12 compile warnings - return value not handled + + 1953 - URI field for Synergy composer is missing. + + 1951 - Warning messages see during make on SuSE 12 + + 1950 - CRIT messages could be handled better + + 1946 - Handle task Reset for Interconnects. + + 1945 - Alerts and Tasks not registered + + 1943 - FirmwareMajorRev&FirmwareMinorRev is zero for Synergy Composer and Enclosure. + + 1942 - Manufacturer is missing for Synergy Fan Module and Power Supply. + + 1941 - Product version is null for Enclosures. + + 1937 - oem_event log file needs to be created afresh every time + + HPI Clients + + 1994 - hpipower client gives wrong error message + + HPI Shell + + 1920 - Remove useless addcfg command from hpi_shell + + HPI Utils + + 1980 - Continue with message, if uid_map file creation fails + + IPMI Direct plugin + + 1970 - Replace __STRING + + 1969 - Use PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP if libc defines it + + 1966 - Make the ipmi build to work with gcc-7 + + OpenHPI Daemon + + 1981 - Configure gives an error on RHEL65 + + OpenHPI base library + + 1977 - Coverity Scan detects several issues + + Changelog for 3.7.0 (05/26/2017) New Features Modified: openhpi/trunk/plugins/ov_rest/ov_rest.h =================================================================== --- openhpi/trunk/plugins/ov_rest/ov_rest.h 2018-03-08 19:24:57 UTC (rev 7757) +++ openhpi/trunk/plugins/ov_rest/ov_rest.h 2018-03-09 01:43:41 UTC (rev 7758) @@ -148,6 +148,7 @@ SaHpiInt32T max_current_enclosure_count; SaHpiInt32T current_rms_count; SaHpiInt32T max_current_rms_count; + SaHpiInt32T discover_called_count; GHashTable *uri_rid; struct cert { char fCaRoot[15]; Modified: openhpi/trunk/plugins/ov_rest/ov_rest_callsupport.c =================================================================== --- openhpi/trunk/plugins/ov_rest/ov_rest_callsupport.c 2018-03-08 19:24:57 UTC (rev 7757) +++ openhpi/trunk/plugins/ov_rest/ov_rest_callsupport.c 2018-03-09 01:43:41 UTC (rev 7758) @@ -300,6 +300,7 @@ struct ov_rest_handler *ov_handler = (struct ov_rest_handler *) handler->data; + ov_handler->discover_called_count = 0; con = (REST_CON *) ov_handler->connection; /* Get the Active OV hostname/IP address and check whether it's NULL */ Modified: openhpi/trunk/plugins/ov_rest/ov_rest_discover.c =================================================================== --- openhpi/trunk/plugins/ov_rest/ov_rest_discover.c 2018-03-08 19:24:57 UTC (rev 7757) +++ openhpi/trunk/plugins/ov_rest/ov_rest_discover.c 2018-03-09 01:43:41 UTC (rev 7758) @@ -1552,6 +1552,7 @@ { SaErrorT rv = SA_OK; OV_STRING s = {0}; + const char *ecode = NULL; /* struct timeoutResponse response = {0}; */ /* json_object *timeoutResponse = NULL; */ struct curl_slist *chunk = NULL; @@ -1569,7 +1570,15 @@ ov_rest_prn_json_obj(key, val); if(!strcmp(key,"idleTimeout")) to->timeout = json_object_get_int(val); + if(!strcmp(key,"errorCode")) + ecode = json_object_get_string(val); } + + if (ecode != NULL || to->timeout == 0) { + CRIT("Session error %s or timeout=%d", ecode, to->timeout); + rv = SA_ERR_HPI_INTERNAL_ERROR; + } + wrap_free(s.ptr); ov_rest_wrap_json_object_put(s.jobj); wrap_g_free(ov_handler->connection->url); @@ -1614,6 +1623,7 @@ struct oh_handler_state *handler = NULL; struct ov_rest_handler *ov_handler = NULL; struct idleTimeout sess_timeout = {0}; + static int mtl = 480; /* Max timeout loops 86400000/(1000*60*3) */ handler = (struct oh_handler_state *) oh_handler; ov_handler = (struct ov_rest_handler *) handler->data; @@ -1645,13 +1655,14 @@ } break; case DISCOVERY_FAIL: - err("Re-discovery, after failure, for OneView %s", + err("Re-discovery, after failure, for Synergy %s", ov_handler->connection->hostname); rv = ov_rest_connection_init(handler); - if(rv != SA_OK){ + if(rv != SA_OK) { err("Please check whether the Synergy " "Composer %s is accessible", ov_handler->connection->hostname); + wrap_g_mutex_unlock(ov_handler->mutex); return rv; } rv = ov_rest_re_discover_resources(handler); @@ -1669,15 +1680,29 @@ dbg("Discovery already done"); /* Call a function to keep the session alive */ rv = ov_rest_session_timeout(ov_handler,&sess_timeout); - if ( rv != SA_OK) { - err("Session is Not Alive. No idleTimeout"); - ov_handler->status = DISCOVERY_FAIL; + if (( ov_handler->discover_called_count == 0 ) && + ( sess_timeout.timeout != 0 )) { + mtl = sess_timeout.timeout/(1000*60*3); + dbg("idleTimeout=%d and max loops=%d", + sess_timeout.timeout, mtl); + } + if (( rv == SA_OK ) && + ( ov_handler->discover_called_count < mtl-3 )) { + ov_handler->discover_called_count++; wrap_g_mutex_unlock(ov_handler->mutex); return rv; } - dbg("Session Idle Timeout is %d", sess_timeout.timeout); + rv = ov_rest_connection_init(handler); + if(rv != SA_OK){ + err("Please check whether the Synergy " + "Composer %s is accessible", + ov_handler->connection->hostname); + wrap_g_mutex_unlock(ov_handler->mutex); + return rv; + } wrap_g_mutex_unlock(ov_handler->mutex); - return SA_OK; + return rv; + default: err("Wrong ov_rest handler state %d detected", ov_handler->status); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |