mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-23 11:24:34 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78995951ae | ||
|
|
3adc7a03c0 | ||
|
|
2abeb39fe8 | ||
|
|
1480976724 | ||
|
|
6ffa76c2f8 | ||
|
|
8a4e8c4af6 |
No files matched your search
+4
-2
@@ -1,7 +1,9 @@
|
|||||||
# Travis CI integration -- https://travis-ci.org/troglobit/libuev
|
# Travis CI integration -- https://travis-ci.org/troglobit/libuev
|
||||||
|
# Defaults to GNU GCC and autotools: ./configure && make && make test
|
||||||
language: c
|
language: c
|
||||||
compiler:
|
|
||||||
- gcc
|
# We don't need to install packages, use dockerized build, quicker
|
||||||
|
sudo: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
|||||||
+17
-1
@@ -3,6 +3,22 @@ Change Log
|
|||||||
|
|
||||||
All notable changes to the project are documented in this file.
|
All notable changes to the project are documented in this file.
|
||||||
|
|
||||||
|
[v1.2.2] - 2015-08-30
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
Minor bugfix release.
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
- The `ifdef STATIC` in the Makefile has been removed. Now both the
|
||||||
|
.a and .so libraries are built. The user may then select what to
|
||||||
|
install. This is a change for convenience when using libuEv from
|
||||||
|
a GNU Configure & Build based project.
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- Fix odd data ordering issue on Debian Jessie in new `uev_private_t`
|
||||||
|
- Fix issue #6: Segfault when stopping timer before calling `uev_exit()`
|
||||||
|
|
||||||
|
|
||||||
[v1.2.1] - 2015-07-02
|
[v1.2.1] - 2015-07-02
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
@@ -141,7 +157,7 @@ v0.0.1 - 2012-03-17
|
|||||||
users mailing list.
|
users mailing list.
|
||||||
|
|
||||||
[UNRELEASED]: https://github.com/troglobit/libuev/compare/v1.2.1...HEAD
|
[UNRELEASED]: https://github.com/troglobit/libuev/compare/v1.2.1...HEAD
|
||||||
[v1.2.0]: https://github.com/troglobit/libuev/compare/v1.2.0...v1.2.1
|
[v1.2.1]: https://github.com/troglobit/libuev/compare/v1.2.0...v1.2.1
|
||||||
[v1.2.0]: https://github.com/troglobit/libuev/compare/v1.1.0...v1.2.0
|
[v1.2.0]: https://github.com/troglobit/libuev/compare/v1.1.0...v1.2.0
|
||||||
[v1.1.0]: https://github.com/troglobit/libuev/compare/v1.0.5...v1.1.0
|
[v1.1.0]: https://github.com/troglobit/libuev/compare/v1.0.5...v1.1.0
|
||||||
[v1.0.5]: https://github.com/troglobit/libuev/compare/v1.0.4...v1.0.5
|
[v1.0.5]: https://github.com/troglobit/libuev/compare/v1.0.4...v1.0.5
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
ROOTDIR ?= $(shell pwd)
|
ROOTDIR ?= $(shell pwd)
|
||||||
|
|
||||||
#VERSION = $(shell git tag -l | tail -1)
|
#VERSION = $(shell git tag -l | tail -1)
|
||||||
VERSION ?= 1.2.1
|
VERSION ?= 1.2.2
|
||||||
NAME = libuev
|
NAME = libuev
|
||||||
PKG = $(NAME)-$(VERSION)
|
PKG = $(NAME)-$(VERSION)
|
||||||
ARCHIVE = $(PKG).tar.xz
|
ARCHIVE = $(PKG).tar.xz
|
||||||
@@ -50,18 +50,14 @@ HEADERS = uev.h private.h queue.h
|
|||||||
OBJS := uev.o io.o timer.o signal.o
|
OBJS := uev.o io.o timer.o signal.o
|
||||||
SRCS := $(OBJS:.o=.c)
|
SRCS := $(OBJS:.o=.c)
|
||||||
DEPS := $(SRCS:.c=.d)
|
DEPS := $(SRCS:.c=.d)
|
||||||
JUNK = *~ *.bak *.map .*.d DEADJOE *.gdb *.elf core core.* *.html
|
JUNK = *~ *.bak *.map .*.d *.so* *.a DEADJOE *.gdb *.elf core core.* *.html
|
||||||
|
|
||||||
VER = 1
|
VER = 1
|
||||||
LIBNAME = $(NAME)
|
LIBNAME = $(NAME)
|
||||||
SOLIB = $(LIBNAME).so.$(VER)
|
SOLIB = $(LIBNAME).so.$(VER)
|
||||||
SYMLIB = $(LIBNAME).so
|
SYMLIB = $(LIBNAME).so
|
||||||
STATICLIB = $(LIBNAME).a
|
STATICLIB = $(LIBNAME).a
|
||||||
ifdef STATIC
|
TARGET = $(STATICLIB) $(SOLIB)
|
||||||
TARGET = $(STATICLIB)
|
|
||||||
else
|
|
||||||
TARGET = $(SOLIB)
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Default install paths
|
# Default install paths
|
||||||
prefix ?= /usr/local
|
prefix ?= /usr/local
|
||||||
@@ -89,12 +85,10 @@ $(STATICLIB): Makefile $(OBJS)
|
|||||||
@$(AR) $(ARFLAGS) $@ $(OBJS)
|
@$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
|
|
||||||
install-exec: all
|
install-exec: all
|
||||||
ifndef STATIC
|
|
||||||
@printf " INSTALL $(DESTDIR)$(libdir)/$(SOLIB)\n"
|
@printf " INSTALL $(DESTDIR)$(libdir)/$(SOLIB)\n"
|
||||||
@install -d $(DESTDIR)$(libdir)
|
@install -d $(DESTDIR)$(libdir)
|
||||||
@install $(SOLIB) $(DESTDIR)$(libdir)/$(SOLIB)
|
@install $(SOLIB) $(DESTDIR)$(libdir)/$(SOLIB)
|
||||||
@ln -sf $(SOLIB) $(DESTDIR)$(libdir)/$(SYMLIB)
|
@ln -sf $(SOLIB) $(DESTDIR)$(libdir)/$(SYMLIB)
|
||||||
endif
|
|
||||||
|
|
||||||
install-dev:
|
install-dev:
|
||||||
@install -d $(DESTDIR)$(incdir)/$(LIBNAME)
|
@install -d $(DESTDIR)$(incdir)/$(LIBNAME)
|
||||||
@@ -102,11 +96,9 @@ install-dev:
|
|||||||
printf " INSTALL $(DESTDIR)$(incdir)/$(LIBNAME)/$$file\n"; \
|
printf " INSTALL $(DESTDIR)$(incdir)/$(LIBNAME)/$$file\n"; \
|
||||||
install -m 0644 $$file $(DESTDIR)$(incdir)/$(LIBNAME)/$$file; \
|
install -m 0644 $$file $(DESTDIR)$(incdir)/$(LIBNAME)/$$file; \
|
||||||
done
|
done
|
||||||
ifdef STATIC
|
|
||||||
@printf " INSTALL $(DESTDIR)$(libdir)/$(STATICLIB)\n"
|
@printf " INSTALL $(DESTDIR)$(libdir)/$(STATICLIB)\n"
|
||||||
@install -d $(DESTDIR)$(libdir)
|
@install -d $(DESTDIR)$(libdir)
|
||||||
@install $(STATICLIB) $(DESTDIR)$(libdir)/$(STATICLIB)
|
@install $(STATICLIB) $(DESTDIR)$(libdir)/$(STATICLIB)
|
||||||
endif
|
|
||||||
@install -d $(DESTDIR)$(datadir)
|
@install -d $(DESTDIR)$(datadir)
|
||||||
@for file in $(DISTFILES); do \
|
@for file in $(DISTFILES); do \
|
||||||
printf " INSTALL $(DESTDIR)$(datadir)/$$file\n"; \
|
printf " INSTALL $(DESTDIR)$(datadir)/$$file\n"; \
|
||||||
|
|||||||
@@ -293,7 +293,7 @@ used for inspiration is the very small [Picoev][9] by [Oku Kazuho].
|
|||||||
[Flemming Madsen]: http://www.madsensoft.dk
|
[Flemming Madsen]: http://www.madsensoft.dk
|
||||||
[Dave Zarzycki, Apple]: http://www.youtube.com/watch?v=cD_s6Fjdri8
|
[Dave Zarzycki, Apple]: http://www.youtube.com/watch?v=cD_s6Fjdri8
|
||||||
|
|
||||||
[libuEv] is developed and maintained by [Joachim Nilsson]
|
[libuEv] is developed and maintained by [Joachim Nilsson].
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
-- Local Variables:
|
-- Local Variables:
|
||||||
|
|||||||
@@ -154,12 +154,12 @@ int uev_timer_start(uev_t *w)
|
|||||||
*/
|
*/
|
||||||
int uev_timer_stop(uev_t *w)
|
int uev_timer_stop(uev_t *w)
|
||||||
{
|
{
|
||||||
if (uev_watcher_stop(w))
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
/* Stop kernel timer */
|
/* Stop kernel timer */
|
||||||
uev_timer_set(w, 0, 0);
|
uev_timer_set(w, 0, 0);
|
||||||
|
|
||||||
|
if (uev_watcher_stop(w))
|
||||||
|
return -1;
|
||||||
|
|
||||||
/* Close timerfd, will have to be reopened again on reset */
|
/* Close timerfd, will have to be reopened again on reset */
|
||||||
close(w->fd);
|
close(w->fd);
|
||||||
w->fd = -1;
|
w->fd = -1;
|
||||||
|
|||||||
@@ -41,10 +41,12 @@
|
|||||||
|
|
||||||
/* Event watcher */
|
/* Event watcher */
|
||||||
typedef struct uev {
|
typedef struct uev {
|
||||||
|
/* Private data for libuEv internal engine */
|
||||||
|
uev_private_t type;
|
||||||
|
|
||||||
|
/* Public data for users to reference */
|
||||||
int fd;
|
int fd;
|
||||||
uev_ctx_t *ctx;
|
uev_ctx_t *ctx;
|
||||||
|
|
||||||
uev_private_t type;
|
|
||||||
} uev_t;
|
} uev_t;
|
||||||
|
|
||||||
/* Generic callback for watchers */
|
/* Generic callback for watchers */
|
||||||
|
|||||||
Reference in new issue
Block a user