Hello,

Currently, the iterator created to read the sensors deduces if the SDRs 
should be read from repository by looking at the device capabilities. 
Then the global variable use_built_in is set and is used by all the 
other sdr functions.

Unfortunately, I need to read the built-in sensors *even* if the 
repository exists (because the repository is empty). I think about 
passing an extra parameter to ipmi_sdr_start() to ask for using built-in 
sensors. If use_builtin=0, it would be deduced as for now. If 
use_builtin=1 it would not use the repository even if available. The 
information would be stored in the iterator for the next iterations. The 
remaining question is if the global variable should be kept or not.


struct ipmi_sdr_iterator *
ipmi_sdr_start(struct ipmi_intf *intf, int use_builtin);


What do you think?

Thanks,

-- 
BenoƮt Guillon                [EMAIL PROTECTED]
TCT/3S                        tel. : 33 (0)4 98 16 33 90
 
THALES COMPUTERS


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to