Hi Michael,
no, I was referring to a patch to bug #3013166  saHpiInitialize and
versioncompatibility.
And I now see, it was not on the openhpi-devel list but on the tracker
only. Sorry.

Anton had asked me to commit the patch. So I tried to do it. 

Here it is again:

--- orig/include/oHpi.h 2010-06-09 12:18:34.000000000 +0200
+++ patched/include/oHpi.h      2010-06-09 12:19:00.000000000 +0200
@@ -23,6 +23,9 @@
 #define OPENHPI_DEFAULT_DAEMON_PORT 4743
 #define MAX_PLUGIN_NAME_LENGTH 32
 
+#define OH_SAHPI_INTERFACE_VERSION_MIN_SUPPORTED
(SaHpiVersionT)0x020101 /* B.01.01 */
+#define OH_SAHPI_INTERFACE_VERSION_MAX_SUPPORTED
SAHPI_INTERFACE_VERSION
+
 typedef SaHpiUint32T oHpiHandlerIdT;
 
 typedef struct {
--- orig/baselib/oh_client.cpp  2010-06-09 12:30:48.000000000 +0200
+++ patched/baselib/oh_client.cpp       2010-06-09 12:29:25.000000000
+0200
@@ -146,7 +146,8 @@
         SAHPI_OUT   SaHpiUint32T     *FailedOption,
         SAHPI_OUT   SaErrorT         *OptionError)
 {
-        if ( RequestedVersion != SAHPI_INTERFACE_VERSION ) {
+        if ( RequestedVersion <
OH_SAHPI_INTERFACE_VERSION_MIN_SUPPORTED ) ||
+           ( RequestedVersion >
OH_SAHPI_INTERFACE_VERSION_MAX_SUPPORTED ) {
             return SA_ERR_HPI_UNSUPPORTED_API;
         }
         if ( ( NumOptions != 0 ) && ( Options == NULL ) ) {


Cheers,
Uli


> -----Original Message-----
> From: ext Bishop, Michael (ISB Linux/Telco) 
> [mailto:[email protected]] 
> Sent: Thursday, June 10, 2010 5:49 PM
> To: Kleber, Ulrich (NSN - DE/Munich)
> Cc: [email protected]
> Subject: RE: Openhpi project development
> 
> > Sure.
> > The first patch that I tried is already on the devel list.
> 
> Uli -
> 
> Is this the hpitop.pod.1 attachment (sent earlier) that you 
> are referring to?
> 
> --michael
> 

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel

Reply via email to