Commit Graph

250 Commits

Author SHA1 Message Date
Stefan Schmidt cea45580e0 eeze/sensor: Remove handle_get() test for Eeze_Sensor as it gone from the code.
SVN revision: 77318
2012-10-02 12:53:48 +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 ae81bcdcd5 eeze/sensor: Fix fake module to set timestamp to microseconds since epoch.
Seconds is not really a suitable resolution for sensor data read outs. This
also aligns it with the tizen module and the public API.
The sleep is no longer needed in the test program either.

SVN revision: 77191
2012-09-28 09:10:47 +00:00
Stefan Schmidt c7d300cae3 eeze/sensor: Make the Eeze_Sensor struct private.
All data for the public API have moved into other data structures. This one
is only needed for internal housekeeping now. Thus move it into the pivate
header file so it does not confuse people.

SVN revision: 77190
2012-09-28 09:10:43 +00:00
Stefan Schmidt 8ca073ed14 eeze/sensor: Update eeze sensor docs.
Mostly typo fixes and hopefully clarify some things.

SVN revision: 77189
2012-09-28 09:10:40 +00:00
Rui Seabra 6ac749104c Correct fix.
SVN revision: 77022
2012-09-23 13:28:06 +00:00
Rui Seabra 0ec3384720 * Add support to eeze_sensor lib in the spec
* Fix dist build by including a header file
 * svn:ignore on .deps, Makefile and on modules and tests.

SVN revision: 77021
2012-09-23 12:17:22 +00:00
Stefan Schmidt 5dc29874f1 eeze/sensor: Fill in more properties in the tizen plugin.
Fill in timestamp values where provided and adjust accuracy to -1 if
undefined. 0 means bad accuracy here.

SVN revision: 76970
2012-09-21 14:56:47 +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 33e20cf2a0 eeze/sensor: Be more failure tolerant in example.
If the sensor does not exist we should not ask for its properties.

SVN revision: 76918
2012-09-20 15:46:36 +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 dede039b35 eeze/tests: Fix test for sensor events.
Inject the event by hand to test the code pathes handling a sensor event coming in.

SVN revision: 76916
2012-09-20 15:46:04 +00:00
Stefan Schmidt 3a8be0b07a eeze/tests: Cover private eeze functions as well.
SVN revision: 76915
2012-09-20 15:45:59 +00:00
Stefan Schmidt a36ed3dc82 eeze/sensor: Adjust tizen module to API changes.
SVN revision: 76866
2012-09-19 13:36:17 +00:00
Stefan Schmidt ccde4dce02 eeze/sensor: Wehn using sleep() we should include the header for declaration
SVN revision: 76865
2012-09-19 13:34:57 +00:00
Stefan Schmidt eaa278444c eeze/tests: Cover more eeze_sensor functions
Also start with testing for some error pathes by giving in wrong values.

SVN revision: 76857
2012-09-19 12:41:31 +00:00
Stefan Schmidt 087937b7f3 eeze/sensor: Init Eeze_Sensor_Obj to NULL
Without this the object get might fail but our NULL check would not trigger.

SVN revision: 76856
2012-09-19 12:41:23 +00:00
Stefan Schmidt 0b753f3e33 eeze: Introduce modules directory and place eeze_sensor modules into it.
More like other efl libs and maybe we have more modules for eeze later on.

SVN revision: 76847
2012-09-19 09:19:23 +00:00
Stefan Schmidt 58014e6fd2 eeze/tests: Also cover this part of the api in the unit tests
SVN revision: 76831
2012-09-18 14:29:28 +00:00
Stefan Schmidt 849502a832 eeze: Add basic test infrastructure and unit tests
SVN revision: 76828
2012-09-18 14:14:59 +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

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
Carsten Haitzler 0e77364887 update header #defined versions to 1.8 to make sure new apis are used
in e17 only with ifdefs.

