]> git.proxmox.com Git - mirror_frr.git/blobdiff - ldpd/accept.c
*: Rename `struct thread` to `struct event`
[mirror_frr.git] / ldpd / accept.c
index 170c079b52cc758889ee4391722c8fbddb1c5843..6151c1a0b6c707b55905162e51a0eeac8bde4f60 100644 (file)
 
 struct accept_ev {
        LIST_ENTRY(accept_ev)    entry;
-       struct thread           *ev;
-       void (*accept_cb)(struct thread *);
+       struct event *ev;
+       void (*accept_cb)(struct event *);
        void                    *arg;
        int                      fd;
 };
 
 struct {
        LIST_HEAD(, accept_ev)   queue;
-       struct thread           *evt;
+       struct event *evt;
 } accept_queue;
 
 static void    accept_arm(void);
 static void    accept_unarm(void);
-static void accept_cb(struct thread *);
-static void accept_timeout(struct thread *);
+static void accept_cb(struct event *);
+static void accept_timeout(struct event *);
 
 void
 accept_init(void)
@@ -35,7 +35,7 @@ accept_init(void)
        LIST_INIT(&accept_queue.queue);
 }
 
-int accept_add(int fd, void (*cb)(struct thread *), void *arg)
+int accept_add(int fd, void (*cb)(struct event *), void *arg)
 {
        struct accept_ev        *av;
 
@@ -103,14 +103,14 @@ accept_unarm(void)
                THREAD_OFF(av->ev);
 }
 
-static void accept_cb(struct thread *thread)
+static void accept_cb(struct event *thread)
 {
        struct accept_ev        *av = THREAD_ARG(thread);
        thread_add_read(master, accept_cb, av, av->fd, &av->ev);
        av->accept_cb(thread);
 }
 
-static void accept_timeout(struct thread *thread)
+static void accept_timeout(struct event *thread)
 {
        accept_queue.evt = NULL;