summaryrefslogtreecommitdiffstats
path: root/src/openlmi.c
Commit message (Collapse)AuthorAgeFilesLines
* Add missing pthread.h inclusionRadek Novacek2014-04-091-0/+1
|
* Fix incorrect array length when reading provider config optionsRadek Novacek2014-03-251-29/+18
| | | | | 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.
* Plug some memory leaksTomas Bzatek2013-11-211-1/+4
|
* Work around Pegasus destroying threads _after_ unloading provider dynamic ↵Jan Safranek2013-11-011-0/+15
| | | | library.
* Add lmi_get_computer_system function and fix lmi_get_system_nameRadek Novacek2013-10-311-51/+69
| | | | | | | | | | | | | | 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.
* Use PG_ComputerSystem by default.Jan Safranek2013-10-091-3/+3
| | | | | | | And get rid of sblim-cmpi-base dependency. It would be nice if our tests have an option to select Linux_ComputerSystem or PG_ComputerSystem in the future...
* parse_config: Don't reuse already initialized GError structTomas Bzatek2013-10-091-2/+4
| | | | | | | | | | Setting an error on top of an existing error is considered a programmer's bug, possibly leaking memory. So do proper cleanup before reusing that variable. Also, errors set while retrieving keys and values are not checked anywhere so let's just don't set them. Returned NULL values in case of error should be enough to skip the particular value.
* Improve logging in C providersRadek Novacek2013-09-191-9/+68
| | | | | | | | | 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-7/+153
| | | | | | | | | | | | | 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.
* Fix _lmi_debugJan Synacek2013-07-151-1/+1
| | | | INFO and WARNING debug levels are swapped.
* Handle error cases properly in getFQDN functionRadek Novacek2013-05-161-2/+14
|
* Support for using libopenlmicommon by external providersRadek Novacek2013-04-171-0/+139
* 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