ack, with one comment, the BYREF for attrValues has to be kept, I'll change 
that and push the change. /BR Hans

-----Original Message-----
From: Carl Johannesson 
Sent: den 6 november 2013 10:59
To: Hans Nordebäck
Cc: opensaf-devel@lists.sourceforge.net
Subject: [PATCH 1 of 1] immoi/pyosaf: Fix saImmOi.py [#615]

 python/pyosaf/saImmOi.py |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


The saImmOiRtObjectCreate_2 method is incorrectly declared, making it 
impossible to create runtime objects.

diff --git a/python/pyosaf/saImmOi.py b/python/pyosaf/saImmOi.py
--- a/python/pyosaf/saImmOi.py
+++ b/python/pyosaf/saImmOi.py
@@ -286,7 +286,7 @@ def saImmOiRtObjectCreate_2(immOiHandle,
                SaImmOiHandleT immOiHandle
                SaImmClassNameT className
                SaNameT parentName
-               SaImmAttrValuesT_2 attrValues
+               SaImmAttrValuesT_2** attrValues
 
        returns:
                SaAisErrorT
@@ -296,14 +296,14 @@ def saImmOiRtObjectCreate_2(immOiHandle,
        oidll.saImmOiRtObjectCreate_2.argtypes = [SaImmOiHandleT,
                                                                                
          SaImmClassNameT,
                                                                                
          POINTER(SaNameT),
-                                                                               
          POINTER(SaImmAttrValuesT_2)]
+                                                                               
          POINTER(POINTER(SaImmAttrValuesT_2))]
        
        oidll.saImmOiRtObjectCreate_2.restype = SaAisErrorT
-       
+
        return oidll.saImmOiRtObjectCreate_2(immOiHandle,
                        className,
                        BYREF(parentName),
-                       BYREF(attrValues))
+                       attrValues)
 
 def saImmOiRtObjectDelete(immOiHandle, objectName):
        """Delete object and subtree rooted at that object.

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to