]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Moved sk_open_unix() to common lib
authorMaria Matejka <mq@ucw.cz>
Wed, 4 Sep 2024 18:34:15 +0000 (20:34 +0200)
committerMaria Matejka <mq@ucw.cz>
Sun, 23 Feb 2025 17:45:39 +0000 (18:45 +0100)
lib/socket.h
sysdep/unix/unix.h

index a762c6c8dea08f112495b717982ea9f49a7f1fd3..52f2acec68b644607ae0f71fb621007c2e2f10b2 100644 (file)
@@ -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 */
 
index 471a21e410ef6e86152cd8cef765684b6b7a388a..94fbf069c2021a8ae879b4d00c9a09f0e239c68d 100644 (file)
@@ -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,