mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 20:58:44 +00:00
Moved sk_open_unix() to common lib
This commit is contained in:
parent
97e85f088d
commit
80c0df06a7
@ -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 */
|
||||
|
||||
|
@ -1379,7 +1379,7 @@ err:
|
||||
}
|
||||
|
||||
int
|
||||
sk_open_unix(sock *s, struct birdloop *loop, char *name)
|
||||
sk_open_unix(sock *s, struct birdloop *loop, const char *name)
|
||||
{
|
||||
struct sockaddr_un sa;
|
||||
int fd;
|
||||
|
@ -113,7 +113,6 @@ extern volatile sig_atomic_t async_shutdown_flag;
|
||||
void io_init(void);
|
||||
void io_loop(void);
|
||||
void io_log_dump(void);
|
||||
int sk_open_unix(struct birdsock *s, struct birdloop *, char *name);
|
||||
|
||||
enum rf_mode {
|
||||
RF_APPEND = 1,
|
||||
|
Loading…
Reference in New Issue
Block a user