From: Maria Matejka Date: Wed, 4 Sep 2024 18:34:15 +0000 (+0200) Subject: Moved sk_open_unix() to common lib X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cd52668c888d3921773fcc117b6f0156883370e;p=thirdparty%2Fbird.git Moved sk_open_unix() to common lib --- diff --git a/lib/socket.h b/lib/socket.h index a762c6c8d..52f2acec6 100644 --- a/lib/socket.h +++ b/lib/socket.h @@ -88,6 +88,7 @@ sock *sock_new(pool *); /* Allocate new socket */ #define sk_new(X) sock_new(X) /* Wrapper to avoid name collision with OpenSSL */ int sk_open(sock *, struct birdloop *); /* Open socket */ +int sk_open_unix(struct birdsock *s, struct birdloop *, const char *name); /* Open UNIX socket */ void sk_reloop(sock *, struct birdloop *); /* Move socket to another loop. Both loops must be locked. */ static inline void sk_close(sock *s) { rfree(&s->r); } /* Explicitly close socket */ diff --git a/sysdep/unix/unix.h b/sysdep/unix/unix.h index 471a21e41..94fbf069c 100644 --- a/sysdep/unix/unix.h +++ b/sysdep/unix/unix.h @@ -114,7 +114,6 @@ extern volatile sig_atomic_t async_shutdown_flag; void io_init(void); void io_loop(void); void io_log_dump(struct dump_request *); -int sk_open_unix(struct birdsock *s, struct birdloop *, const char *name); enum rf_mode { RF_APPEND = 1,