Make internal API more private

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-10-21 12:04:13 +02:00
1 parent 9751be5859
commit 6f5e6e5232
7 files changed
+35 -35

No files matched your search

+5 -5
View File
@@ -76,11 +76,11 @@ int uev_timer_init(uev_ctx_t *ctx, uev_t *w, uev_cb_t *cb, void *arg, int timeou
if (fd < 0)
return -1;
if (uev_watcher_init(ctx, w, UEV_TIMER_TYPE, cb, arg, fd, UEV_READ))
if (_uev_watcher_init(ctx, w, UEV_TIMER_TYPE, cb, arg, fd, UEV_READ))
goto exit;
if (uev_timer_set(w, timeout, period)) {
uev_watcher_stop(w);
_uev_watcher_stop(w);
exit:
close(fd);
return -1;
@@ -135,7 +135,7 @@ int uev_timer_set(uev_t *w, int timeout, int period)
return 1;
}
return uev_watcher_start(w);
return _uev_watcher_start(w);
}
/**
@@ -152,7 +152,7 @@ int uev_timer_start(uev_t *w)
}
if (-1 != w->fd)
uev_watcher_stop(w);
_uev_watcher_stop(w);
return uev_timer_set(w, w->u.t.timeout, w->u.t.period);
}
@@ -168,7 +168,7 @@ int uev_timer_stop(uev_t *w)
/* Stop kernel timer */
uev_timer_set(w, 0, 0);
if (uev_watcher_stop(w))
if (_uev_watcher_stop(w))
return -1;
/* Close timerfd, will have to be reopened again on reset */