SVN revision: 75994
2012-09-03 09:55:34 +00:00
Carsten Haitzler 1475fb3586 update @version's
SVN revision: 75739
2012-08-27 09:51:57 +00:00
Carsten Haitzler aef32ed6d3 more updates for 1.7.0 alpha.
SVN revision: 75095
2012-08-10 10:51:17 +00:00
Mike Blumenkrantz 917ce85269 revert remaining broken/wrong mount timeout behavior added recently
SVN revision: 74785
2012-08-02 07:06:31 +00:00
Mike Blumenkrantz e0cec4d456 use new ecore fdh function and finally fix eeze mounting without mtab
SVN revision: 74784
2012-08-02 07:06:03 +00:00
Mike Blumenkrantz d890c977ff set NONBLOCK on /proc/self/mountinfo file descriptor
SVN revision: 74738
2012-08-01 13:32:38 +00:00
Mike Blumenkrantz f782172e5a if disk error has already occurred, delete check timer
SVN revision: 74737
2012-08-01 12:53:56 +00:00
Mike Blumenkrantz 52c05aaa01 eeze mount operations will now only retry up to 3 times when they fail before emitting an error event
SVN revision: 74736
2012-08-01 12:43:55 +00:00
Mike Blumenkrantz ba567e440e add EEZE_DISK_MOUNTOPT_NODEV
yes, I realize we're in a freeze, but this is trivial and important

SVN revision: 74564
2012-07-30 09:49:05 +00:00
Mike Blumenkrantz d995e25c80 never attempt to use disk label for mounting
SVN revision: 74563
2012-07-30 09:10:35 +00:00
Mike Blumenkrantz 68a09359bd eeze now unmounts using the devnode instead of the mount point
SVN revision: 74560
2012-07-30 08:22:05 +00:00
Mike Blumenkrantz ce53e4f2e0 failing to create a mount point no longer results in an error since it's possible for this to be handled by certain mount utilities
SVN revision: 74559
2012-07-30 08:18:01 +00:00
Mike Blumenkrantz 244e5f7919 revert part of 74545 and change fopen to open; somehow this broke reading
SVN revision: 74557
2012-07-30 07:31:34 +00:00
Carsten Haitzler e33c5d05cd and... first monitor mtab not fstab for MOUNT changes/ mtab is
"current mounted status" . fstab is "stuff i WANT to mount".

secondly.. if mtab is a symlink.. pretend we arent monitoring. this
then kicks in the poll checker after mount cmd is done.

SVN revision: 74545
2012-07-29 13:21:09 +00:00
Mike Blumenkrantz 722fef0199 don't throw double events for our own disk ops
SVN revision: 74327
2012-07-23 14:11:57 +00:00
Mike Blumenkrantz 7914a063ea add a third libmount backend for "current" libmount, where we are too cool for /etc/mtab
SVN revision: 74326
2012-07-23 14:08:13 +00:00
Carsten Haitzler 28bb07e852 and eezes-scaanner didnt del the polelr it added per device(cdrom one)
when the dev is deleted.. crash waiting to happen. in addition it
didnt start a new polelr when it added one again. start one too.

SVN revision: 74263
2012-07-21 09:24:11 +00:00
Carsten Haitzler e174bc3c99 1. let us not install eeze_scanner in e17's utils dir. really not nice
to do that.
2. just use regular ecore-con naming of the socket. it will handle if
someone else has it. no need to do tmpdir and filename stuff by hand.

SVN revision: 74261
2012-07-21 09:11:00 +00:00
Carsten Haitzler 2c1b533d13 fix minor version defines to be at 1.6 (in sync now) ready for going
to 7 on release.

SVN revision: 73906
2012-07-16 06:36:02 +00:00
Mike Blumenkrantz 96cf95a174 print correct socket file for eeze_scanner when file already exists
SVN revision: 73553
2012-07-11 08:42:04 +00:00
Mike Blumenkrantz e628e1d2b0 eeze watches now detect loopback devices slightly more correctly
SVN revision: 73520
2012-07-10 10:42:33 +00:00
Mike Blumenkrantz 06d0a924ba eeze_scanner now prints debug info when CHANGE events occur
SVN revision: 73519
2012-07-10 10:40:59 +00:00
Carsten Haitzler 5c9c0852bb update all versions in @sincs, README's and's etc. to
reflect a unified release version, for now 1.6.99.

SVN revision: 73498
2012-07-09 10:20:21 +00:00
Mike Blumenkrantz 725a3ed4db change my email address
SVN revision: 73032
2012-06-29 10:58:49 +00:00
Mike Blumenkrantz cda0901ae0 patch from for joystick support
ticket #1100

SVN revision: 73027
2012-06-29 08:18:12 +00:00
Mike Blumenkrantz cbfb6d03a8 add disk and net groups to main eeze doc page
SVN revision: 73026
2012-06-29 08:10:59 +00:00
Mike Blumenkrantz 696b5acfd5 fix crash in eeze_net_free()
ticket #1101

SVN revision: 73025
2012-06-29 08:06:01 +00:00