summaryrefslogtreecommitdiffstats
path: root/src/openlmi.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix incorrect array length when reading provider config optionsRadek Novacek2014-03-251-1/+2
| | | | | Use NULL terminated array instead of obtaining array length using sizeof (which doesn't work in this case).
* Updated copyright yearsPeter Schiffer2014-01-161-1/+1
| | | | Updated copyright years to include new year 2014.
* Add lmi_get_computer_system function and fix lmi_get_system_nameRadek Novacek2013-10-311-3/+20
| | | | | | | | | | | | | | PG_ComputerSystem has different method how to get hostname than our providers. In order to create the associations to this class we need to enumerate it. The downside is that all providers must supply CMPIContext to the lmi_init function. New function lmi_get_computer_system returns CMPIObjectPath to the configured CIM_ComputerSystem subclass instance. This object should be used in all references with ComputerSystem. Function lmi_get_system_name has been altered to return same value as ComputerSystem "Name" property.
* Improve logging in C providersRadek Novacek2013-09-191-2/+21
| | | | | | | | | Use CMLogMessage instead of CMTraceMessage for each message with level > ERROR. The logging level is now read from the config file. The Stderr option for logging to stderr in now also honored.
* Introduce toplevel openlmi config fileRadek Novacek2013-09-181-0/+35
| | | | | | | | | | | | | Toplevel openlmi configuration file (/etc/openlmi/openlmi.conf) now contains common configuration options for all providers. Configuration for each provider could be overriden in provider-specific config (/etc/openlmi/$provider/$provider.conf). This patch also modify config file handling in python providers to include this config file. There is also support for C providers (in libopenlmicommon) for reading these config files and providing default configuration options.
* Add ReturnInstance macro to be used instead of KReturnInstanceRadek Novacek2013-05-161-0/+10
| | | | | | | | KReturnInstance macro calls return directly on failure which is bad because there is no possibility to do cleanups or other error handling. ReturnInstance macro returns plain boolean to indicate if the instance is returned properly.
* Support for using libopenlmicommon by external providersRadek Novacek2013-04-171-0/+80
* add FindOpenLMI.cmake module * add pkgconfig for OpenLMI * add openlmi.c/h with exported functions * add symlink with major version to openlmicommon library Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=948948