X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ospfd%2Fospf_apiserver.h;h=3d57737080ad765a3d580cc98e6270f38d90ea58;hb=6ec6186af9987b3e2b698943b6e77f2e07e31067;hp=544a32a28ce193e29cc897097072d69557270dde;hpb=bb3cd4189a7b2ae40b3dbaf58a7b30ba210e9805;p=mirror_frr.git diff --git a/ospfd/ospf_apiserver.h b/ospfd/ospf_apiserver.h index 544a32a28..3d5773708 100644 --- a/ospfd/ospf_apiserver.h +++ b/ospfd/ospf_apiserver.h @@ -68,7 +68,7 @@ struct ospf_apiserver { struct thread *t_async_write; }; -enum event { +enum ospf_apiserver_event { OSPF_APISERVER_ACCEPT, OSPF_APISERVER_SYNC_READ, #ifdef USE_ASYNC_READ @@ -88,13 +88,13 @@ extern int ospf_apiserver_init(void); extern void ospf_apiserver_term(void); extern struct ospf_apiserver *ospf_apiserver_new(int fd_sync, int fd_async); extern void ospf_apiserver_free(struct ospf_apiserver *apiserv); -extern void ospf_apiserver_event(enum event event, int fd, +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 int ospf_apiserver_accept(struct thread *thread); -extern int ospf_apiserver_read(struct thread *thread); -extern int ospf_apiserver_sync_write(struct thread *thread); -extern int ospf_apiserver_async_write(struct thread *thread); +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 int ospf_apiserver_send_reply(struct ospf_apiserver *apiserv, uint32_t seqnr, uint8_t rc);