]> git.saurik.com Git - apple/network_cmds.git/blobdiff - rtadvd.tproj/timer.h
network_cmds-543.260.3.tar.gz
[apple/network_cmds.git] / rtadvd.tproj / timer.h
index 63705a1af8d41f6005e7906d2e07366f641fbd09..78314b723738c029efbfbefd4bdfa4b1cf81746c 100644 (file)
@@ -1,4 +1,4 @@
-/*     $KAME: timer.h,v 1.3 2000/05/27 11:30:43 jinmei Exp $   */
+/*     $KAME: timer.h,v 1.5 2002/05/31 13:30:38 jinmei Exp $   */
 
 /*
  * Copyright (C) 1998 WIDE Project.
@@ -27,8 +27,6 @@
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
- *
- * $FreeBSD: src/usr.sbin/rtadvd/timer.h,v 1.1.2.2 2001/07/03 11:02:14 ume Exp $
  */
 
 /* a < b */
@@ -47,20 +45,20 @@ struct rtadvd_timer {
        struct rainfo *rai;
        struct timeval tm;
 
-       void (*expire) __P((void *));   /* expiration function */
+       struct rtadvd_timer *(*expire)(void *); /* expiration function */
        void *expire_data;
-       void (*update) __P((void *, struct timeval *)); /* update function */
+       void (*update)(void *, struct timeval *);       /* update function */
        void *update_data;
 };
 
-void rtadvd_timer_init __P((void));
-struct rtadvd_timer *rtadvd_add_timer __P((void (*) __P((void *)),
-               void (*) __P((void *, struct timeval *)), void *, void *));
-void rtadvd_set_timer __P((struct timeval *, struct rtadvd_timer *));
-void rtadvd_remove_timer __P((struct rtadvd_timer **));
-struct timeval * rtadvd_check_timer __P((void));
-struct timeval * rtadvd_timer_rest __P((struct rtadvd_timer *));
-void TIMEVAL_ADD __P((struct timeval *, struct timeval *,
-                     struct timeval *)); 
-void TIMEVAL_SUB __P((struct timeval *, struct timeval *,
-                     struct timeval *)); 
+void rtadvd_timer_init(void);
+struct rtadvd_timer *rtadvd_add_timer(struct rtadvd_timer *(*)(void *),
+               void (*)(void *, struct timeval *), void *, void *);
+void rtadvd_set_timer(struct timeval *, struct rtadvd_timer *);
+void rtadvd_remove_timer(struct rtadvd_timer **);
+struct timeval * rtadvd_check_timer(void);
+struct timeval * rtadvd_timer_rest(struct rtadvd_timer *);
+void TIMEVAL_ADD(struct timeval *, struct timeval *,
+                     struct timeval *);
+void TIMEVAL_SUB(struct timeval *, struct timeval *,
+                     struct timeval *);