Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: eloop.h

Issue 2428004: Overhaul dhcpcd for chrome os use (Closed) Base URL: ssh://git@chromiumos-git//dhcpcd.git
Patch Set: purge hooks from configure to silence complaint Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « dhcpcd-run-hooks.8.in ('k') | eloop.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * dhcpcd - DHCP client daemon 2 * dhcpcd - DHCP client daemon
3 * Copyright (c) 2006-2008 Roy Marples <roy@marples.name> 3 * Copyright (c) 2006-2008 Roy Marples <roy@marples.name>
4 * All rights reserved 4 * All rights reserved
5 5
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 12 matching lines...) Expand all
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE. 25 * SUCH DAMAGE.
26 */ 26 */
27 27
28 #ifndef ELOOP_H 28 #ifndef ELOOP_H
29 #define ELOOP_H 29 #define ELOOP_H
30 30
31 #include <time.h> 31 #include <time.h>
32 32
33 void add_event(int fd, void (*)(void *), void *); 33 int add_event(int fd, void (*)(void *), void *);
34 int add_event_flags(int fd, int flags, void (*)(int, void *), void *);
34 void delete_event(int fd); 35 void delete_event(int fd);
35 void add_timeout_sec(time_t, void (*)(void *), void *); 36 void add_timeout_sec(time_t, void (*)(void *), void *);
36 void add_timeout_tv(const struct timeval *, void (*)(void *), void *); 37 void add_timeout_tv(const struct timeval *, void (*)(void *), void *);
37 void delete_timeout(void (*)(void *), void *); 38 void delete_timeout(void (*)(void *), void *);
38 void delete_timeouts(void *, void (*)(void *), ...); 39 void delete_timeouts(void *, void (*)(void *), ...);
39 void start_eloop(void); 40 void start_eloop(void);
40 41
41 #endif 42 #endif
OLDNEW
« no previous file with comments | « dhcpcd-run-hooks.8.in ('k') | eloop.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698