Commit Graph

11 Commits

Author SHA1 Message Date
Stefan Schmidt d13ca5705f eeze/sensor: Fix leaks when getting allocated data from obj_get
SVN revision: 80882
2012-12-13 15:54:29 +00:00
Stefan Schmidt 77b2e63002 eeze/sensor: Add more documentation and comment the code.
SVN revision: 80861
2012-12-13 14:17:14 +00:00
Stefan Schmidt 1e8dc19715 eeze/sensor: Break out from the read if the sensor object is NULL
Better handle this error case. Spotted by some unit tests updates.

SVN revision: 80671
2012-12-11 16:48:43 +00:00
Stefan Schmidt 083434f695 eeze: Make sure we use the modules from the current build for make check.
Befoe this we always used the installed modules from the system. That is often
fine but there are cases we would need the local. un-installed, modules. The
coverage check is a example. The system modules normally don't had the options
for coverage enabled and thus would not produce anything for the modules.

Default still stays as it was. You would need to set an env var to use the
local modules.

SVN revision: 80670
2012-12-11 16:48:39 +00:00
Stefan Schmidt a3269e66fe eeze/doc: Notes about init and shutdown of the sensor subsystem.
Make both functions and EAPI as well. Not needed if the general eeze_init
is called though. Note that in the docs.

SVN revision: 80072
2012-12-03 14:45:14 +00:00
Stefan Schmidt 7032a54a09 eeze/sensor: Fix big memleak that happened on every eeze use.
Really free the list with sensor modules when shutting down. No idea how I
dropped that as I found it in one old local version I had. Thanks to Mike
for the notice and valgrind for the tooling.

Also make sure we don't corrupt the list before we can free it.

SVN revision: 77291
2012-10-02 08:47:54 +00:00
Stefan Schmidt 13110e7610 eeze/sensor: Free the hash table on shutdown. Leak--
Some bigger leak is still going on there with the module unloading. I swear that
was all non-leaking before. I had valgrind on it. :)

SVN revision: 77290
2012-10-02 08:47:50 +00:00
Stefan Schmidt 0d2fcf9837 eeze/sensor: Update documentation.
Updating the docs in the header as well as some more comments in the code itself.

SVN revision: 77289
2012-10-02 08:47:45 +00:00
Stefan Schmidt c35df67148 eeze/sensor: Finally get right of eeze_sensor_handle_get
No longer needed as it only contains the modules information that will be
used in the eeze_sensor core. All other important bits have found new homes
in other data structures.

SVN revision: 76969
2012-09-21 14:56:40 +00:00
Stefan Schmidt 63c3e6cc3c eeze/sensor: Fail if we can't find the sensor object.
We might have asked for a sensor that is not supported on this device. Let
the application know about this.

SVN revision: 76917
2012-09-20 15:46:34 +00:00
Stefan Schmidt 535ef37087 eeze: Add sensor API
Extend eeze to read out sensor data from various sources with a simple API to
access for application developers. The sensor backends are eina modules. For
now we support a tizen module as well as a fake module for testing.

Modules for plain sysfs on a desktop or other sensor frameworks could get
integrated.

The api is not fixed until 1.8 is out so let me know what you think. Having
small wrappers for all kind of infos like eeze_sensor_light_get or
eeze_sensor_proximity_get are possible but I did not want to bloat the api
from the beginning.

SVN revision: 76825
2012-09-18 14:14:48 +00:00