Commit Graph
40 Commits
Author SHA1 Message Date
Joachim Nilsson f590237403 Update README 2013-07-21 11:55:07 +02:00
Joachim Nilsson ec9351bfdd Add support for peridic timers and resetting timers
Refactor uev_timer_create() to support a periodic (msec) argument. For
such timers libuev automaticlly respawns them.  Effectively resetting
the timeout using the period value.

Also, refactor argument order to uev_timer_create() and uev_io_create().

Rename UEV_FHIN, UEV_FHOUT to UEV_DIR_INBOUND and UEV_DIR_OUTBOUND.

Remove unnecessary return value for watcher callbacks.  What would those
have been usefu for, ever?  Not even the original code checked the return
value after calling a handler.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2013-07-21 11:39:26 +02:00
Joachim Nilsson 97398e0a7d Fix Makefile dependency handling and add install/uninstall targets
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2013-07-21 10:20:19 +02:00
Joachim Nilsson e1b1daf5e3 Simplify linked list of I/O watchers and its garbage collect mechanism.
Simplifed uev_io_t by removing uev_io_rem_t completely.  A refactor that
would not have been possible without the BSD queue.h API.  This makes
the code readable and thus maintainable and less error prone.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2013-07-21 08:31:33 +02:00
Joachim Nilsson ece4e31c52 Convert from homebrew linked list to BSD TAILQ using OpenBSD r1.38 sys/queue.h
- OpenBSD http://www.openbsd.org/cgi-bin/cvsweb/src/sys/sys/queue.h rev 1.38
- Convert lList*() to TAILQ_*()
- Minor local variable rename to clarify usage

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2013-07-21 07:53:25 +02:00
Joachim Nilsson ab8c70d501 Slight reorder and renaming to clarify, also update README. 2013-07-20 22:48:52 +02:00
Joachim Nilsson 7e87644bd1 Major cleanup, use Linux coding style, remove CamelCase.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2013-07-19 12:41:59 +02:00
Joachim Nilsson 0bba080660 Initial import of Flemming Madsen's LibUEvent
This fork is called libuev and will focus solely on embedded Linux
systems using C.  Patches for other UNIX-like operating systems are
welcome.

- Remove Lua support, will not be used.
- Rename from LibUEvent to libuev where applicable
- Add project's MIT license to top of all files, as is customary
- Add a LICENSE file, as is customary

This MIT licensed code was cloned from the Mercurial repository at
Google http://code.google.com/p/libuevent/ which had mislabled the
license as "New BSD License", which is wrong.  The actual license
of the project is https://en.wikipedia.org/wiki/MIT_License

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2013-07-18 23:37:07 +02:00
fm 812007f5bc Document lua api v0.0.1 2012-03-17 09:15:07 +01:00
fm 285ee70433 Lua test running 2012-03-16 21:53:56 +01:00
fm 22aa570846 pwtest 2012-03-16 10:28:41 +01:00
fm a2ab7c3685 Lua test coded, not yet running .. 2012-03-16 09:57:35 +01:00
fm c5878c6302 Lua basically running 2012-03-14 22:11:20 +01:00
fm 5c817c20ed Lua binding, done coding 2012-03-14 18:12:16 +01:00
fm c3f9d0dc8d Add README 2012-03-14 11:25:42 +01:00
fm 36a937505c Import from compactor 2012-03-14 10:30:20 +01:00
madsenco 89022a9faa A working test 2012-03-12 08:46:58 +01:00
madsenco 3dd80622f4 libuevent now compiles 2012-03-08 12:33:28 +01:00
madsenco 70dced803c Move default config to bottom 2011-05-27 10:58:32 +02:00
madsenco e590077849 Class gotcha fixed etc 2011-05-25 22:38:45 +02:00
madsenco 189d57be93 Some start polish. GPS via bluetooth/rfcomm 2011-05-24 22:31:52 +02:00
madsenco 6499d97709 more debug 2011-03-24 07:08:41 +01:00
madsenco 185ee01ca0 port now optional 2011-03-18 14:01:52 +01:00
madsenco 4f989fec6a Consolidate logging, Fix ix bug, normalize gps filter/output 2011-03-18 09:40:31 +01:00
madsenco 3ddf76fbca Fix telnet close. Some port adjusments 2011-03-17 22:30:09 +01:00
madsenco 0d14859775 Bug killing spree 2011-03-13 21:51:41 +01:00
madsenco 1224f3d931 Done coding the rough basics 2011-03-10 12:42:39 +01:00
madsenco 93bff7f199 Laundry merge 2011-03-08 14:47:07 +01:00
madsenco c3bbb96ab3 Merge 2011-03-08 14:20:59 +01:00
madsenco 6df31519dd More structure 2011-03-08 14:15:46 +01:00
madsenco d6f3c4ffa0 backup 2011-02-25 22:31:30 +01:00
madsenco 86fdebcc6b Laundry session 2011-02-25 17:45:38 +01:00
madsenco 0ee34b331e More infrastructure 2011-02-25 15:18:06 +01:00
madsenco e90caeae42 More infrastructure 2011-02-25 14:35:22 +01:00
madsenco 4b30a2a738 devs 2011-02-22 22:12:53 +01:00
madsenco 76952a692c populate 2011-02-21 22:20:14 +01:00
madsenco df97341950 upd 2011-02-21 20:11:37 +01:00
madsenco b728eb7e41 Add nmeamux 2011-02-21 19:58:23 +01:00
madsenco 38a03fe357 My stuff 2011-01-11 15:20:06 +01:00
madsenco ebffcbed5b My stuff 2011-01-10 16:11:31 +01:00