X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fpoll-loop.h;h=adb88d482cbd5ef3f563d8adf9548e0987229269;hb=b5e80aecc4b10f73196f272598bac0644f196471;hp=341d063b5f72c67d5b206298ae6d9477baac33d6;hpb=34e63086edddcae06d7c1a4fa84fec0861e50758;p=openvswitch diff --git a/lib/poll-loop.h b/lib/poll-loop.h index 341d063b..adb88d48 100644 --- a/lib/poll-loop.h +++ b/lib/poll-loop.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008 Nicira Networks. + * Copyright (c) 2008, 2009 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,6 +34,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + struct poll_waiter; /* Schedule events to wake up the following poll_block(). */ @@ -44,12 +48,11 @@ void poll_immediate_wake(void); /* Wait until an event occurs. */ void poll_block(void); -/* Autonomous function callbacks. */ -typedef void poll_fd_func(int fd, short int revents, void *aux); -struct poll_waiter *poll_fd_callback(int fd, short int events, - poll_fd_func *, void *aux); - /* Cancel a file descriptor callback or event. */ void poll_cancel(struct poll_waiter *); +#ifdef __cplusplus +} +#endif + #endif /* poll-loop.h */