|
From: Jim M. <Jam...@Su...> - 2001-12-11 23:32:32
|
Hello, I have a version of SBLIM compiled for the wbem services project. I haven't fully tested it yet but am working on it. I was wondering if someone with a SNIA cimom could try to compile my changes? I don't have a SNIA cimom, and I don't think I have enough time to get a copy and test it. In trying to keep a single NPITool.cpp file I made a small change in the SNIA 'NativeProvider.java', I don't think this should affect anything. The 'NativeProvider.java' contained two native methods called 'enumInstances', I modified one of these to be 'enumInstanceNames', I also updated the 'enumerateInstanceNames' function to call this function. I did this so that we could easily have a single copy of the NPITool.cpp. By having two functions with same name, differentiated only by parameters, the 'javah' tool generates a function name which contains the parameter types, which caused a function naming problem when dealing with the WBEM Services and SNIA stuff. After making this minor change the only difference between my (Sun's) version of NPITool.cpp and the SNIA version is the Java classes which are cached (javax.wbem... in suns case, org.snia... in the SNIA case). I worked around this by using a #define. If "_WBEM_SERVICES_CIMOM_" is defined during compilation then the 'javax' classes are used, otherwise the SNIA ones are. Lastly I created a new directory 'npitool' which NPITool.cpp now resides in. The SNIA makefile was updated to reflect this - which is why I need it tested. I can send you a tar/gzip of the npi0.9.3 tree I made. Thanks -Jim Sun Microsystems |