]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfd/ospf_apiserver.h
Merge pull request #13060 from opensourcerouting/feature/allow_peering_with_127.0.0.1
[mirror_frr.git] / ospfd / ospf_apiserver.h
index a90d18573b8ad0650df3138ab7f0eba065ce85db..0aaf67c1f3cd12dba1f068acf9a9f2ebe9235e4c 100644 (file)
@@ -48,12 +48,12 @@ struct ospf_apiserver {
        struct msg_fifo *out_async_fifo;
 
        /* Read and write threads */
-       struct thread *t_sync_read;
+       struct event *t_sync_read;
 #ifdef USE_ASYNC_READ
-       struct thread *t_async_read;
+       struct event *t_async_read;
 #endif /* USE_ASYNC_READ */
-       struct thread *t_sync_write;
-       struct thread *t_async_write;
+       struct event *t_sync_write;
+       struct event *t_async_write;
 };
 
 enum ospf_apiserver_event {
@@ -79,10 +79,10 @@ extern void ospf_apiserver_free(struct ospf_apiserver *apiserv);
 extern void ospf_apiserver_event(enum ospf_apiserver_event event, int fd,
                                 struct ospf_apiserver *apiserv);
 extern int ospf_apiserver_serv_sock_family(unsigned short port, int family);
-extern void ospf_apiserver_accept(struct thread *thread);
-extern void ospf_apiserver_read(struct thread *thread);
-extern void ospf_apiserver_sync_write(struct thread *thread);
-extern void ospf_apiserver_async_write(struct thread *thread);
+extern void ospf_apiserver_accept(struct event *thread);
+extern void ospf_apiserver_read(struct event *thread);
+extern void ospf_apiserver_sync_write(struct event *thread);
+extern void ospf_apiserver_async_write(struct event *thread);
 extern int ospf_apiserver_send_reply(struct ospf_apiserver *apiserv,
                                     uint32_t seqnr, uint8_t rc);