|
From: Jim M. <Jam...@Su...> - 2001-11-29 22:44:35
|
Hello,
I am looking at adding a port to the SBLIM NPI so that it will work
with the Sun WBEM Services (and our open source one), but I've hit a
couple of problems which I would like some information on. I am using
npi 0.9.2 and using the Sun 'cc' compiler (version 5.3), I've hit two
problems in npi.h, in there there is the following enum
typedef enum {
CIM_INTEGER,
CIM_STRING,
CIM_REF,
} CIMType;
Notice the ',' after "CIM_REF" - this causes a compile warning with the
Sun cc compiler ('Expected identifier instead of "}"')
Additionally the METHOD_STRUCT causes lots of "String literal converted
to char* in initialization" because the 'methodName' and 'Signature'
members are declared as 'char*' and not 'const char*'.
Lastly in the sample C provider the 'createInstance' function calls
"CIMObjectPathNew" passing the CIMInstance as the second parameter - the
Sun cc compiler complains because that function expects a char* as the
second parameter. Shouldn't this be calling 'CIMObjectPathFromCIMInstance'?
The main question I have, is if I make the above changes, would this
adversely affect the other implementations in any way? I can work
around these, but figured I'd ask if it would be ok to modify them.
Thanks
-Jim
|