Skip to content

Commit

Permalink
main: fd_listen fhs alloc rewrite (baresip#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers authored Sep 18, 2023
1 parent a97dfde commit 0a6fe33
Show file tree
Hide file tree
Showing 5 changed files with 304 additions and 188 deletions.
7 changes: 4 additions & 3 deletions include/re_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "re_async.h"

struct re;
struct re_fhs;

enum {
#ifndef FD_READ
Expand Down Expand Up @@ -35,10 +36,10 @@ typedef void (fd_h)(int flags, void *arg);
typedef void (re_signal_h)(int sig);


int fd_listen(re_sock_t fd, int flags, fd_h *fh, void *arg);
void fd_close(re_sock_t fd);
int fd_listen(struct re_fhs **fhs, re_sock_t fd, int flags, fd_h *fh,
void *arg);
struct re_fhs *fd_close(struct re_fhs *fhs);
int fd_setsize(int maxfds);
void fd_debug(void);

int libre_init(void);
void libre_close(void);
Expand Down
Loading

0 comments on commit 0a6fe33

Please sign in to comment.